Skip to content

Commit cc30bc8

Browse files
authored
Renamed method as per the proposed API (#109)
1 parent cc47045 commit cc30bc8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/com/google/firebase/auth/FirebaseAuth.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ public Void call() throws Exception {
486486
* @throws IllegalArgumentException If the user ID string is null or empty, or the claims
487487
* payload is invalid or too large.
488488
*/
489-
public ApiFuture<Void> setCustomClaimsAsync(String uid, Map<String, Object> claims) {
489+
public ApiFuture<Void> setCustomUserClaimsAsync(String uid, Map<String, Object> claims) {
490490
return new TaskToApiFuture<>(setCustomClaims(uid, claims));
491491
}
492492

src/test/java/com/google/firebase/auth/FirebaseAuthIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ public void testCustomClaims() throws Exception {
322322

323323
Map<String, Object> expected = ImmutableMap.<String, Object>of(
324324
"admin", true, "package", "gold");
325-
auth.setCustomClaimsAsync(uid, expected).get();
325+
auth.setCustomUserClaimsAsync(uid, expected).get();
326326

327327
// Should have 2 claims
328328
UserRecord updatedUser = auth.getUserAsync(uid).get();
@@ -341,7 +341,7 @@ public void testCustomClaims() throws Exception {
341341
}
342342

343343
// Should be able to remove custom claims
344-
auth.setCustomClaimsAsync(uid, null).get();
344+
auth.setCustomUserClaimsAsync(uid, null).get();
345345
updatedUser = auth.getUserAsync(uid).get();
346346
assertTrue(updatedUser.getCustomClaims().isEmpty());
347347
} finally {

0 commit comments

Comments
 (0)