SrondsS
Convex Community11mo ago
2 replies
Sronds

isLoading from useConvexAuth() always returns false

I need help debugging why my useConvexAuth() hook is returning false for isLoading whether or not the user is going through the sign in process.

It is completely unresponsive even signing out or in, it will just remain false. This happens for both normal password/email sign in as well as OAuth sign in. The only time it is set to true is briefly on app launch. But once the user tries signing in it won't be responsive anymore

isAuthenticated on the other hand is properly functioning as expected.

I am using React Native and have wrapped my app with
    <ConvexAuthProvider
      client={convex}
      storage={Platform.OS === 'ios' || Platform.OS === 'android' ? secureStorage : undefined}
    >
       ...(rest of children)
    </ConvexAuthProvider


It's worth noting this used to work properly but I probably introduced a bug but i have no idea how to debug this
Was this page helpful?