updateOAuthClient()
Patches OAuth client settings for a given OAuth app.
Usage
The following example shows a basic usage of the backend client from @wacht/nextjs/server.
import { wachtClient } from '@wacht/nextjs/server';export async function example() { const client = await wachtClient(); const oauthAppSlug: string = 'oauthappslug'; const oauthClientId: string = 'oauthclientid-123'; const request: UpdateOAuthClientRequest = { redirect_uris: ['https://example.com/callback'], }; return client.oauth.updateOAuthClient(oauthAppSlug, oauthClientId, request);}Signature
function updateOAuthClient( oauthAppSlug: string, oauthClientId: string, request: UpdateOAuthClientRequest,): Promise<OAuthClient>UpdateOAuthClientRequest
›oauthAppSlug?: string | undefined;
oauthAppSlug?: string | undefined;OAuth app slug.
›oauthClientId?: string | undefined;
oauthClientId?: string | undefined;OAuth client id.
›redirect_uris?: string[] | undefined;
redirect_uris?: string[] | undefined;Updated allowed redirect URIs.
›grant_types?: string[] | undefined;
grant_types?: string[] | undefined;Updated grant type set.
Return value
›id?: string | undefined;
id?: string | undefined;OAuth client id.
›client_auth_method?: string | undefined;
client_auth_method?: string | undefined;Client authentication method.
›grant_types?: string[] | undefined;
grant_types?: string[] | undefined;Allowed OAuth grant types.
›redirect_uris?: string[] | undefined;
redirect_uris?: string[] | undefined;Allowed redirect URIs.