JwtOptions
JwtOptions configures the JWT extension.
Properties
Section titled “Properties”adapter?
Section titled “adapter?”
readonlyoptionaladapter?:TypeAdapter
adapter converts custom claim values read out of the token payload into CEL values.
cel-go reads the adapter off the environment being configured; the port has no equivalent hook. The default handles every value a token string can decode to, so this is only needed for a token built by hand whose payload holds custom types.
clock?
Section titled “clock?”
readonlyoptionalclock?: () =>Timestamp|Date
clock supplies the current time used by time validation.
Returns
Section titled “Returns”Timestamp | Date
clockLeeway?
Section titled “clockLeeway?”
readonlyoptionalclockLeeway?:Duration
clockLeeway is the tolerance applied when checking the iat, nbf, and exp claims.
validateTimes?
Section titled “validateTimes?”
readonlyoptionalvalidateTimes?:boolean
validateTimes rejects tokens whose time claims are not valid at the current time.
When disabled, which is the default, jwt.parse reports only structural problems.
version?
Section titled “version?”
readonlyoptionalversion?:number
version selects the JWT library version.