So I need to validate that It’s a user logged in am using clerk for authentication should I always use the identity? Ctx.auth.getUserIdentity but since I have a table in the dB storing every user Info I still don’t understand the process very well cause u would like to use the Id from the table not the one from clerk
Any tips would be considered helpful thank you
#How do I actually validate that it’s a particular user logged in
3 messages · Page 1 of 1 (latest)
That auth function gives you info from clerk, and you can associate it with the user by tokenIdentifier or another. Check out docs.convex.dev under authentication
https://stack.convex.dev/wrappers-as-middleware-authentication as a pattern for https://docs.convex.dev/auth/functions-auth
and https://docs.convex.dev/auth/database-auth