Class: Arkaan::OAuth::RefreshToken
- Inherits:
-
Object
- Object
- Arkaan::OAuth::RefreshToken
- Includes:
- Mongoid::Document, Mongoid::Timestamps
- Defined in:
- lib/arkaan/oauth/refresh_token.rb
Overview
A refresh token is used when an access token is expired, to get a new one. It is then recreated for the next expiration.
Instance Attribute Summary collapse
-
#authorization ⇒ Arkaan::OAuth::Authorization
The authorization code that issued this token to the application for this user.
-
#value ⇒ String
The value of the token, returned to the application when built.
Instance Attribute Details
#authorization ⇒ Arkaan::OAuth::Authorization
Returns the authorization code that issued this token to the application for this user.
15 |
# File 'lib/arkaan/oauth/refresh_token.rb', line 15 belongs_to :authorization, class_name: 'Arkaan::OAuth::Authorization', inverse_of: :refresh_token |
#value ⇒ String
Returns the value of the token, returned to the application when built.
11 |
# File 'lib/arkaan/oauth/refresh_token.rb', line 11 field :value, type: String, default: ->{ SecureRandom.hex } |