Skip to content

zero-auth API Documentation v1.6.0


zero-auth API Documentation / RemoteJwksConfig

Interface: RemoteJwksConfig ​

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

Configuration options for remote JWKS key fetching and caching.

Properties ​

cacheMaxAge? ​

optional cacheMaxAge?: number

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

Maximum age of cached keys in milliseconds.

Default ​

ts
600000 (10 minutes)

cooldownDuration? ​

optional cooldownDuration?: number

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

Cooldown duration in milliseconds after an unmatched key before refetching.

Default ​

ts
30000 (30 seconds)

headers? ​

optional headers?: Record<string, string>

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

Optional custom HTTP headers sent with the JWKS request.


timeoutDuration? ​

optional timeoutDuration?: number

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

Timeout in milliseconds for fetching the remote JWKS.

Default ​

ts
5000 (5 seconds)