JavaScript: Get authorization details

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:

Use type narrowing to distinguish between the responses:

if ('authorization_id' in data) {
  // Show consent page
} else {
  // Redirect to data.redirect_url
}

Parameters