From c23c570c35865be6f02e9807334603078fbb6fa9 Mon Sep 17 00:00:00 2001 From: Rafael Figueira Goncalves Date: Wed, 8 Nov 2023 09:57:06 -0300 Subject: [PATCH] docs(auth): fix sign in/out typo + add info about GoogleSignin.revokeAccess() (#7445) * Fixed signed in/out mishap * Adding info about GoogleSignIn.revokeAccess --- docs/auth/usage/index.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/auth/usage/index.md b/docs/auth/usage/index.md index e31e0c17c8..04ff86aad9 100644 --- a/docs/auth/usage/index.md +++ b/docs/auth/usage/index.md @@ -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