Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions packages/docs/content/service-options/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,3 +334,13 @@ try {
```
The same code with work with facebook as well just change it to ``` FacebookAuthProvider ```
Full example is [here](https://dev.to/rodrigopv/nuxtjs-firebase-social-auth-3afe).

### logout / signout
when you want to signout\logout with Nuxt there is an easy way to do so
```
async logout() {
await this.$fire.auth?.signOut()
// whatever you want to do after you signout
}
```
Generally, the firebase auth functions are already mapped; find more functions [here](https://firebase.google.com/docs/reference/js/v8/firebase.auth.Auth) all the options you have.