OptionalallowAuthorize a mint request. Receives the requested grant and the verified
claims of the caller's bearer token (or null if none/invalid). Return the
role to actually grant, or null to deny (→ 403). This is where consumers
encode policy — e.g. "only an admin token for this room may mint", or
"anyone may create a fresh room and become its owner".
OptionaldefaultLifetime for minted tokens when the request omits one (default 7 days).
OptionalisDeny-list check for revoked jtis. A revoked bearer (e.g. a kicked
admin's token) must not keep minting links even though its signature +
expiry still verify — when this returns true the bearer is treated as
absent, so authorize sees bearerClaims: null.
OptionalkidKey id stamped on minted tokens.
OptionalmaxReject bodies larger than this (default 4 KB).
OptionalmaxUpper bound applied to a requested ttlSeconds (default 30 days).
OptionalnowSecret used to sign newly minted tokens.
OptionaltrustHonor X-Forwarded-For when deriving clientIp (default OFF). Only set
this when the server is reachable exclusively through a trusted reverse
proxy; a directly reachable server that trusts the header lets every
caller pick a fresh spoofed IP per request, giving each request its own
rate-limit bucket and making the per-IP mint throttle useless.
OptionalverifySecret(s) used to verify the caller's bearer token (default: secret).
CORS
Access-Control-Allow-Origin(default*).