gonzalo-bulnes / simple_token_authentication

Simple (and safe*) token authentication for Rails apps or API with Devise.
GNU General Public License v3.0
1.51k stars 238 forks source link

Entering fallback! with token_correct? set to true #363

Closed emmanuelrdl closed 4 years ago

emmanuelrdl commented 4 years ago

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 commented 4 years ago

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

Thanks