erquhart
erquhart5mo ago

Authentication fails on the server when the client crashes

Using expo / react native, so not sure if this happens on the web, but when an error occurs in the client (and is caught in the error boundary wrapping the app), all active queries fail as unauthenticated. This has been the case for as long as I've used Convex, and hasn't been an issue, but I now have logic to log the client out when an auth error comes back from Convex, so I'm constantly getting logged out during development. Obviously I can condition the logout logic based on environment, but I avoid environment awareness in my application code. This will be my approach for now, but wanted to raise this in case I'm missing something.
0 Replies
No replies yetBe the first to reply to this messageJoin