Skip to content

Commit

Permalink
fix the comment of VerifyExpiresAt (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 authored Oct 9, 2021
1 parent fd8cd69 commit cac353c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions claims.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (c *RegisteredClaims) VerifyAudience(cmp string, req bool) bool {
return verifyAud(c.Audience, cmp, req)
}

// VerifyExpiresAt compares the exp claim against cmp (cmp <= exp).
// VerifyExpiresAt compares the exp claim against cmp (cmp < exp).
// If req is false, it will return true, if exp is unset.
func (c *RegisteredClaims) VerifyExpiresAt(cmp time.Time, req bool) bool {
if c.ExpiresAt == nil {
Expand Down Expand Up @@ -170,7 +170,7 @@ func (c *StandardClaims) VerifyAudience(cmp string, req bool) bool {
return verifyAud([]string{c.Audience}, cmp, req)
}

// VerifyExpiresAt compares the exp claim against cmp (cmp <= exp).
// VerifyExpiresAt compares the exp claim against cmp (cmp < exp).
// If req is false, it will return true, if exp is unset.
func (c *StandardClaims) VerifyExpiresAt(cmp int64, req bool) bool {
if c.ExpiresAt == 0 {
Expand Down

0 comments on commit cac353c

Please sign in to comment.