devise_token_auth icon indicating copy to clipboard operation
devise_token_auth copied to clipboard

Custom error message doesn't reach the front end

Open FlandersBurger opened this issue 2 years ago • 0 comments

  • 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] image
  • 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)

image

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")

FlandersBurger avatar Apr 27 '22 00:04 FlandersBurger