Appearance
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?
optionalcacheMaxAge?:number
Defined in: packages/zero-auth/src/types/auth.ts:146
Maximum age of cached keys in milliseconds.
Default
ts
600000 (10 minutes)cooldownDuration?
optionalcooldownDuration?: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?
optionalheaders?:Record<string,string>
Defined in: packages/zero-auth/src/types/auth.ts:152
Optional custom HTTP headers sent with the JWKS request.
timeoutDuration?
optionaltimeoutDuration?:number
Defined in: packages/zero-auth/src/types/auth.ts:150
Timeout in milliseconds for fetching the remote JWKS.
Default
ts
5000 (5 seconds)