import { ACL } from './acl.js'; /** * Claims to pass in for the token generator. */ type GeneratorOptions = { /** * Time to live in seconds. */ ttl?: number; /** * The time at which the JWT was issued. */ issued_at?: number; /** * Subject of the token. */ subject?: string; /** * JSON Web Token ID. */ jti?: string; /** * The time before which the JWT is not yet valid. */ notBefore?: number; /** * Access control list. */ acl?: ACL; /** * Additional properties and values. */ key?: string; /** * The time at which the JWT expires. * * If set to a time less than issued_at, the token will expire in 15 minutes. */ exp?: number; /** * Additional custom properties and values. */ [key: string]: unknown | number | string; }; export type { GeneratorOptions };