We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2f83ebf + 95e3513 commit 660e270Copy full SHA for 660e270
components/ConvexClientProvider.tsx
@@ -20,7 +20,7 @@ export function ConvexClientProvider({ children }: { children: ReactNode }) {
20
function useAuthFromAuthKit() {
21
const { user, loading: isLoading } = useAuth();
22
const { accessToken, loading: tokenLoading, error: tokenError } = useAccessToken();
23
- const loading = (isLoading ?? false) || (tokenLoading ?? false);
+ const loading = (isLoading ?? false) || (tokenLoading ?? false) || !accessToken;
24
const authenticated = !!user && !!accessToken && !loading;
25
26
// Memoize the token to prevent unnecessary changes
0 commit comments