Skip to content

ID or Username in SUB #42

@ghost

Description

SO, great tutorial, but I believe there is a mistake in the JWT part in
https://christophergs.com/tutorials/ultimate-fastapi-tutorial-pt-10-auth-jwt/

When you create an JWT you put in the user id underneath SUB
And when I go to the endpoint /me
you use the same sub (with user id) to put it in username and try to search for a username that is actually a user id.

Or is there something I do not see?

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