diff --git a/exception/auth.go b/exception/auth.go index 2e0cfe9..f63187c 100644 --- a/exception/auth.go +++ b/exception/auth.go @@ -2,7 +2,8 @@ package exception // jwt custom error code ,begin:200 var ( - ErrAuthPasswd = Errorf(201, "Password Error") + ErrAuthSecret = Errorf(200, "Auth JwtSecret Error") + ErrAuthDecode = Errorf(201, "Auth Token Base64 Decode Error") ErrAuthNotFound = Errorf(202, "Auth Token Not Found") ErrAuthParseFail = Errorf(203, "Auth Parse Fail") ErrAuthId = Errorf(204, "Auth Id Not Passed") diff --git a/exception/errors.go b/exception/errors.go index 98ff4b0..d264a41 100644 --- a/exception/errors.go +++ b/exception/errors.go @@ -28,6 +28,7 @@ var ( ErrUnauthenticated = Errorf(16, "Unauthenticated") ErrJSONMarshal = Errorf(17, "Marshal JSON") ErrJSONUnmarshal = Errorf(18, "Unmarshal JSON") + ErrPasswd = Errorf(19, "Password Error") ErrSmsCode = Errorf(20, "SMS Code Invalid")