@authxyz/core
Version:
Authxyz core package for authentication implementations and providers.
13 lines (12 loc) • 309 B
TypeScript
export type ErrorHandler = (error: Error) => {
message: string;
status: number;
};
export declare function errorFormatter(err: Error, handlers: ErrorHandler[]): {
message: string;
status: number;
};
export declare function jwtError(error: Error): {
message: string;
status: number;
};