MCPcopy
hub / github.com/gofiber/fiber / expireCSRFCookie

Function expireCSRFCookie

middleware/csrf/csrf.go:305–307  ·  view source on GitHub ↗
(c fiber.Ctx, cfg *Config)

Source from the content-addressed store, hash-verified

303}
304
305func expireCSRFCookie(c fiber.Ctx, cfg *Config) {
306 setCSRFCookie(c, cfg, "", -time.Hour)
307}
308
309func setCSRFCookie(c fiber.Ctx, cfg *Config, token string, expiry time.Duration) {
310 cookie := &fiber.Cookie{

Callers 2

NewFunction · 0.85
DeleteTokenMethod · 0.85

Calls 1

setCSRFCookieFunction · 0.85

Tested by

no test coverage detected