Skip to content

Commit c41c4e5

Browse files
committed
Update method name
1 parent 5179375 commit c41c4e5

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

auth/app/src/main/java/com/google/firebase/quickstart/auth/GoogleSignInActivity.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff 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

auth/app/src/main/java/com/google/firebase/quickstart/auth/kotlin/GoogleSignInActivity.kt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)