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

GoTrueAdminOAuthApi

Contains all OAuth client administration methods. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.

interface GoTrueAdminOAuthApi {
createClient(params: CreateOAuthClientParams): Promise<OAuthClientResponse>;
deleteClient(clientId: string): Promise<OAuthClientResponse>;
getClient(clientId: string): Promise<OAuthClientResponse>;
listClients(params?: PageParams): Promise<OAuthClientListResponse>;
regenerateClientSecret(clientId: string): Promise<OAuthClientResponse>;
}

§Methods

§
createClient(params: CreateOAuthClientParams): Promise<OAuthClientResponse>
[src]

Creates a new OAuth client. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.

This function should only be called on a server. Never expose your service_role key in the browser.

§
deleteClient(clientId: string): Promise<OAuthClientResponse>
[src]

Deletes an OAuth client. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.

This function should only be called on a server. Never expose your service_role key in the browser.

§
getClient(clientId: string): Promise<OAuthClientResponse>
[src]

Gets details of a specific OAuth client. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.

This function should only be called on a server. Never expose your service_role key in the browser.

§
listClients(params?: PageParams): Promise<OAuthClientListResponse>
[src]

Lists all OAuth clients with optional pagination. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.

This function should only be called on a server. Never expose your service_role key in the browser.

§
regenerateClientSecret(clientId: string): Promise<OAuthClientResponse>
[src]

Regenerates the secret for an OAuth client. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.

This function should only be called on a server. Never expose your service_role key in the browser.