csrf

package
v0.0.0-...-2f27ceb Latest Latest
Warning

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

Go to latest
Published: Mar 10, 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

func ValidateToken

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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