Skip to content

Commit

Permalink
fix: pipeline not run caused by nbf early now (#1031)
Browse files Browse the repository at this point in the history
  • Loading branch information
yudong2015 authored Jan 29, 2024
1 parent 783b0f8 commit 067e397
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/jwt/token/jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ func (s *jwtTokenIssuer) Verify(tokenString string) (user.Info, TokenType, error

func (s *jwtTokenIssuer) IssueTo(user user.Info, tokenType TokenType, expiresIn time.Duration) (string, error) {
issueAt := time.Now().Unix() - int64(s.maximumClockSkew.Seconds())
notBefore := issueAt
clm := &Claims{
Username: user.GetName(),
Groups: user.GetGroups(),
Expand All @@ -108,7 +107,6 @@ func (s *jwtTokenIssuer) IssueTo(user user.Info, tokenType TokenType, expiresIn
StandardClaims: jwt.StandardClaims{
IssuedAt: issueAt,
Issuer: s.name,
NotBefore: notBefore,
},
}

Expand Down

0 comments on commit 067e397

Please sign in to comment.