diff options
| author | mo khan <mo@mokhan.ca> | 2025-05-07 09:12:20 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-05-07 09:12:20 -0700 |
| commit | 524bb0c49649f5ed1d4bed693274ebe041ba1dcf (patch) | |
| tree | bec75c93552aea75c2cbfd28e50e8ae2c2f27719 /app | |
| parent | 21a694497607d886b85ddf8bb4fd1cb535387a41 (diff) | |
refactor: delegate to cookie package
Diffstat (limited to 'app')
| -rw-r--r-- | app/controllers/sessions/controller.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/sessions/controller.go b/app/controllers/sessions/controller.go index 9bbc2b4..3fb29ec 100644 --- a/app/controllers/sessions/controller.go +++ b/app/controllers/sessions/controller.go @@ -35,7 +35,7 @@ func (c *Controller) New(w http.ResponseWriter, r *http.Request) { url, nonce := c.svc.GenerateRedirectURL() // This cookie must be sent as part of a redirect that originates from the OIDC Provider - http.SetCookie(w, web.NewCookie( + cookie.Write(w, web.NewCookie( "oauth_state", nonce, cookie.WithSameSite(http.SameSiteLaxMode), |
