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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user