File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed
auth/app/src/main/java/com/google/firebase/quickstart/auth Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -154,11 +154,8 @@ private void firebaseAuthWithGoogle(String idToken) {
154154 }
155155 // [END auth_with_google]
156156
157- // [START sign_out]
158- private void signOut () {
159- // Firebase sign out
160- mAuth .signOut ();
161-
157+ // [START clear_credential_stage]
158+ private void clearCredentialState () {
162159 // When a user signs out, clear the current user credential state from all credential providers.
163160 ClearCredentialStateRequest clearRequest = new ClearCredentialStateRequest ();
164161 credentialManager .clearCredentialStateAsync (
@@ -177,7 +174,7 @@ public void onError(@NonNull ClearCredentialException e) {
177174 }
178175 });
179176 }
180- // [END sign_out ]
177+ // [END clear_credential_stage ]
181178
182179 private void updateUI (FirebaseUser user ) {
183180
Original file line number Diff line number Diff line change @@ -125,11 +125,8 @@ class GoogleSignInActivity : AppCompatActivity() {
125125 }
126126 // [END auth_with_google]
127127
128- // [START sign_out]
129- private fun signOut () {
130- // Firebase sign out
131- auth.signOut()
132-
128+ // [START clear_credential_stage]
129+ private fun clearCredentialState () {
133130 // When a user signs out, clear the current user credential state from all credential providers.
134131 lifecycleScope.launch {
135132 try {
@@ -141,7 +138,7 @@ class GoogleSignInActivity : AppCompatActivity() {
141138 }
142139 }
143140 }
144- // [END sign_out ]
141+ // [END clear_credential_stage ]
145142
146143 private fun updateUI (user : FirebaseUser ? ) {
147144 }
You can’t perform that action at this time.
0 commit comments