Skip to content
This repository was archived by the owner on May 26, 2020. It is now read-only.
This repository was archived by the owner on May 26, 2020. It is now read-only.

The default jwt_get_username_from_payload_handler() might fail with other username field #284

@jgadelange

Description

@jgadelange

When I updated my payload by editing the jwt_payload_handler() I all of a sudden got Payload invalid errors. This was due to the fact that I removed the username from the payload altogether, since in my app email is the username field.

I therefore believe the default jwt_get_username_from_payload_handler() should also use the get_username_field() function.

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