diff --git a/middleware/auth/jwt/jwt.go b/middleware/auth/jwt/jwt.go index 23b648d54..f820626dc 100644 --- a/middleware/auth/jwt/jwt.go +++ b/middleware/auth/jwt/jwt.go @@ -33,7 +33,7 @@ var ( ErrTokenExpired = errors.Unauthorized("UNAUTHORIZED", "JWT token has expired") ErrTokenParseFail = errors.Unauthorized("UNAUTHORIZED", "Fail to parse JWT token ") ErrUnSupportSigningMethod = errors.Unauthorized("UNAUTHORIZED", "Wrong signing method") - ErrWrongContext = errors.Unauthorized("UNAUTHORIZED", "Wrong context for middelware") + ErrWrongContext = errors.Unauthorized("UNAUTHORIZED", "Wrong context for middleware") ErrNeedTokenProvider = errors.Unauthorized("UNAUTHORIZED", "Token provider is missing") ErrSignToken = errors.Unauthorized("UNAUTHORIZED", "Can not sign token.Is the key correct?") ErrGetKey = errors.Unauthorized("UNAUTHORIZED", "Can not get key while signing token")