updateOAuthScope()
Patches a single scope under an 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 updateScope(oauthAppSlug: string, scope: string) { const client = await wachtClient(); return client.oauth.updateOAuthScope(oauthAppSlug, scope, { description: 'Allows reading profile metadata', });}Signature
function updateOAuthScope( oauthAppSlug: string, scope: string, request: UpdateOAuthScopeRequest,): Promise<OAuthApp>UpdateOAuthScopeRequest
›oauthAppSlug?: string | undefined;
oauthAppSlug?: string | undefined;OAuth app slug.
›scope?: string | undefined;
scope?: string | undefined;Scope key to update.
›description?: string | undefined;
description?: string | undefined;Updated scope description.
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.