Understanding authentication with websockets - Nuxt