Documentation
¶
Overview ¶
Package handler defines the http handlers
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CsrfProtection = csrf.New(csrf.Config{ KeyLookup: "form:_csrf", CookieName: "csrf_", CookieSameSite: "Strict", Expiration: 1 * time.Hour, KeyGenerator: utils.UUIDv4, ContextKey: "token", ErrorHandler: csrfErrorHandler, SingleUseToken: true, })
CsrfProtection acts as a middleware for the http routes
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.