-
Notifications
You must be signed in to change notification settings - Fork 230
Open
Description
Hi,
How can you display custom error messages given in the server response on a failed sign in ?
Looking at the code it seems the promise is rejected with an hard coded message (Invalid credentials) but in my case I want to use the error message my API is giving back for i18n purposes.
I've tried to search for a similar issue, #38 was close but doesn't apply in my case or I'm missing something.
The server side code looks like
render json: { errors: ["my custom error message in whatever lang"] }, status: 401Cheers!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels