Class: Google::Apis::IdentitytoolkitV3::VerifyCustomTokenResponse

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ VerifyCustomTokenResponse

Returns a new instance of VerifyCustomTokenResponse.


2039
2040
2041
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2039

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#expires_inString

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

Returns:

  • (String)

2022
2023
2024
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2022

def expires_in
  @expires_in
end

#id_tokenString

The GITKit token for authenticated user. Corresponds to the JSON property idToken

Returns:

  • (String)

2027
2028
2029
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2027

def id_token
  @id_token
end

#kindString

The fixed string "identitytoolkit#VerifyCustomTokenResponse". Corresponds to the JSON property kind

Returns:

  • (String)

2032
2033
2034
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2032

def kind
  @kind
end

#refresh_tokenString

If idToken is STS id token, then this field will be refresh token. Corresponds to the JSON property refreshToken

Returns:

  • (String)

2037
2038
2039
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2037

def refresh_token
  @refresh_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2044
2045
2046
2047
2048
2049
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2044

def update!(**args)
  @expires_in = args[:expires_in] if args.key?(:expires_in)
  @id_token = args[:id_token] if args.key?(:id_token)
  @kind = args[:kind] if args.key?(:kind)
  @refresh_token = args[:refresh_token] if args.key?(:refresh_token)
end