NewWacht Bench is live — AI-assisted development for Wacht

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;
OAuth app slug.
scope: string;
OAuth/skills scope key for the operation.

Return value

slug?: string | undefined;
OAuth app slug.
name?: string | undefined;
OAuth app display name.
supported_scopes?: string[] | undefined;
Configured supported scope names.
allow_dynamic_client_registration?: boolean | undefined;
Whether dynamic client registration is enabled.

On this page