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
Lists all OAuth grants that the authenticated user has authorized. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
Response with array of OAuth grants with client information and granted scopes
Revokes a user's OAuth grant for a specific client. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
Revocation marks consent as revoked, deletes active sessions for that OAuth client, and invalidates associated refresh tokens.
- Revocation options
- The OAuth client identifier (UUID) to revoke access for
Empty response on successful revocation