diff options
| author | mo khan <mo@mokhan.ca> | 2025-05-07 11:22:09 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-05-07 11:22:09 -0700 |
| commit | 18b4c984acb8302f7c562ad5e7bb3e61c5408175 (patch) | |
| tree | d993719518fa4d20e1082e1dd3743ff124184eb3 | |
| parent | 33234f9ca76d7fe44c87c56019a5dc9378b6a532 (diff) | |
fix: remove the csrf cookie after usage
| -rw-r--r-- | app/controllers/sessions/controller.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/sessions/controller.go b/app/controllers/sessions/controller.go index 91f2f47..7c65d56 100644 --- a/app/controllers/sessions/controller.go +++ b/app/controllers/sessions/controller.go @@ -152,6 +152,7 @@ func (c *Controller) Create(w http.ResponseWriter, r *http.Request) { "now": time.Now(), }) cookie.Write(w, ck) + web.ExpireCookie(w, "oauth_state") http.Redirect(w, r, "/dashboard", http.StatusFound) } |
