Retrieves details about an OAuth authorization request. Used to display consent information to the user. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
This method returns one of two response types:
OAuthAuthorizationDetails: User needs to consent - show consent page with client infoOAuthRedirect: User already consented - redirect immediately to the OAuth clientUse type narrowing to distinguish between the responses:
if ('authorization_id' in data) {
// Show consent page
} else {
// Redirect to data.redirect_url
}
The authorization ID from the authorization request