File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616
1717#import " GoogleSignIn/Sources/Public/GoogleSignIn/GIDTokenClaim.h"
1818
19+ NSString * const kAuthTimeClaimName = @" auth_time" ;
20+
1921// Private interface to declare the internal initializer
2022@interface GIDTokenClaim ()
2123
@@ -39,11 +41,11 @@ - (instancetype)initWithName:(NSString *)name essential:(BOOL)essential {
3941#pragma mark - Factory Methods
4042
4143+ (instancetype )authTimeClaim {
42- return [[self alloc ] initWithName: @" auth_time " essential: NO ];
44+ return [[self alloc ] initWithName: kAuthTimeClaimName essential: NO ];
4345}
4446
4547+ (instancetype )essentialAuthTimeClaim {
46- return [[self alloc ] initWithName: @" auth_time " essential: YES ];
48+ return [[self alloc ] initWithName: kAuthTimeClaimName essential: YES ];
4749}
4850
4951#pragma mark - NSObject
Original file line number Diff line number Diff line change 1818
1919NS_ASSUME_NONNULL_BEGIN
2020
21+ extern NSString *const kAuthTimeClaimName ;
22+
2123/* *
2224 * An object representing a single OIDC claim to be requested for an ID token.
2325 */
Original file line number Diff line number Diff line change 1616#import < XCTest/XCTest.h>
1717#import " GoogleSignIn/Sources/Public/GoogleSignIn/GIDTokenClaim.h"
1818
19- static NSString *const kAuthTimeClaimName = @" auth_time" ;
20-
2119@interface GIDTokenClaimTest : XCTestCase
2220@end
2321
You can’t perform that action at this time.
0 commit comments