devise_token_auth
devise_token_auth copied to clipboard
Custom error message doesn't reach the front end
- Version: Devise Token Auth 1.2.0 and J-Toker 0.0.10-beta3
-
Custom Overrides: what have you done in terms of [custom controller overrides]
- Custom Frontend: jToker
I'm trying to send a custom message to the front end but data always comes up empty. This code kicks in when a user tries to login with a oauth provider other than the one they originally logged in with (unique email conflict)
data is empty even though I provided an error with authFailure as per the documents (i have confirmed it is actually executing the "render_data_or_redirect")