Powership / Modules / Accounts System. / AccountError
Accounts System..AccountError
-
Error
↳
AccountError
• new AccountError(code
, details?
)
Name | Type | Default value |
---|---|---|
code |
"Unauthorized" | "InvalidRequest" | "InvalidLocationInfoUserAgent" | "InvalidLocationInfoIP" | "InvalidEncodedSession" | "UserNotFound" | "InvalidSession" | "InvalidToken" | "TokenVerificationFailed" | "SessionNotFound" | "InvalidTokens" | "ImpersonatedUserNotFound" | "ServiceNotFound" | "UserDeactivated" | "AuthenticationFailed" |
undefined |
details |
any |
'ACCOUNT_ERROR' |
Error.constructor
packages/accounts/src/utils/AccountError.ts:9
• __isAccountError: boolean
= true
packages/accounts/src/utils/AccountError.ts:4
• __kind: string
= 'AccountError'
packages/accounts/src/utils/AccountError.ts:5
• code: "Unauthorized"
| "InvalidRequest"
| "InvalidLocationInfoUserAgent"
| "InvalidLocationInfoIP"
| "InvalidEncodedSession"
| "UserNotFound"
| "InvalidSession"
| "InvalidToken"
| "TokenVerificationFailed"
| "SessionNotFound"
| "InvalidTokens"
| "ImpersonatedUserNotFound"
| "ServiceNotFound"
| "UserDeactivated"
| "AuthenticationFailed"
packages/accounts/src/utils/AccountError.ts:7
▸ Static
is(input
): input is AccountError
Name | Type |
---|---|
input |
unknown |
input is AccountError