Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure handler not overriding #1999

Open
aynaitlamine opened this issue May 16, 2024 · 0 comments
Open

Failure handler not overriding #1999

aynaitlamine opened this issue May 16, 2024 · 0 comments

Comments

@aynaitlamine
Copy link

aynaitlamine commented May 16, 2024

Q A
Bug? yes
New Feature? no
Support question? no
Version 2.x

Actual Behavior

What is the actual behavior?
Upon encountering an issue, the system currently redirects users to '/' without displaying any error message.

Expected Behavior

What is the behavior you expect?
The expected behavior is to display an error message in JSON format when using Lexik. Specifically, while the success_handler (lexik_jwt_authentication.handler.authentication_success) functions correctly, the failure_handler (lexik_jwt_authentication.handler.authentication_failure) fails to override the default behavior.

@aynaitlamine aynaitlamine changed the title I can't override failure_handler Failure handler not overriding May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant