package
1.5.1
Repository: https://github.com/csrwng/origin.git
Documentation: pkg.go.dev

# Functions

NewCookieCSRF stores random CSRF tokens in a cookie created with the given options.
NewEmptyCSRF returns a CSRF object which generates empty CSRF tokens, and accepts any token as valid.
NewSessionCSRF stores CSRF tokens in a session with the given name.

# Constants

No description provided by the author

# Structs

FakeCSRF returns the given token and error for testing purposes.

# Interfaces

CSRF handles generating a csrf value, and checking the submitted value.