@@ -64,13 +64,13 @@ func (c *StandardClaims) VerifyAudience(cmp string, req bool) bool {
64
64
}
65
65
66
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
67
+ // If req is false, this method will return true if cmp <= exp or if exp is unset
68
68
func (c * StandardClaims ) VerifyExpiresAt (cmp int64 , req bool ) bool {
69
69
return verifyExp (c .ExpiresAt , cmp , req )
70
70
}
71
71
72
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
73
+ // If req is false, this method will return true if cmp >= iat or if iat is unset
74
74
func (c * StandardClaims ) VerifyIssuedAt (cmp int64 , req bool ) bool {
75
75
return verifyIat (c .IssuedAt , cmp , req )
76
76
}
@@ -82,7 +82,7 @@ func (c *StandardClaims) VerifyIssuer(cmp string, req bool) bool {
82
82
}
83
83
84
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
85
+ // If req is false, this method will return true if cmp >= nbf or if nbf is unset
86
86
func (c * StandardClaims ) VerifyNotBefore (cmp int64 , req bool ) bool {
87
87
return verifyNbf (c .NotBefore , cmp , req )
88
88
}
0 commit comments