nuxt-community / laravel-echo-module

Laravel Echo for Nuxt 2
MIT License
85 stars 32 forks source link

app.$auth is undefined #2

Closed ceronem closed 5 years ago

ceronem commented 5 years ago

Hi guys, I'm trying to get this module working with the auth module, but unfortunatelly this doesn't work because in the file plugin.js@13 "app.$auth" is undefined and no auth header is returned.

This is my nuxt.config.js:

...
  modules: [
...
    '@nuxtjs/auth'
...
  ],
buildModules: [
...
    '@nuxtjs/laravel-echo'
...
  ],
  echo: {
    authModule: true,
    connectOnLogin: true,
    disconnectOnLogout: true,
    broadcaster: 'socket.io',
    host: process.env.LARAVEL_ECHO_HOST
  },
...
ricardogobbosouza commented 5 years ago

Hi @ceronem, Fixed on v1.0.1