Skip to content

Commit 3f50a78

Browse files
authored
Harmonising capitalisation of "token" in error strings (#97)
1 parent 2bd8ee7 commit 3f50a78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

claims.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (c RegisteredClaims) Valid() error {
6161
}
6262

6363
if !c.VerifyIssuedAt(now, false) {
64-
vErr.Inner = fmt.Errorf("Token used before issued")
64+
vErr.Inner = fmt.Errorf("token used before issued")
6565
vErr.Errors |= ValidationErrorIssuedAt
6666
}
6767

@@ -148,7 +148,7 @@ func (c StandardClaims) Valid() error {
148148
}
149149

150150
if !c.VerifyIssuedAt(now, false) {
151-
vErr.Inner = fmt.Errorf("Token used before issued")
151+
vErr.Inner = fmt.Errorf("token used before issued")
152152
vErr.Errors |= ValidationErrorIssuedAt
153153
}
154154

0 commit comments

Comments
 (0)