From 3f50a786ff28f918ba8e7fb9183390b11483e755 Mon Sep 17 00:00:00 2001 From: yoogo Date: Mon, 30 Aug 2021 02:45:24 +0800 Subject: [PATCH] Harmonising capitalisation of "token" in error strings (#97) --- claims.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/claims.go b/claims.go index 849c2c6..ffd5dba 100644 --- a/claims.go +++ b/claims.go @@ -61,7 +61,7 @@ func (c RegisteredClaims) Valid() error { } if !c.VerifyIssuedAt(now, false) { - vErr.Inner = fmt.Errorf("Token used before issued") + vErr.Inner = fmt.Errorf("token used before issued") vErr.Errors |= ValidationErrorIssuedAt } @@ -148,7 +148,7 @@ func (c StandardClaims) Valid() error { } if !c.VerifyIssuedAt(now, false) { - vErr.Inner = fmt.Errorf("Token used before issued") + vErr.Inner = fmt.Errorf("token used before issued") vErr.Errors |= ValidationErrorIssuedAt }