CSRFVerifyOptions

Bun

Symbol

CSRFVerifyOptions

interface CSRFVerifyOptions

  • algorithm?: CSRFAlgorithm

    The algorithm to use for the token.

  • encoding?: 'base64' | 'base64url' | 'hex'

    The encoding of the token.

  • maxAge?: number

    The number of milliseconds until the token expires. 0 means the token never expires.

  • secret?: string

    The secret to use for the token. If not provided, a random default secret will be generated in memory and used.