From cac353cdc2cce1266361afaa7e9cba00a20f592b Mon Sep 17 00:00:00 2001 From: Ichinose Shogo Date: Sun, 10 Oct 2021 06:17:39 +0900 Subject: [PATCH] fix the comment of VerifyExpiresAt (#109) --- claims.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/claims.go b/claims.go index b07ac02..444e859 100644 --- a/claims.go +++ b/claims.go @@ -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 { @@ -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 {