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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.google.firebase.quickstart;
22

33
import com.google.auth.oauth2.GoogleCredentials;
4-
import com.google.common.collect.ImmutableMap;
54
import com.google.firebase.FirebaseApp;
65
import com.google.firebase.FirebaseOptions;
76
import com.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
DatabaseReference ref = FirebaseDatabase.getInstance().getReference("metadata/" + uid);
247-
ref.setValueAsync(new HashMap<String, Object>().put("revokeTime", revocationSecond)).get();
246+
Map<String, Object> userData = new HashMap<>();
247+
userData.put("revokeTime", revocationSecond);
248+
ref.setValueAsync(userData).get();
248249
// [END save_revocation_in_db]
249250

250251
}

0 commit comments

Comments
 (0)