citrusC
Convex Community15mo ago
14 replies
citrus

getUserIdentity returning null + ui errors, convex clerk

Hi,
I am trying out Convex + Clerk for first time. I used these docs. https://docs.convex.dev/auth/clerk#user-information-in-functions

I am using https.ts in convex with webhook in clerk for sycning users in clerk & convex which seems to be working correctly.

In convex functions, I am trying to simply get the clerkId. As the docs mentioned, the components that query needs to be a children of <Authenticated> from "convex/react". As you can see, I've done that with a Providers in layout.

The getUserIdentity still returns null & now, my page renders with only html, no styles.
image.png
image.png
image.png
Clerk is an authentication platform providing login via
Convex & Clerk | Convex Developer Hub
Was this page helpful?