Convex X Clerk Issue: Application error: a client-side exception
I've been getting this on my capstone project. I would love to hear your advice on how to fix this issue if you have experienced it as well. This occurs when I'm login into my application for more than 5 minutes then I try logging out it goes in this error, right away?
Here's the repo: https://github.com/achris-alonzo30/hireme
and do you think this is more on Clerk issue? so should I use the ConvexAuth instead?
GitHub
GitHub - achris-alonzo30/hireme
Contribute to achris-alonzo30/hireme development by creating an account on GitHub.
3 Replies
This generally happens on logout because you have live queries listening and the user is suddenly unauthenticated. Have to add graceful handling to your application logic to avoid it, but it shouldn't have much if any impact on the user.
At least that's my assumption looking at this, as I see the same in my main app.
Would you be able to show me what's the best way to handle it. Here's where the error coming from. Do you mind checking if this is the correct way to do it? or I should fix the application logic more on the client side?
and here's the userIdentity fn():
putting <Authenticated> tags around the components that are doing queries that require authentication usually covers this. https://docs.convex.dev/auth/clerk#logged-in-and-logged-out-views
Convex & Clerk | Convex Developer Hub
Clerk is an authentication platform providing login via