csrf

package
v0.0.0-...-3c0f6d4 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 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(sessionId 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