module Devise::Models::AccessTokenAuthenticatable::ClassMethods

Public Instance Methods

find_for_access_token_authentication(conditions) click to toggle source
# File lib/devise/models/access_token_authenticatable.rb, line 37
def find_for_access_token_authentication(conditions)
  # TODO Use to_adapter here.
  token = AccessToken.where(token: conditions[token_authentication_key]).first
  [token.user, token] if token.try(:fresh?)
end
http_authenticatable?(authenticatable_name) click to toggle source
# File lib/devise/models/access_token_authenticatable.rb, line 45
def http_authenticatable?(authenticatable_name)
  true
end