Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

AuthOAuthAuthorizationDetailsResponse

import type { AuthOAuthAuthorizationDetailsResponse } from "https://esm.sh/@supabase/supabase-js@2.95.3/dist/index.d.mts";

Response type for getting OAuth authorization details. Returns either full authorization details (if consent needed) or redirect URL (if already consented). Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.

@example
const { data, error } = await supabase.auth.oauth.getAuthorizationDetails(authorizationId)

if (error) {
  console.error('Error:', error)
} else if ('authorization_id' in data) {
  // User needs to provide consent - show consent page
  console.log('Client:', data.client.name)
  console.log('Scopes:', data.scope)
  console.log('Redirect URI:', data.redirect_uri)
} else {
  // User already consented - redirect immediately
  window.location.href = data.redirect_url
}
type AuthOAuthAuthorizationDetailsResponse = RequestResult<OAuthAuthorizationDetails | OAuthRedirect>;