Skip to content

Commit

Permalink
Fixed jwt update
Browse files Browse the repository at this point in the history
  • Loading branch information
remast committed Dec 12, 2024
1 parent 675ed0f commit 7e9460a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth/auth_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (a *AuthService) AuthenticateTrusted(ctx context.Context, username string)

func (a *AuthService) CreateCookie(tokenAuth *jwtauth.JWTAuth, expiryDuration time.Duration, principal *shared.Principal) http.Cookie {
claims := mapPrincipalToClaims(principal)
claims[jwt.ExpirationKey] = expiryDuration
claims[jwt.ExpirationKey] = jwtauth.ExpireIn(expiryDuration)

_, tokenString, _ := tokenAuth.Encode(claims)

Expand Down

0 comments on commit 7e9460a

Please sign in to comment.