Verify a CSRF token.
Symbol
CSRF.verify
@param token
The token to verify.
@param options
The options for the token.
@returns
True if the token is valid, false otherwise.
Referenced types
interface CSRFVerifyOptions
- secret?: string
The secret to use for the token. If not provided, a random default secret will be generated in memory and used.