Skip to content

Failure handler not overriding #1999

@aynaitlamine

Description

@aynaitlamine
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions