updateOAuthApp()
Patches OAuth app metadata via the backend OAuth app update route.
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 renameOAuthApp(oauthAppSlug: string) { const client = await wachtClient(); return client.oauth.updateOAuthApp(oauthAppSlug, { name: 'Updated OAuth App', description: 'Updated app description', });}Signature
function updateOAuthApp( oauthAppSlug: string, request: UpdateOAuthAppRequest,): Promise<OAuthApp>UpdateOAuthAppRequest
›oauthAppSlug?: string | undefined;
oauthAppSlug?: string | undefined;OAuth app slug.
›name?: string | undefined;
name?: string | undefined;Updated app name.
›description?: string | undefined;
description?: string | undefined;Updated app description.
›fqdn?: string | undefined;
fqdn?: string | undefined;Updated OAuth issuer/host domain.
Return value
›slug?: string | undefined;
slug?: string | undefined;OAuth app slug.
›name?: string | undefined;
name?: string | undefined;OAuth app display name.
›supported_scopes?: string[] | undefined;
supported_scopes?: string[] | undefined;Configured supported scope names.
›allow_dynamic_client_registration?: boolean | undefined;
allow_dynamic_client_registration?: boolean | undefined;Whether dynamic client registration is enabled.