For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.
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