Class: LogtoCore::AccessToken

Inherits:
Struct
  • Object
show all
Defined in:
lib/logto/core/index_types.rb

Overview

The structured access token.

Instance Attribute Summary collapse

Instance Attribute Details

#expires_atInteger

The epoch timestamp when this token will expire.

Returns:

  • (Integer)

    the current value of expires_at



92
93
94
# File 'lib/logto/core/index_types.rb', line 92

def expires_at
  @expires_at
end

#scopeString

The scopes that this token has.

Returns:

  • (String)

    the current value of scope



92
93
94
# File 'lib/logto/core/index_types.rb', line 92

def scope
  @scope
end

#tokenString

The access token string.

Returns:

  • (String)

    the current value of token



92
93
94
# File 'lib/logto/core/index_types.rb', line 92

def token
  @token
end