Skip to content

Commit

Permalink
use correct token nomenclature
Browse files Browse the repository at this point in the history
  • Loading branch information
dreth committed Aug 15, 2024
1 parent 45ed22c commit 38c157c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/auth/jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 38c157c

Please sign in to comment.