StoicWandererS
Convex Community3y ago
5 replies
StoicWanderer

getUserIdentity problem!

Hello everyone,

My concern is about ctx.auth.getUserIdentity, meaning i dont understand when does this function get the user data from Clerk?

I sign-up and i call the storeUser function example from the docs, but i call it in a nextjs client component with useEffect and says i'm not authenticated.
It worked once when i tried in an if block with useConvexAuth's isAuthenticated, but it's not working anymore.
Also tried using in the if block with Clerk's isSignedIn, same, for one signup worked, then next instance not working

How could i solve this?
Was this page helpful?