Skip to content

Commit b770b11

Browse files
author
Gregory House
committed
Updated token to take JWT expiry same as session expiry
1 parent 2ef86cc commit b770b11

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)