Method: Doorkeeper::AccessTokenMixin#same_credential?

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

#same_credential?(access_token) ⇒ Boolean

Indicates whether the token instance have the same credential as the other Access Token.

Parameters:

Returns:

  • (Boolean)

    true if credentials are same of false in other cases



376
377
378
379
# File 'lib/doorkeeper/models/access_token_mixin.rb', line 376

def same_credential?(access_token)
  application_id == access_token.application_id &&
    same_resource_owner?(access_token)
end