package
Version:
v0.0.0-...-041ddd6
Opens a new window with list of versions in this module.
Published: Nov 13, 2023
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
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,
})
func DoConvert(c *fiber.Ctx) error
DoConvert handler. HTTP method POST.
func Index(c *fiber.Ctx) error
Index handler. HTTP method GET.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.