Skip to content

Commit 77322df

Browse files
committed
comment
1 parent 61751dd commit 77322df

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

auth/src/main/java/com/google/firebase/quickstart/AuthSnippets.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,12 +239,6 @@ public static void revokeIdTokens(String idToken) throws InterruptedException, E
239239
// [END revoke_tokens]
240240

241241
// [START save_revocation_in_db]
242-
// After revoking refresh tokens, follow up with:
243-
UserRecord user = FirebaseAuth.getInstance().getUserAsync(uid).get();
244-
// Convert to seconds as the auth_time in the token claims is in seconds too.
245-
long revocationSecond = user.getTokensValidAfterTimestamp() / 1000;
246-
// Save the refresh token revocation timestamp. This is needed to track ID token
247-
// revocation via Firebase rules.
248242
DatabaseReference ref = FirebaseDatabase.getInstance().getReference("metadata/" + uid);
249243
ref.setValueAsync(MapBuilder.of("revokeTime", revocationSecond)).get();
250244
// [END save_revocation_in_db]

0 commit comments

Comments
 (0)