Update CSRF cookie if expireCookie is true, the cookie will expire immediately
(c fiber.Ctx, cfg *Config, token string)
| 299 | // Update CSRF cookie |
| 300 | // if expireCookie is true, the cookie will expire immediately |
| 301 | func updateCSRFCookie(c fiber.Ctx, cfg *Config, token string) { |
| 302 | setCSRFCookie(c, cfg, token, cfg.IdleTimeout) |
| 303 | } |
| 304 | |
| 305 | func expireCSRFCookie(c fiber.Ctx, cfg *Config) { |
| 306 | setCSRFCookie(c, cfg, "", -time.Hour) |