UNPKG

@jealous-robot-dev/shared-types-errors

Version:

21 lines (20 loc) 586 B
import { AuthProviders } from '@jealous-robot-dev/shared-types-app'; export declare enum AuthProvidersErrors { FAILURE = "failure", NO_EMAIL = "no email", NO_TOKEN = "no token", NO_CODE = "no code", NOT_FOUND = "not found" } export declare enum UserInputErrorReason { NOT_FOUND = "not found", INVALID = "invalid", MALFORMED = "malformed", IN_USE = "in use", UNVERIFIED = "unverified" } export interface ErrorStatement { reason: string | UserInputErrorReason | AuthProvidersErrors; field?: string; provider?: string | AuthProviders; }