File tree Expand file tree Collapse file tree
packages/clerk-js/src/core/resources Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments