Skip to content

Commit 6ba99d9

Browse files
committed
PR fixes
1 parent 3834676 commit 6ba99d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
packagecom.google.firebase.quickstart;
22

33
importcom.google.auth.oauth2.GoogleCredentials;
4-
importcom.google.common.collect.ImmutableMap;
54
importcom.google.firebase.FirebaseApp;
65
importcom.google.firebase.FirebaseOptions;
76
importcom.google.firebase.auth.ExportedUserRecord;
@@ -244,7 +243,9 @@ public static void revokeIdTokens(String idToken) throws InterruptedException, E
244243

245244
// [START save_revocation_in_db]
246245
DatabaseReferenceref = FirebaseDatabase.getInstance().getReference("metadata/" + uid);
247-
ref.setValueAsync(newHashMap<String, Object>().put("revokeTime", revocationSecond)).get();
246+
Map<String, Object> userData = newHashMap<>();
247+
userData.put("revokeTime", revocationSecond);
248+
ref.setValueAsync(userData).get();
248249
// [END save_revocation_in_db]
249250

250251
}

0 commit comments

Comments
 (0)
close