//
pkg.gl
Category
github.com/ProfoundNetworks/net
xsrftoken
package
0.20240905.1
Repository:
https://github.com/profoundnetworks/net.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
8
Dependents
0
Files
70 SLOC
#
Functions
Generate
Generate returns a URL-safe secure XSRF token that expires in 24 hours.
Valid
Valid reports whether a token is a valid, unexpired token returned by Generate.
#
Constants
Timeout
Timeout is the duration for which XSRF tokens are valid.