lib/doorkeeper-mongodb/mixins/mongoid/access_token_mixin.rb
# Indicates whether the token instance have the same credential
# as the other Access Token.
#
# @param access_token [Doorkeeper::AccessToken] other token
#
# @return [Boolean] true if credentials are same of false in other cases
#
Indicates whether the token instance have the same credential
as the other Access Token.
Indicates whether the token instance have the same credential as the other Access Token .
def same_resource_owner?(access_token)
          if Doorkeeper.configuration.try(:polymorphic_resource_owner?)
            resource_owner == access_token.resource_owner
          else
            resource_owner_id == access_token.resource_owner_id
          end
        end
def same_resource_owner? ( access_token ) if Doorkeeper . configuration . try ( :polymorphic_resource_owner? ) resource_owner == access_token . resource_owner else resource_owner_id == access_token . resource_owner_id end end
Indicates whether the token instance have the same credential
as the other Access Token.
Indicates whether the token instance have the same credential as the other Access Token .
true if credentials are same of false in other cases
true if credentials are same of false in other cases
Boolean
access_token
None