interface
CSRFVerifyOptions
interface CSRFVerifyOptions
- secret?: string
The secret to use for the token. If not provided, Bun generates a random default secret in memory and uses it.
- sessionId?: string
The principal (session ID, user ID, or equivalent) the token must be bound to. A token generated with a
sessionIdonly verifies when the samesessionIdis supplied here; a token generated without one only verifies when this option is omitted.