Skip to content

Commit 7c139a9

Browse files
authored
add tag for reauthenticateWithProvider snippet (#412)
1 parent 3be35a5 commit 7c139a9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ public void onFailure(@NonNull Exception e) {
236236
}
237237

238238
public void reauthenticateWithProvider(OAuthProvider.Builder provider) {
239+
// [START auth_oidc_provider_reauth]
239240
// The user is already signed-in.
240241
FirebaseUser firebaseUser = firebaseAuth.getCurrentUser();
241242

@@ -258,5 +259,6 @@ public void onFailure(@NonNull Exception e) {
258259
// Handle failure.
259260
}
260261
});
262+
// [END auth_oidc_provider_reauth]
261263
}
262264
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ class GenericIdpActivity : AppCompatActivity() {
172172
}
173173

174174
fun reauthenticateWithProvider(provider: OAuthProvider.Builder) {
175+
// [START auth_oidc_provider_reauth]
175176
// The user is already signed-in.
176177
val firebaseUser = firebaseAuth.currentUser!!
177178
firebaseUser
@@ -185,5 +186,6 @@ class GenericIdpActivity : AppCompatActivity() {
185186
.addOnFailureListener {
186187
// Handle failure.
187188
}
189+
// [END auth_oidc_provider_reauth]
188190
}
189191
}

0 commit comments

Comments
 (0)