interface
CSRFGenerateOptions
interface CSRFGenerateOptions
- expiresIn?: number
The number of milliseconds until the token expires. 0 means the token never expires.
- sessionId?: string
Binds the token to the requesting principal (session ID, user ID, or equivalent). A token generated with a
sessionIdonly verifies when the samesessionIdis supplied toverify(). Without it, any token issued under the same secret validates for every user.