package
Version:
v2.5.1
Opens a new window with list of versions in this module.
Published: Oct 3, 2024
License: BSD-3-Clause
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var (
ErrTokenEmpty = errors.New("CSRF token empty")
ErrTokenMalformed = errors.New("CSRF token malformed")
ErrTokenInvalid = errors.New("CSRF token invalid")
ErrTokenExpired = errors.New("CSRF token expired")
ErrNonceInsufficient = fmt.Errorf("CSRF nonce must be >= %d bytes", min)
)
type CSRF struct {
Nonce string `json:"nonce"`
Expires time.Time `json:"expires"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.