Method: Doorkeeper::AccessTokenMixin#plaintext_refresh_token

Defined in:
lib/doorkeeper/models/access_token_mixin.rb

#plaintext_refresh_tokenObject

We keep a volatile copy of the raw refresh token for initial communication The stored refresh_token may be mapped and not available in cleartext.



409
410
411
412
413
414
415
# File 'lib/doorkeeper/models/access_token_mixin.rb', line 409

def plaintext_refresh_token
  if secret_strategy.allows_restoring_secrets?
    secret_strategy.restore_secret(self, :refresh_token)
  else
    @raw_refresh_token
  end
end