The newest version of Google Identity Toolkit has been released as Firebase Authentication. It includes upgraded client SDKs, open source UI libraries, session management and integrated email sending service for forgotten password flows.

New projects should use Firebase Authentication. To migrate an existing project from Identity Toolkit to Firebase Authentication, see the migration guide.

GITIDToken Class

GITIDToken Class Reference

Overview

An id token issued by Identity Toolkit server.

Inherits NSObject.

Instance Method Summary

(instancetype) - initWithString:
 Designated initializer. More...
 
(void) - writeCookie
 Writes the id token as cookie in cookie storage. More...
 

Class Method Summary

(GITIDToken *) + tokenWithString:
 Constructs a GITIDToken from token string. More...
 

Properties

NSString * tokenString
 The original token string returned from Identity Toolkit server. More...
 
NSString * email
 Email address in the token. More...
 
NSString * localID
 Local id in the token. More...
 
NSString * audience
 Audience in the token. More...
 
NSNumber * issueAt
 Issue timestamp in the token. More...
 
NSNumber * expireAt
 Expiration timestamp in the token. More...
 
NSString * providerID
 Provider id in the token. More...
 

Method Detail

- (instancetype) initWithString: (NSString *)  tokenString

Designated initializer.

Parameters
tokenStringthe original token string from Identity Toolkit server.
- (void) writeCookie

Writes the id token as cookie in cookie storage.

+ (GITIDToken *) tokenWithString: (NSString *)  tokenString

Constructs a GITIDToken from token string.

Parameters
tokenStringthe original token string from Identity Toolkit server.

Property Documentation

- (NSString*) tokenString
readwritenonatomiccopy

The original token string returned from Identity Toolkit server.

- (NSString*) email
readwritenonatomiccopy

Email address in the token.

- (NSString*) localID
readwritenonatomiccopy

Local id in the token.

- (NSString*) audience
readwritenonatomiccopy

Audience in the token.

- (NSNumber*) issueAt
readwritenonatomiccopy

Issue timestamp in the token.

- (NSNumber*) expireAt
readwritenonatomiccopy

Expiration timestamp in the token.

- (NSString*) providerID
readwritenonatomiccopy

Provider id in the token.