csrf

package
v0.0.0-...-a01959a Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const CSRFTokenTTL = 30 * time.Minute
View Source
const CsrfCookieName = "csrf_token"

Variables

This section is empty.

Functions

func DeleteCSRFTokenCookie

func DeleteCSRFTokenCookie(w http.ResponseWriter) error

func GenerateCSRFToken

func GenerateCSRFToken() (string, error)

func GetCSRFTokenFromCookie

func GetCSRFTokenFromCookie(r *http.Request) (string, error)

func SetCSRFTokenCookie

func SetCSRFTokenCookie(w http.ResponseWriter, token string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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