Unhandled Runtime Error
Getting Unhandled Runtime Error when trying to sign into the application via a convex action using clerk auth. Only occurs locally and on a single machine.

3 Replies
Hey @charlaylay! This is an error coming from your action in
createSessions
. Are you using useConvexAuth
or one of our helper Auth components to gate the call to the action?Hi Michal! I'm using
<ConvexProviderWithClerk>
. Previously I've tried using useConvexAuth
to solve the issue but then ran into another error where the app is trying to access isLoading
and isAuthenticated
before there is a value.Without useConvexAuth or our Authenticated helper it’s possible that the action runs before the client is authenticated. Do you mind sharing your client code? Feel free to DM me here.
Hey @charlaylay , we have released Convex 0.12.4 which has fixes for auth which might help with your situation. Give it a try and let us know how it goes!