NewWacht Bench is live — AI-assisted development for Wacht

listOAuthClients()

Returns clients under the given OAuth app slug.

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 listOAuthClients(oauthAppSlug: string) {  const client = await wachtClient();  return client.oauth.listOAuthClients(oauthAppSlug);}

Signature

function listOAuthClients(  oauthAppSlug: string,): Promise<OAuthClient[]>

Parameters

oauthAppSlug?: string | undefined;
OAuth app slug.

Return value

id?: string | undefined;
OAuth client id.
client_auth_method?: string | undefined;
Client authentication method.
grant_types?: string[] | undefined;
Allowed OAuth grant types.
redirect_uris?: string[] | undefined;
Allowed redirect URIs.
scope?: string | undefined;
Default scope string when configured.
client_name?: string | undefined;
Client display name.

Behavior

  • Lists OAuth clients under one OAuth app.
  • Use the returned client ids when querying grants or revoking grants.

Scope boundaries

  • The oauthAppSlug path segment controls tenancy for this method.
  • Only clients belonging to that app slug are returned.

On this page