Class: Core::Models::OAuth::RefreshToken

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document, Mongoid::Timestamps
Defined in:
lib/core/models/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.

Author:

Instance Attribute Summary collapse

Instance Attribute Details

#authorizationCore::Models::OAuth::Authorization



18
# File 'lib/core/models/oauth/refresh_token.rb', line 18

belongs_to :authorization, class_name: 'Core::Models::OAuth::Authorization', inverse_of: :refresh_token

#valueString



14
# File 'lib/core/models/oauth/refresh_token.rb', line 14

field :value, type: String, default: ->{ SecureRandom.hex }