From 18663c60d7bfeb8742295da6c6a85bcaf1c23a00 Mon Sep 17 00:00:00 2001 From: Ichinose Shogo Date: Mon, 27 Sep 2021 19:19:47 +0900 Subject: [PATCH] fix the comment of VerifyExpiresAt --- claims.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/claims.go b/claims.go index b07ac02d..444e8599 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 {