NewWacht Bench is live — AI-assisted development for Wacht

listJwtTemplates()

Returns JWT templates as a paginated response envelope.

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 listJwtTemplates() {  const client = await wachtClient();  return client.settings.listJwtTemplates();}

Signature

function listJwtTemplates(): Promise<PaginatedResponse<JwtTemplate>>

Return value

data?: JwtTemplate[] | undefined;
JWT templates in the current page.
id?: string | undefined;
Template id.
name?: string | undefined;
Template name.
token_lifetime?: number | undefined;
Token lifetime in seconds.
allowed_clock_skew?: number | undefined;
Allowed clock skew in seconds.
custom_signing_key?: CustomSigningKey | undefined;
Custom key config when enabled.
kid?: string | undefined;
Signing key id.
alg?: string | undefined;
Signing algorithm.
private_key?: string | undefined;
PEM/JWK private signing key material.
template?: Record<string, unknown> | undefined;
Claim template object.
sub?: string | undefined;
Subject claim template.
role?: string | undefined;
Role/authorization claim template.
metadata?: Record<string, unknown> | undefined;
Additional custom claim object.
tenant_id?: string | undefined;
Example tenant identifier claim.
plan?: string | undefined;
Example plan claim.
deployment_id?: string | undefined;
Owning deployment id.
created_at?: string | undefined;
Creation timestamp.
updated_at?: string | undefined;
Last update timestamp.
has_more?: boolean | undefined;
Whether another page exists.
limit?: number | undefined;
Effective page size when provided.
offset?: number | undefined;
Effective page offset when provided.

Behavior

  • Returns a backend-scoped list response for this resource.
  • Use pagination and filters from this method to build admin list views.

On this page