module Touth::ActionControllerSupport::InstanceMethods
Protected Instance Methods
authenticate_token_for!(resource_name)
click to toggle source
# File lib/touth/action_controller_support.rb, line 44 def authenticate_token_for!(resource_name) unless Touth::Authenticator.current resource_name if Touth.allow_raise raise InvalidAccessTokenError, 'access token is not valid' else return unauthorized_token_error end end end