1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 10:27:06 +00:00

upgrade kataras/jwt package and auth/sso: add a future forgiven of 1 minute to issuet_at

This commit is contained in:
Gerasimos (Makis) Maropoulos
2023-09-08 12:32:46 +03:00
parent 9a8e40cecf
commit b7c2aba67e
3 changed files with 4 additions and 4 deletions

View File

@@ -382,7 +382,7 @@ func (s *Auth[T]) verify(ctx stdContext.Context, token []byte) (T, StandardClaim
return t, StandardClaims{}, jwt.ErrMissing
}
verifiedToken, err := jwt.VerifyWithHeaderValidator(nil, nil, token, s.keys.ValidateHeader, jwt.Leeway(time.Minute))
verifiedToken, err := jwt.VerifyWithHeaderValidator(nil, nil, token, s.keys.ValidateHeader, jwt.Future(time.Minute), jwt.Leeway(time.Minute))
if err != nil {
return t, StandardClaims{}, err
}