File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
auth/src/main/java/com/google/firebase/quickstart Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ public static void verifyIdTokenCheckRevoked(String idToken) throws InterruptedE
233
233
public static void revokeIdTokens (String idToken ) throws InterruptedException , ExecutionException {
234
234
String uid ="someUid" ;
235
235
// [START revoke_tokens]
236
- FirebaseToken decodedToken = FirebaseAuth .getInstance ().revokeRefreshTokens (uid ).get ();
236
+ FirebaseToken decodedToken = FirebaseAuth .getInstance ().revokeRefreshTokensAsync (uid ).get ();
237
237
UserRecord user = FirebaseAuth .getInstance ().getUserAsync (uid ).get ();
238
238
// Convert to seconds as the auth_time in the token claims is in seconds too.
239
239
long revocationSecond = user .getTokensValidAfterTimestamp () / 1000 ;
You can’t perform that action at this time.
0 commit comments