oscklmO
Convex Community2y ago
8 replies
oscklm

[ConvexAuth] stuck on auth loading & websocket reconnect

Hello,

We are experiencing some issues with the
@convex-dev/auth
library it seems

We are using these versions of the related packages:
@convex-dev/auth@0.0.65
convex@1.15.0


When we sign in or sign up a user, the 
useConvexAuth()
 doesnt pickup the change it seems, and we are stuck with a isLoading being 
true
 and get the WebSocket reconnect logged in console below, until we use signOut() from 
useAuthActions()`

 Attempting reconnect in 146.84511437432195ms
 LOG  WebSocket reconnected
 LOG  Attempting reconnect in 274.0716054331094ms
 LOG  WebSocket reconnected
 LOG  Attempting reconnect in 519.5632832559711ms
 LOG  WebSocket reconnected


We've made a repro available here, which isolates the issue:
https://github.com/oscklm/flimmer-auth-issue

We've troubleshooted and tried a bunch of different approaches:
- yarn clean cache, remove node_modules, delete yarn lock
- we tried setting up a repro, and removing pretty much everything but auth
Was this page helpful?