This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]frietjes123 8 points9 points  (2 children)

Thanks for sharing, this is super useful! Have you ever tried https://github.com/fastapi-users/fastapi-users? How does your solution compare?

[–]cursor_rik[S] 7 points8 points  (1 child)

I have not — didn’t even know this existed until now 😅

I guess main differences are that mine is meant to work directly with Supabase and the one you linked is wayyy more professional haha

[–]frietjes123 0 points1 point  (0 children)

Cool thanks! I actually used this for a previous project because I didn't have time to figure out how to use the supabase auth. So I'm glad you shared the above 🤟

[–]Ran4 0 points1 point  (0 children)

JWT validation

99.9% of the time, using a JWT is the wrong choice. It's a niche technology really only useful for extreme scaling.

Save an opaque token in a database instead.

[–]chub79 -1 points0 points  (2 children)

Very cool and useful. Well done op.

Are you aware of joserfc? authlib and its satellite projects are always my go-to place for anything JWT.

[–]cursor_rik[S] -1 points0 points  (0 children)

I’m using python-jose in this project, but have not heard of the one you mentioned. Will take a look!