-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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
Labels
enhancementNew feature or requestNew feature or request