From 4f45eda955e2067672fa7fd64340dda55b4f308f Mon Sep 17 00:00:00 2001 From: sneha <55897319+sneha-afk@users.noreply.github.com> Date: Mon, 11 Mar 2024 23:23:22 -0700 Subject: [PATCH] bug fix: auth loophole --- authentication/auth_handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/authentication/auth_handler.go b/authentication/auth_handler.go index 447e106..6d18687 100644 --- a/authentication/auth_handler.go +++ b/authentication/auth_handler.go @@ -105,6 +105,7 @@ func LogoutHandler(c *gin.Context) { // Remove from session session := sessions.Default(c) + session.Set("access_token", nil) session.Set("profile", nil) session.Set("user_id", nil) if err := session.Save(); err != nil {