#Cannot get current user
1 messages · Page 1 of 1 (latest)
What’s your getCurrentUser look like?
It is in the picture on the right side
This is usually because you're calling a query outside of a Authenticated component so it is running before the authentication has been completely propagated (https://docs.convex.dev/auth/debug#ctxauthgetuseridentity-returns-null-in-a-query)
The interesting part here would be to see where you're calling the function that is unexpectedly returning null in your client code + the React tree above that
Is it correct when I wrap the ConvexProviderWithClerk around with Clerk Provider ?
I am able to fix it . Thanks