Skip to content

Commit a3b2ffd

Browse files
lggomezoxisto
andcommitted
Update map_claims.go
Co-authored-by: Christian Banse <[email protected]>
1 parent 219543f commit a3b2ffd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

claims.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (c *StandardClaims) VerifyIssuer(cmp string, req bool) bool {
8181
return verifyIss(c.Issuer, cmp, req)
8282
}
8383

84-
// VerifyNotBefore compares the exp claim against cmp (cpp >= nbf).
84+
// VerifyNotBefore compares the exp claim against cmp (cmp >= nbf).
8585
// If req is false, it will return true, if nbf is unset.
8686
func (c *StandardClaims) VerifyNotBefore(cmp int64, req bool) bool {
8787
return verifyNbf(c.NotBefore, cmp, req)

map_claims.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (m MapClaims) VerifyExpiresAt(cmp int64, req bool) bool {
4848
return false
4949
}
5050

51-
// VerifyIssuedAt compares the exp claim against cmp (cpp >= iat).
51+
// VerifyIssuedAt compares the exp claim against cmp (cmp >= iat).
5252
// If req is false, it will return true, if iat is unset.
5353
func (m MapClaims) VerifyIssuedAt(cmp int64, req bool) bool {
5454
iat, ok := m["iat"]
@@ -72,7 +72,7 @@ func (m MapClaims) VerifyIssuer(cmp string, req bool) bool {
7272
return verifyIss(iss, cmp, req)
7373
}
7474

75-
// VerifyNotBefore compares the exp claim against cmp (cpp >= nbf).
75+
// VerifyNotBefore compares the nbf claim against cmp (cmp >= nbf).
7676
// If req is false, it will return true, if nbf is unset.
7777
func (m MapClaims) VerifyNotBefore(cmp int64, req bool) bool {
7878
nbf, ok := m["nbf"]

0 commit comments

Comments
 (0)