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