lib/doorkeeper-mongodb/mixins/mongoid/access_token_mixin.rb
# We keep a volatile copy of the raw token for initial communication
# The stored refresh_token may be mapped and not available in cleartext.
#
# Some strategies allow restoring stored secrets (e.g. symmetric encryption)
# while hashing strategies do not, so you cannot rely on this value
# returning a present value for persisted tokens.
We keep a volatile copy of the raw token for initial communication
The stored refresh_token may be mapped and not available in cleartext.

Some strategies allow restoring stored secrets
while hashing strategies do not, so you cannot rely on this value
returning a present value for persisted tokens.
We keep a volatile copy of the raw token for initial communication The stored refresh_token may be mapped and not available in cleartext . Some strategies allow restoring stored secrets while hashing strategies do not so you cannot rely on this value returning a present value for persisted tokens .
def plaintext_token
          if secret_strategy.allows_restoring_secrets?
            secret_strategy.restore_secret(self, :token)
          else
            @raw_token
          end
        end
def plaintext_token if secret_strategy . allows_restoring_secrets? secret_strategy . restore_secret ( self , :token ) else @raw_token end end
We keep a volatile copy of the raw token for initial communication
The stored refresh_token may be mapped and not available in cleartext.
We keep a volatile copy of the raw token for initial communication The stored refresh_token may be mapped and not available in cleartext .