fix: temp change reset cookie to non secure
Some checks failed
Build and Deploy Go App / build (push) Has been cancelled
Build and Deploy Go App / deploy (push) Has been cancelled

This commit is contained in:
nihonium 2025-12-06 07:21:21 +03:00
parent da9d0f8dda
commit 5fb7b16c96
Signed by: nihonium
GPG key ID: 0251623741027CFC

View file

@ -293,8 +293,9 @@ func (s Server) Logout(ctx context.Context, req auth.LogoutRequestObject) (auth.
}
// Delete cookies by setting MaxAge negative
ginCtx.SetCookie("access_token", "", -1, "/api", "", true, true)
ginCtx.SetCookie("refresh_token", "", -1, "/auth", "", true, true)
// TODO: change secure to true
ginCtx.SetCookie("access_token", "", -1, "/api", "", false, true)
ginCtx.SetCookie("refresh_token", "", -1, "/auth", "", false, true)
ginCtx.SetCookie("xsrf_token", "", -1, "/", "", false, false)
return auth.Logout200Response{}, nil