Versions in this module Expand all Collapse all v1 v1.2.17 Nov 30, 2021 Changes in this version + var ErrAuthenticationFailed = New(Code(100024), "authentication failed", "authentication failed") + var ErrNotFoundDB = New(Code(100022), "not found db", "not found db") + var ErrNotFoundProvider = New(Code(100023), "not found auth provider", "not found auth provider") + func Code(u uint32) uint32 + func New(code uint32, msg, status string) error + func NewWithError(code uint32, e error, status string) error + type Error interface + Code func() uint32 + Error func() string + Status func() string v1.2.16 Oct 29, 2021 Changes in this version + var ErrAccessDenied = errors.New("access_denied") + var ErrAccountOrPasswordError = errors.New("account doesn't exist or password error") + var ErrCodeNotFound = errors.New("code not found") + var ErrDomainNotFound = errors.New("domain not found") + var ErrExpiredAccessToken = errors.New("expired access token") + var ErrExpiredRefreshToken = errors.New("expired refresh token") + var ErrInvalidAccessToken = errors.New("invalid access token") + var ErrInvalidAuthorizeCode = errors.New("invalid authorize code") + var ErrInvalidClient = errors.New("invalid_client") + var ErrInvalidDomain = errors.New("invalid_domain") + var ErrInvalidEncryData = errors.New("invalid encry data") + var ErrInvalidGrant = errors.New("invalid_grant") + var ErrInvalidRedirectURI = errors.New("invalid redirect uri") + var ErrInvalidRefreshToken = errors.New("invalid refresh token") + var ErrInvalidRequest = errors.New("invalid_request") + var ErrInvalidScope = errors.New("invalid_scope") + var ErrInvalidUUID = errors.New("invalid not found") + var ErrNotFound = errors.New("not found") + var ErrNotFoundState = errors.New("not found state") + var ErrRecordExisted = errors.New("the record already exists") + var ErrRedirectUriNotFound = errors.New("redirect_uri not found") + var ErrServerError = errors.New("server_error") + var ErrTemporarilyUnavailable = errors.New("temporarily_unavailable") + var ErrUUIDNotFound = errors.New("uuid not found") + var ErrUnauthorizedClient = errors.New("unauthorized_client") + var ErrUnsupportedGrantType = errors.New("unsupported_grant_type") + var ErrUnsupportedResponseType = errors.New("unsupported_response_type") + func Wrap(e interface{}, skip int) *errors.Error