Appearance
zero-auth API Documentation v1.6.0
zero-auth API Documentation / SignTokenOptions
Interface: SignTokenOptions
Defined in: packages/zero-auth/src/core/sign.ts:6
Optional issuer, audience, and clock-skew policy for JWTs.
Extends
Properties
algorithm?
optionalalgorithm?:SupportedAlgorithm
Defined in: packages/zero-auth/src/core/sign.ts:8
JWT algorithm to use for signing.
Default
ts
"HS256"audience?
optionalaudience?:string|string[]
Defined in: packages/zero-auth/src/types/auth.ts:160
Expected aud claim. Added to new tokens and checked during verification.
Inherited from
clockTolerance?
optionalclockTolerance?:number
Defined in: packages/zero-auth/src/types/auth.ts:162
Allowed clock skew in seconds when validating time-based claims.
Inherited from
JwtValidationConfig.clockTolerance
issuer?
optionalissuer?:string
Defined in: packages/zero-auth/src/types/auth.ts:158
Expected iss claim. Added to new tokens and checked during verification.
Inherited from
keyId?
optionalkeyId?:string
Defined in: packages/zero-auth/src/core/sign.ts:10
Optional Key ID to set in the protected header (kid).