In May 2016, we released the newest version of Google Identity Toolkit as Firebase Authentication, and in April 2019, we released Google Cloud's Identity Platform. These products include upgraded client SDKs, open source UI libraries, session management and integrated email sending service for forgotten password flows.

On June 30, 2020, the SDKs documented on this page and the API setting page will stop functioning. (The https://identitytoolkit.googleapis.com/... and https://securetoken.googleapis.com/... endpoints, used by Identity Platform and Firebase Authentication, will continue to function.)

To migrate an existing project from Identity Toolkit, see the Identity Platform migration guide or Firebase Authentication 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.