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_at ⇒ Integer

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

#scope ⇒ String

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

#token ⇒ String

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