engine/exception/auth.go

15 lines
613 B
Go
Raw Permalink Normal View History

2024-02-11 01:31:01 +08:00
package exception
// jwt custom error code ,begin:200
var (
ErrAuthPasswd = ErrorJson(201, "Password Error")
ErrAuthNotFound = ErrorJson(202, "Auth Token Not Found")
ErrAuthParseFail = ErrorJson(203, "Auth Parse Fail")
ErrAuthId = ErrorJson(204, "Auth Id Not Passed")
ErrAuthIdentity = ErrorJson(205, "Auth Identity Not Passed")
ErrAuthTokenChanged = ErrorJson(206, "Auth Token Changed")
ErrAuthIdType = ErrorJson(207, "Auth Id Type Error")
ErrAuthExpire = ErrorJson(208, "Auth Token Expire")
ErrAuthClient = ErrorJson(208, "Auth Token Client Not Passed")
)