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;
client: OAuthAuthorizationClient;
user: {
id: string;
email: string;
}; scope: string;
};§Type
§
{
[src]authorization_id: string;
redirect_uri: string;
client: OAuthAuthorizationClient;
user: {
id: string;
email: string;
}; scope: string;
}