Module: Devise::Models::OttAuthentication

Extended by:
ActiveSupport::Concern
Defined in:
lib/devise_ott/models/ott_authentication.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#ott_allowed?(token, resource_id) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/devise_ott/models/ott_authentication.rb', line 13

def ott_allowed?(token, resource_id)
  DeviseOtt::Tokens.instance.access(token, resource_id)
end