@authsignal/browser
Version:
**[Authsignal](https://www.authsignal.com) provides passwordless step up authentication (Multi-factor Authentication - MFA) that can be placed anywhere within your application. Authsignal also provides a no-code fraud risk rules engine to manage when step
24 lines (23 loc) • 728 B
TypeScript
import { ErrorResponse } from "./api/types/shared";
type CookieOptions = {
name: string;
value: string;
expire: number;
domain: string;
secure: boolean;
};
export declare function setCookie({ name, value, expire, domain, secure }: CookieOptions): void;
export declare function getCookieDomain(): string;
export declare function getCookie(name: string): string | null;
export declare function handleErrorResponse(errorResponse: ErrorResponse): {
error: string;
};
export declare function handleApiResponse<T>(response: ErrorResponse | T): {
error: string;
data?: undefined;
} | {
data: T;
error?: undefined;
};
export declare function handleWebAuthnError(error: unknown): void;
export {};