summaryrefslogtreecommitdiff
path: root/app/controllers/sessions
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-05-08 00:23:55 -0600
committermo khan <mo@mokhan.ca>2025-05-08 00:23:55 -0600
commit26d2e3ec599603dc15ac7b85d02528758b3b8684 (patch)
treea2326cc6ae6dc476b8c707f24afb447cb439342f /app/controllers/sessions
parent8b1e0d187394bde78ecef697f70a4f881e80ace4 (diff)
feat: clear the oauth state cookie after usage
Diffstat (limited to 'app/controllers/sessions')
-rw-r--r--app/controllers/sessions/controller.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/sessions/controller.go b/app/controllers/sessions/controller.go
index 50a81ff..b669440 100644
--- a/app/controllers/sessions/controller.go
+++ b/app/controllers/sessions/controller.go
@@ -150,6 +150,7 @@ func (c *Controller) Create(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusBadRequest)
return
}
+ web.ExpireCookie(w, "oauth_state")
http.Redirect(w, r, "/dashboard", http.StatusFound)
}