Skip to content

Commit a50e8f1

Browse files
authored
Merge pull request #22 from firebase/align_snippets
Snippet comment fix. (and output to std.)
2 parents 2f5080a + 5b1cd0d commit a50e8f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public static void verifyIdTokenCheckRevoked(String idToken) throws InterruptedE
222222
// Token is valid but has been revoked.
223223
// When this occurs, inform the user to reauthenticate or signOut() the user.
224224
} else {
225-
// Error is other than "revoked" token is invalid.
225+
// Token is invalid.
226226
}
227227
}
228228
// [END verify_id_token_check_revoked]
@@ -235,7 +235,7 @@ public static void revokeIdTokens(String idToken) throws InterruptedException, E
235235
UserRecord user = FirebaseAuth.getInstance().getUserAsync(uid).get();
236236
// Convert to seconds as the auth_time in the token claims is in seconds too.
237237
long revocationSecond = user.getTokensValidAfterTimestamp() / 1000;
238-
System.err.println("Tokens revoked at: " + revocationSecond);
238+
System.out.println("Tokens revoked at: " + revocationSecond);
239239
// [END revoke_tokens]
240240

241241
// [START save_revocation_in_db]

0 commit comments

Comments
 (0)