OAuthRedirect
import type { OAuthRedirect } from "https://esm.sh/@supabase/supabase-js@2.95.3/dist/index.d.mts";OAuth redirect response when user has already consented or after consent decision. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
This response is returned in three scenarios:
- User already consented to these scopes (auto-approved)
- User just approved the authorization request
- User just denied the authorization request
The redirect_url is a complete URL ready for redirecting the user back to the
OAuth client, including authorization code (on success) or error (on denial) in
query parameters, along with the state parameter if one was provided.
type OAuthRedirect = {
redirect_url: string;
};