AI-generated Key Takeaways
-
GIDToken represents an OAuth2 or OpenID Connect token.
-
It includes a
tokenStringwhich is the token itself. -
It has an
expirationDatewhich is the estimated expiration date of the token. -
The
-isEqualToToken:method allows checking if the current token is equal to anotherGIDToken.
GIDToken
@interface GIDToken : NSObject <NSSecureCoding>This class represents an OAuth2 or OpenID Connect token.
-
The token string.
Declaration
Swift
var tokenString: String { get }Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull tokenString; -
The estimated expiration date of the token.
Declaration
Swift
var expirationDate: Date? { get }Objective-C
@property (nonatomic, readonly, nullable) NSDate *expirationDate; -
Check if current token is equal to another one.
Declaration
Swift
func isEqual(to otherToken: GIDToken) -> BoolObjective-C
- (BOOL)isEqualToToken:(nonnull GIDToken *)otherToken;Parameters
otherTokenAnother token to compare.