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

ID or Username in SUB #42

Open
tvdsluijs opened this issue Feb 6, 2023 · 0 comments
Open

ID or Username in SUB #42

tvdsluijs opened this issue Feb 6, 2023 · 0 comments

Comments

@tvdsluijs
Copy link

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?

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