Skip to content

Commit 46c893c

Browse files
committed
remove redundant session ID retrieval
as the FAPI client will set it automatically
1 parent 0c712f0 commit 46c893c

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

packages/clerk-js/src/core/resources/OAuthApplication.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,12 @@ export class OAuthApplication extends BaseResource {
1616
}
1717

1818
static async fetchConsentInfo(params: FetchOAuthConsentInfoParams): Promise<OAuthConsentInfo> {
19-
const sessionId = BaseResource.clerk.session?.id;
20-
if (!sessionId) {
21-
throw new ClerkRuntimeError(
22-
'Clerk: `oauthApplication.fetchConsentInfo` requires an active session. Ensure a user is signed in before calling this method.',
23-
{ code: 'cannot_fetch_oauth_consent_no_session' },
24-
);
25-
}
26-
2719
const { oauthClientId, scope } = params;
2820
const json = await BaseResource._fetch<OAuthConsentInfoJSON>(
2921
{
3022
method: 'GET',
3123
path: `/me/oauth/consent/${encodeURIComponent(oauthClientId)}`,
3224
search: scope !== undefined ? { scope } : undefined,
33-
sessionId,
3425
},
3526
{ skipUpdateClient: true },
3627
);

0 commit comments

Comments
 (0)