Skip to content

Commit 22d4f9c

Browse files
committed
Additional renaming of tokenClaims to claims
1 parent 93c5b54 commit 22d4f9c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

GoogleSignIn/Sources/GIDClaimsInternalOptions.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,17 @@ - (nullable NSString *)validatedJSONStringForClaims:(nullable NSSet<GIDClaim *>
7272
}
7373

7474
// === Step 2: Build the dictionary structure required for OIDC JSON ===
75-
NSMutableDictionary<NSString *, NSDictionary *> *tokenClaimsDictionary =
75+
NSMutableDictionary<NSString *, NSDictionary *> *claimsDictionary =
7676
[[NSMutableDictionary alloc] init];
7777
for (GIDClaim *claim in validClaims.allValues) {
7878
if (claim.isEssential) {
79-
tokenClaimsDictionary[claim.name] = @{ kGIDClaimEssentialPropertyKey: @YES };
79+
claimsDictionary[claim.name] = @{ kGIDClaimEssentialPropertyKey: @YES };
8080
} else {
81-
tokenClaimsDictionary[claim.name] = @{ kGIDClaimEssentialPropertyKey: @NO };
81+
claimsDictionary[claim.name] = @{ kGIDClaimEssentialPropertyKey: @NO };
8282
}
8383
}
8484
NSDictionary<NSString *, id> *finalRequestDictionary =
85-
@{ kGIDClaimKeyName: tokenClaimsDictionary };
85+
@{ kGIDClaimKeyName: claimsDictionary };
8686

8787
// === Step 3: Serialize the final dictionary into a JSON string ===
8888
return [_jsonSerializer stringWithJSONObject:finalRequestDictionary error:error];

GoogleSignIn/Tests/Unit/GIDSignInTest.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ - (void)testAddScopes_WithPreviouslyRequestedClaims {
921921
useAdditionalScopes:NO
922922
additionalScopes:nil
923923
manualNonce:nil
924-
claims:[NSSet setWithObject:authTimeClaim]];
924+
claims:[NSSet setWithObject:authTimeClaim]];
925925

926926
XCTAssertNotNil(_signIn.currentUser);
927927

0 commit comments

Comments
 (0)