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, })