unarchiveOAuthScope()
Re-activates a previously archived OAuth scope.
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 scope: string = 'agent'; return client.oauth.unarchiveOAuthScope(oauthAppSlug, scope);}Signature
function unarchiveOAuthScope( oauthAppSlug: string, scope: string, client?: WachtClient,): Promise<OAuthApp>Parameters
›oauthAppSlug: string;
oauthAppSlug: string;OAuth app slug.
›scope: string;
scope: string;OAuth/skills scope key for the operation.
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.