@@ -3362,10 +3362,13 @@ export default class GoTrueClient {
33623362 /**
33633363 * Retrieves details about an OAuth authorization request.
33643364 * Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
3365+ *
3366+ * Returns authorization details including client info, scopes, and user information.
3367+ * If the API returns a redirect_uri, it means consent was already given - the caller
3368+ * should handle the redirect manually if needed.
33653369 */
33663370 private async _getAuthorizationDetails (
3367- authorizationId : string ,
3368- options ?: { skipBrowserRedirect ?: boolean }
3371+ authorizationId : string
33693372 ) : Promise < AuthOAuthAuthorizationDetailsResponse > {
33703373 try {
33713374 return await this . _useSession ( async ( result ) => {
@@ -3389,17 +3392,7 @@ export default class GoTrueClient {
33893392 {
33903393 headers : this . headers ,
33913394 jwt : session . access_token ,
3392- xform : ( data : any ) => {
3393- // If the API returns redirect_uri, it means consent was already given
3394- if ( data . redirect_uri ) {
3395- // Automatically redirect in browser unless skipBrowserRedirect is true
3396- if ( isBrowser ( ) && ! options ?. skipBrowserRedirect ) {
3397- window . location . assign ( data . redirect_uri )
3398- }
3399- }
3400-
3401- return { data, error : null }
3402- } ,
3395+ xform : ( data : any ) => ( { data, error : null } ) ,
34033396 }
34043397 )
34053398 } )
0 commit comments