Skip to content

override the hard coded sign in error message #165

@jfeltesse

Description

@jfeltesse

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: 401

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions