Skip to content

Commit

Permalink
upgrade kataras/jwt package and auth/sso: add a future forgiven of 1 …
Browse files Browse the repository at this point in the history
…minute to issuet_at
  • Loading branch information
kataras committed Sep 8, 2023
1 parent 9a8e40c commit b7c2aba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ require (
github.com/json-iterator/go v1.1.12
github.com/kataras/blocks v0.0.7
github.com/kataras/golog v0.1.9
github.com/kataras/jwt v0.1.9
github.com/kataras/jwt v0.1.10
github.com/kataras/neffos v0.0.22
github.com/kataras/pio v0.0.12
github.com/kataras/sitemap v0.0.6
Expand Down
4 changes: 2 additions & 2 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b7c2aba

Please sign in to comment.