AuthOAuthServerApi
Contains all OAuth 2.1 authorization server user-facing methods. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
These methods are used to implement the consent page.
§Methods
Approves an OAuth authorization request. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- The authorization ID to approve
- Optional parameters including skipBrowserRedirect
Redirect URL to send the user back to the OAuth client
Denies an OAuth authorization request. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
- The authorization ID to deny
- Optional parameters including skipBrowserRedirect
Redirect URL to send the user back to the OAuth client
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 authorization details including client info, scopes, and user information. If the response includes a redirect_uri, it means consent was already given - the caller should handle the redirect manually if needed.
- The authorization ID from the authorization request
Authorization details including client info and requested scopes