NewWacht Bench is live — AI-assisted development for Wacht

archiveOAuthScope()

Marks a scope archived so it is no longer active for new authorization flows.

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.archiveOAuthScope(oauthAppSlug, scope);}

Signature

function archiveOAuthScope(  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