From 5fb7b16c9611a8a5b377220e069f733a82b57b98 Mon Sep 17 00:00:00 2001 From: nihonium Date: Sat, 6 Dec 2025 07:21:21 +0300 Subject: [PATCH] fix: temp change reset cookie to non secure --- modules/auth/handlers/handlers.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/auth/handlers/handlers.go b/modules/auth/handlers/handlers.go index 163efc2..0569b59 100644 --- a/modules/auth/handlers/handlers.go +++ b/modules/auth/handlers/handlers.go @@ -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