From 5adba7e772f159f3e11dc3dc465d38f07ced063e Mon Sep 17 00:00:00 2001 From: David Oduneye <44040421+DOOduneye@users.noreply.github.com> Date: Fri, 9 Feb 2024 17:41:52 -0500 Subject: [PATCH] resolve issue 181 (#182) --- backend/src/auth/tokens.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/auth/tokens.go b/backend/src/auth/tokens.go index ca902803f..3f2c96543 100644 --- a/backend/src/auth/tokens.go +++ b/backend/src/auth/tokens.go @@ -36,7 +36,7 @@ func CreateAccessToken(id string, role string, accessExpiresAfter uint, accessTo StandardClaims: jwt.StandardClaims{ IssuedAt: time.Now().Unix(), Issuer: id, - ExpiresAt: time.Now().Add(time.Duration(accessExpiresAfter)).Unix(), + ExpiresAt: time.Now().Add(time.Hour * time.Duration(accessExpiresAfter)).Unix(), }, Role: role, })