Skip to content

Commit

Permalink
docs(auth): fix sign in/out typo + add info about GoogleSignin.revoke…
Browse files Browse the repository at this point in the history
…Access() (#7445)

* Fixed signed in/out mishap
* Adding info about GoogleSignIn.revokeAccess
  • Loading branch information
rzfzr authored Nov 8, 2023
1 parent 39d4ba4 commit c23c570
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/auth/usage/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,11 @@ auth()
.then(() => console.log('User signed out!'));
```

Once successfully created and/or signed in, any [`onAuthStateChanged`](#listening-to-authentication-state) listeners will trigger an event
Once successfully signed out, any [`onAuthStateChanged`](#listening-to-authentication-state) listeners will trigger an event
with the `user` parameter being a `null` value.

Additionally, using `GoogleSignin.revokeAccess()` forgets the user. This means that the next time someone signs in, they will see the account selection popup. If you don't use this function, the last account will be automatically used without showing the account selection popup.

## Other sign-in methods

Firebase also supports authenticating with external provides. To learn more, view the documentation for your authentication
Expand Down

1 comment on commit c23c570

@vercel
Copy link

@vercel vercel bot commented on c23c570 Nov 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.