listOAuthApps()
Returns OAuth apps from the deployment-scoped OAuth app list endpoint.
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 listOAuthApps() { const client = await wachtClient(); return client.oauth.listOAuthApps();}Signature
function listOAuthApps(): Promise<OAuthApp[]>Return value
›slug?: string | undefined;
slug?: string | undefined;OAuth app slug.
›name?: string | undefined;
name?: string | undefined;OAuth app display name.
›description?: string | undefined;
description?: string | undefined;OAuth app description when set.
›fqdn?: string | undefined;
fqdn?: string | undefined;OAuth issuer/domain hostname.
›supported_scopes?: string[] | undefined;
supported_scopes?: string[] | undefined;Supported OAuth scopes.
›allow_dynamic_client_registration?: boolean | undefined;
allow_dynamic_client_registration?: boolean | undefined;Whether dynamic client registration is enabled.
Behavior
- Returns OAuth applications configured in the current deployment.
- The response includes inactive entries when the backend includes them in the list result.
When to use
- Use this before listing clients or grants when you only know deployment context.
- Use the returned app slug as input to client- and grant-scoped methods.