Class: Google::Apis::IdentitytoolkitV3::VerifyCustomTokenResponse
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::IdentitytoolkitV3::VerifyCustomTokenResponse
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/identitytoolkit_v3/classes.rb,
 generated/google/apis/identitytoolkit_v3/representations.rb,
 generated/google/apis/identitytoolkit_v3/representations.rb
Overview
Response from verifying a custom token
Instance Attribute Summary collapse
- 
  
    
      #expires_in  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    If idToken is STS id token, then this field will be expiration time of STS id token in seconds. 
- 
  
    
      #id_token  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The GITKit token for authenticated user. 
- 
  
    
      #is_new_user  ⇒ Boolean 
    
    
      (also: #is_new_user?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    True if it's a new user sign-in, false if it's a returning user. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The fixed string "identitytoolkit#VerifyCustomTokenResponse". 
- 
  
    
      #refresh_token  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    If idToken is STS id token, then this field will be refresh token. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ VerifyCustomTokenResponse 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of VerifyCustomTokenResponse. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ VerifyCustomTokenResponse
Returns a new instance of VerifyCustomTokenResponse
| 2509 2510 2511 | # File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2509 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#expires_in ⇒ Fixnum
If idToken is STS id token, then this field will be expiration time of STS id
token in seconds.
Corresponds to the JSON property expiresIn
| 2486 2487 2488 | # File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2486 def expires_in @expires_in end | 
#id_token ⇒ String
The GITKit token for authenticated user.
Corresponds to the JSON property idToken
| 2491 2492 2493 | # File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2491 def id_token @id_token end | 
#is_new_user ⇒ Boolean Also known as: is_new_user?
True if it's a new user sign-in, false if it's a returning user.
Corresponds to the JSON property isNewUser
| 2496 2497 2498 | # File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2496 def is_new_user @is_new_user end | 
#kind ⇒ String
The fixed string "identitytoolkit#VerifyCustomTokenResponse".
Corresponds to the JSON property kind
| 2502 2503 2504 | # File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2502 def kind @kind end | 
#refresh_token ⇒ String
If idToken is STS id token, then this field will be refresh token.
Corresponds to the JSON property refreshToken
| 2507 2508 2509 | # File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2507 def refresh_token @refresh_token end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2514 2515 2516 2517 2518 2519 2520 | # File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2514 def update!(**args) @expires_in = args[:expires_in] if args.key?(:expires_in) @id_token = args[:id_token] if args.key?(:id_token) @is_new_user = args[:is_new_user] if args.key?(:is_new_user) @kind = args[:kind] if args.key?(:kind) @refresh_token = args[:refresh_token] if args.key?(:refresh_token) end |