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

OAuthAuthorizationDetails

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

OAuth authorization details when user needs to provide consent. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.

This response includes all information needed to display a consent page: client details, user info, requested scopes, and where the user will be redirected.

Note: redirect_uri is the base URI (e.g., "https://app.com/callback") without query parameters. After consent, you'll receive a complete redirect_url with the authorization code and state parameters appended.

type OAuthAuthorizationDetails = {
authorization_id: string;
redirect_uri: string;
user: {
id: string;
email: string;
}
;
scope: string;
}
;

§Type

§
{
authorization_id: string;
redirect_uri: string;
user: {
id: string;
email: string;
}
;
scope: string;
}
[src]