Skip to content

Is that gem work with API? #348

@Uysim

Description

@Uysim

I have my controller

 class BaseController < ActionController::API
    acts_as_token_authentication_handler_for User, fallback: :exception
end 

I expect to it to render json error. But it redirect me to /user/sign_in page of devise.
And what kind of exception you raise?

Metadata

Metadata

Assignees

No one assigned

    Labels

    support requestThis issue is a request for support using Simple Token Authentication.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions