Explicit typing is mandatory (ยง3.11): the typ is a constructor argument.
Set a custom claim. Registered claims must use their dedicated methods.
Token lifetime from now, e.g. "10m" or 600. Capped by maxLifetime.
Override the auto-assigned jti. Uniqueness is then your problem.
Delay validity by duration from now (nbf).
Waive the payload hygiene scanner for one claim (LW-payload). Grep for this in review.
Waive the mandatory aud. Grep for this in review.
Waive the mandatory exp. Grep for this in review.
Waive the mandatory iss. Grep for this in review.
Fluent builder for a signed JWT.
typis a constructor argument, and.sign()refuses to run withoutissuer,audienceandexpiresIn(each waivable only via a grep-loudunsafeAllowMissing*call).Example