@@ -63,14 +63,14 @@ func (c *StandardClaims) VerifyAudience(cmp string, req bool) bool {
6363 return verifyAud ([]string {c .Audience }, cmp , req )
6464}
6565
66- // VerifyExpiresAt compares the exp claim against cmp.
67- // If required is false, this method will return true if the value matches or is unset
66+ // VerifyExpiresAt compares the exp claim against cmp (cmp <= exp) .
67+ // If req is false, it will return true, if exp is unset.
6868func (c * StandardClaims ) VerifyExpiresAt (cmp int64 , req bool ) bool {
6969 return verifyExp (c .ExpiresAt , cmp , req )
7070}
7171
72- // VerifyIssuedAt compares the iat claim against cmp.
73- // If required is false, this method will return true if the value matches or is unset
72+ // VerifyIssuedAt compares the iat claim against cmp (cmp >= iat) .
73+ // If req is false, it will return true, if iat is unset.
7474func (c * StandardClaims ) VerifyIssuedAt (cmp int64 , req bool ) bool {
7575 return verifyIat (c .IssuedAt , cmp , req )
7676}
@@ -81,8 +81,8 @@ func (c *StandardClaims) VerifyIssuer(cmp string, req bool) bool {
8181 return verifyIss (c .Issuer , cmp , req )
8282}
8383
84- // VerifyNotBefore compares the nbf claim against cmp.
85- // If required is false, this method will return true if the value matches or is unset
84+ // VerifyNotBefore compares the nbf claim against cmp (cmp >= nbf) .
85+ // If req is false, it will return true, if nbf is unset.
8686func (c * StandardClaims ) VerifyNotBefore (cmp int64 , req bool ) bool {
8787 return verifyNbf (c .NotBefore , cmp , req )
8888}
0 commit comments