Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation unclear #615

Open
unremarkablegarden opened this issue Feb 17, 2022 · 0 comments
Open

Documentation unclear #615

unremarkablegarden opened this issue Feb 17, 2022 · 0 comments

Comments

@unremarkablegarden
Copy link

In the documentation under:

auth
Initializes Firebase Authentication and makes it available via $fire.auth and $fireModule.auth.
Type: Boolean or Object
Default: false
nuxt.config.js

auth: {
  persistence: 'local', // default
  initialize: {
    onAuthStateChangedMutation: 'ON_AUTH_STATE_CHANGED_MUTATION',
    onAuthStateChangedAction: 'onAuthStateChangedAction',
    subscribeManually: false
  },
  ssr: false, // default
  emulatorPort: 9099,
  emulatorHost: 'http://localhost',
}

It's unclear that you set it like:

services: {
      auth: {
        persistence: 'local', // ...

I assumed it would be:

services: {
      auth: true
},
auth: { persistence: 'local', // ...

Maybe make it clearer in the example code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant