Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entering fallback! with token_correct? set to true #363

Closed
emmanuelrdl opened this issue Jun 20, 2020 · 1 comment
Closed

Entering fallback! with token_correct? set to true #363

emmanuelrdl opened this issue Jun 20, 2020 · 1 comment
Labels
support request This issue is a request for support using Simple Token Authentication.

Comments

@emmanuelrdl
Copy link

Hello,

Thank you for your great Gem.
I am facing an issue with it. I would like to use exception as fallback (to render à 401 error).
But it seems that thefallback! method is called even if the token_correct? is true -> code

I might miss something.
Thank you for you help

@emmanuelrdl
Copy link
Author

Found the answer by myself.
I had a current_user method already defined in my ApplicationController.

Thanks

@gonzalo-bulnes gonzalo-bulnes added the support request This issue is a request for support using Simple Token Authentication. label Jan 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support request This issue is a request for support using Simple Token Authentication.
Projects
None yet
Development

No branches or pull requests

2 participants