From 4275aa684a3ee438f9f4a0e6207ae8622e203ff1 Mon Sep 17 00:00:00 2001 From: Stavros Date: Wed, 24 Dec 2025 14:52:44 +0200 Subject: [PATCH] refactor: use current time to set new expiry --- internal/service/auth_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/service/auth_service.go b/internal/service/auth_service.go index e272b10..ae5f401 100644 --- a/internal/service/auth_service.go +++ b/internal/service/auth_service.go @@ -244,7 +244,7 @@ func (auth *AuthService) RefreshSessionCookie(c *gin.Context) error { return nil } - newExpiry := session.Expiry + int64(time.Hour.Seconds()) + newExpiry := currentTime + int64(time.Hour.Seconds()) _, err = gorm.G[model.Session](auth.database).Where("uuid = ?", cookie).Updates(c, model.Session{ Expiry: newExpiry,