Skip to content

Commit db6c73a

Browse files
committed
chore: comment in jwt
1 parent 314070e commit db6c73a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

internal/pkg/jwt/jwt.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ func GenerateJwtTokenString(id string, login string, teamIds []string, key strin
1818
"id": id,
1919
"login": login,
2020
"teams": teamIds,
21-
"exp": jwt.NewNumericDate(exp.Add(time.Second * 60)),
21+
// buffer of time to expire token is 10 seconds from the set time
22+
"exp": jwt.NewNumericDate(exp.Add(time.Second * 60)),
2223
})
2324
return token.SignedString([]byte(key))
2425
}

0 commit comments

Comments
 (0)