Skip to content

Commit 8541a10

Browse files
PythonHacker24Gregory House
authored andcommitted
Updated token to take JWT expiry same as session expiry
1 parent 8e66fd2 commit 8541a10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/token/token.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414

1515
/* generating jwt token for user identification with specified configs */
1616
func GenerateJWT(username string, sessionID uuid.UUID) (string, error) {
17-
expiryHours := config.BackendConfig.BackendSecurity.JWTExpiry
17+
expiryHours := config.BackendConfig.AppInfo.SessionTimeout
1818

1919
/* generate JWT token with claims */
2020
token := jwt.NewWithClaims(jwt.SigningMethodHS256, jwt.MapClaims{

0 commit comments

Comments
 (0)