Skip to content

Commit 390e8d2

Browse files
committed
chore: debug logs
1 parent dfa6903 commit 390e8d2

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

packages/shared/src/react/hooks/useOAuthConsent.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ export function useOAuthConsent(params: UseOAuthConsentParams = {}): UseOAuthCon
7272

7373
const hasClientId = oauthClientId.length > 0;
7474
const queryEnabled = Boolean(user) && hasClientId && enabled && clerk.loaded && !!clerk.oauthApplication;
75+
console.log('queryEnabled', {
76+
user: Boolean(user),
77+
hasClientId,
78+
enabled,
79+
clerkLoaded: clerk.loaded,
80+
hasOAuthApplication: !!clerk.oauthApplication,
81+
});
7582

7683
const query = useClerkQuery({
7784
queryKey,

0 commit comments

Comments
 (0)