csrf

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CSRFHeader = "X-CSRF-Token"
)

Variables

This section is empty.

Functions

func MakeToken

func MakeToken(sid string, logger logger.Logger) string

Create CSRF token

func ValidateToken

func ValidateToken(token string, sid string, logger logger.Logger) bool

Validate CSRF token

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL