Skip to content

ID or Username in SUB #42

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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