diff --git a/backend/auth/jwt.go b/backend/auth/jwt.go index b82283f..db7aea8 100644 --- a/backend/auth/jwt.go +++ b/backend/auth/jwt.go @@ -49,7 +49,7 @@ func ValidateJWT(tokenStr string) (*structs.Claims, error) { } func GetJWTDurationFromHeader(c *gin.Context, defaultDuration int) (int, error) { - jwtDurationStr := c.GetHeader("x-jwt-duration-hours") + jwtDurationStr := c.GetHeader("X-Jwt-Token-Duration") if jwtDurationStr != "" { jwtDuration, err := strconv.Atoi(jwtDurationStr) if err != nil {