Skip to content

Configurable error messages #189

@TomasBarry

Description

@TomasBarry

What is the problem the enhancement will solve?

When a token has expired, the error message returned is x field requires authentication. It would be great to be able to customise the error message and differentiate between the token being expired due to it having exceeded the lifespan, or whether it is invalidated due to previous usage.

Describe the solution you have in mind

Configurable error messages in general.

Describe alternatives you've considered

Writing custom logic in the controller to test the different scenarios and overload the response.

This seems a bit flakey though if the API of this gem were to change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions