@@ -64,13 +64,13 @@ func (c *StandardClaims) VerifyAudience(cmp string, req bool) bool {
6464}
6565
6666// VerifyExpiresAt compares the exp claim against cmp. 
67- // If required  is false, this method will return true if the value matches  or is unset 
67+ // If req  is false, this method will return true if cmp <= exp  or if exp  is unset 
6868func  (c  * StandardClaims ) VerifyExpiresAt (cmp  int64 , req  bool ) bool  {
6969	return  verifyExp (c .ExpiresAt , cmp , req )
7070}
7171
7272// VerifyIssuedAt compares the iat claim against cmp. 
73- // If required  is false, this method will return true if the value matches  or is unset 
73+ // If req  is false, this method will return true if cmp >= iat  or if iat  is unset 
7474func  (c  * StandardClaims ) VerifyIssuedAt (cmp  int64 , req  bool ) bool  {
7575	return  verifyIat (c .IssuedAt , cmp , req )
7676}
@@ -82,7 +82,7 @@ func (c *StandardClaims) VerifyIssuer(cmp string, req bool) bool {
8282}
8383
8484// VerifyNotBefore compares the nbf claim against cmp. 
85- // If required  is false, this method will return true if the value matches  or is unset 
85+ // If req  is false, this method will return true if cmp >= nbf  or if nbf  is unset 
8686func  (c  * StandardClaims ) VerifyNotBefore (cmp  int64 , req  bool ) bool  {
8787	return  verifyNbf (c .NotBefore , cmp , req )
8888}
0 commit comments