Skip to content

zero-auth API Documentation v1.6.0


zero-auth API Documentation / JwtValidationConfig

Interface: JwtValidationConfig ​

Defined in: packages/zero-auth/src/types/auth.ts:156

Optional issuer, audience, and clock-skew policy for JWTs.

Extended by ​

Properties ​

audience? ​

optional audience?: string | string[]

Defined in: packages/zero-auth/src/types/auth.ts:160

Expected aud claim. Added to new tokens and checked during verification.


clockTolerance? ​

optional clockTolerance?: number

Defined in: packages/zero-auth/src/types/auth.ts:162

Allowed clock skew in seconds when validating time-based claims.


issuer? ​

optional issuer?: string

Defined in: packages/zero-auth/src/types/auth.ts:158

Expected iss claim. Added to new tokens and checked during verification.