zorrr99's Thread
man. authentication is relatively hard to understand. Should I close my eyes and just replicate docs and watch my working project or should I spare time and put effort to understand those thing? Should I even teach myself how to code it myself?
note: I know; how JWT works, what is session management, access token, refresh token, but not sure if I even can effectively create a working diagram/design like in the image probably and the code.
Sorry if it is unrelated, I love Convex Auth already but I am just seeking advice as a junior. I don't feel like GPT can guide me in this case.
4 Replies
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. If this is a support-related question, please create a post in #support-community. If not, carry on! Thanks!
Is there something you don't understand specifically or that's getting in the way? Otherwise I would say don't sweat it terribly. We tend to organically learn more as we need to in the process of building things.
I'd not be able to code this system. and the green box specifically confused me. I am putting much effort to learn how authentication exactly mean and typically. How and when system decides get positive return from the API ... Called pipeline I guess. I cannot exactly connect the dots and then I spend more time. I mean I understand what is what but it feels like black box and everything works in sync magically
@zor I really recommend https://www.youtube.com/watch?v=ZvlmSy85bj4 and the accompanying repo https://github.com/get-convex/convex-auth-with-role-based-permissions
You can load up the code into Claude and have it teach you what you need to, this repo is specifically good to address clarifications related to Authorization (the green box in your diagram)
Convex
YouTube
Setting up Convex Auth in 3 minutes and 50 seconds (plus role-based...
Get the code: https://github.com/get-convex/convex-auth-with-role-based-permissions
It's time to walk through Convex Auth, step-by-step and see it in action.
But wait! There's more! After the 3m:50s mark, we spend the next 10 minutes walking through how to layer on role based permissions to your shiny new auth system.
We run through a real-...
GitHub
GitHub - get-convex/convex-auth-with-role-based-permissions: A basi...
A basic example of using Convex Auth with role-based permissions - get-convex/convex-auth-with-role-based-permissions