From 4596833cdad8438193f3179f72e500dd0f252398 Mon Sep 17 00:00:00 2001 From: Pascal Sthamer Date: Tue, 23 Dec 2025 11:50:56 +0100 Subject: [PATCH] use helper from shuffle-shared to create session_token Signed-off-by: Pascal Sthamer --- backend/go-app/main.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/backend/go-app/main.go b/backend/go-app/main.go index ba05049a..b889cd96 100755 --- a/backend/go-app/main.go +++ b/backend/go-app/main.go @@ -826,11 +826,8 @@ func handleInfo(resp http.ResponseWriter, request *http.Request) { //} expiration := time.Now().Add(3600 * time.Second) - http.SetCookie(resp, &http.Cookie{ - Name: "session_token", - Value: userInfo.Session, - Expires: expiration, - }) + sessionCookie := shuffle.ConstructSessionCookie(userInfo.Session, expiration) + http.SetCookie(resp, sessionCookie) // Updating user info if there's something wrong if len(userInfo.ActiveOrg.Name) == 0 || len(userInfo.ActiveOrg.Id) == 0 {