Home / Function/ updateCSRFCookie() — fiber Function Reference

updateCSRFCookie() — fiber Function Reference

Architecture documentation for the updateCSRFCookie() function in csrf.go from the fiber codebase.

Function go FiberMiddleware Security calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  a54cc94c_ec5f_7f46_d976_515ae08619ab["updateCSRFCookie()"]
  57b9eed3_6274_c073_f0db_e3c30b2a59fe["csrf.go"]
  a54cc94c_ec5f_7f46_d976_515ae08619ab -->|defined in| 57b9eed3_6274_c073_f0db_e3c30b2a59fe
  c524454a_687b_b78d_a451_724040543641["New()"]
  c524454a_687b_b78d_a451_724040543641 -->|calls| a54cc94c_ec5f_7f46_d976_515ae08619ab
  4fe9f58f_20c6_20b3_a6b6_d770415547a4["setCSRFCookie()"]
  a54cc94c_ec5f_7f46_d976_515ae08619ab -->|calls| 4fe9f58f_20c6_20b3_a6b6_d770415547a4
  style a54cc94c_ec5f_7f46_d976_515ae08619ab fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

middleware/csrf/csrf.go lines 280–282

func updateCSRFCookie(c fiber.Ctx, cfg *Config, token string) {
	setCSRFCookie(c, cfg, token, cfg.IdleTimeout)
}

Subdomains

Called By

Frequently Asked Questions

What does updateCSRFCookie() do?
updateCSRFCookie() is a function in the fiber codebase, defined in middleware/csrf/csrf.go.
Where is updateCSRFCookie() defined?
updateCSRFCookie() is defined in middleware/csrf/csrf.go at line 280.
What does updateCSRFCookie() call?
updateCSRFCookie() calls 1 function(s): setCSRFCookie.
What calls updateCSRFCookie()?
updateCSRFCookie() is called by 1 function(s): New.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free