pagamio-frontend-commons-lib
Version:
Pagamio library for Frontend reusable components like the form engine and table container
23 lines (22 loc) • 557 B
TypeScript
/**
* Different types of errors that can occur during authentication
*/
export declare enum AuthErrorType {
NETWORK = "NETWORK",
AUTHENTICATION = "AUTHENTICATION",
SERVER = "SERVER",
VALIDATION = "VALIDATION",
UNKNOWN = "UNKNOWN"
}
/**
* Structured error information
*/
export interface AuthErrorInfo {
type: AuthErrorType;
message: string;
originalError?: Error;
}
/**
* Detects the type of error and returns appropriate user-friendly message
*/
export declare function detectErrorType(error: unknown): AuthErrorInfo;