engine/exception/auth.go

19 lines
839 B
Go
Raw Normal View History

2024-02-11 01:31:01 +08:00
package exception
// jwt custom error code ,begin:200
var (
2024-02-28 13:40:34 +08:00
ErrAuthSecret = Errorf(200, "Auth JwtSecret Error")
2024-02-28 13:47:23 +08:00
ErrBase64Decode = Errorf(201, "Auth Token Base64 Decode Error")
2024-02-20 14:55:45 +08:00
ErrAuthNotFound = Errorf(202, "Auth Token Not Found")
ErrAuthParseFail = Errorf(203, "Auth Parse Fail")
ErrAuthId = Errorf(204, "Auth Id Not Passed")
ErrAuthIdentity = Errorf(205, "Auth Identity Not Passed")
ErrAuthTokenChanged = Errorf(206, "Auth Token Changed")
ErrAuthIdType = Errorf(207, "Auth Id Type Error")
ErrAuthExpire = Errorf(208, "Auth Token Expire")
2024-02-28 13:47:23 +08:00
ErrAuthClient = Errorf(209, "Auth Token Client Not Passed")
ErrJsonDecode = Errorf(210, "Auth JSON Decode Error")
ErrJsonEncode = Errorf(211, "Auth JSON Encode Error")
2024-10-15 12:53:06 +08:00
ErrAccountNotFound = Errorf(202, "Account Not Found")
2024-02-11 01:31:01 +08:00
)