@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
35 lines (34 loc) • 1.17 kB
TypeScript
import { AuthsignalOptions, LaunchOptions, TokenPayload } from "./types";
import { Passkey } from "./passkey";
import { Totp } from "./totp";
import { Email } from "./email";
import { Sms } from "./sms";
import { EmailMagicLink } from "./email-magic-link";
import { SecurityKey } from "./security-key";
export declare class Authsignal {
anonymousId: string;
profilingId: string;
cookieDomain: string;
anonymousIdCookieName: string;
passkey: Passkey;
totp: Totp;
email: Email;
emailML: EmailMagicLink;
sms: Sms;
securityKey: SecurityKey;
constructor({ cookieDomain, cookieName, baseUrl, tenantId, onTokenExpired, }: AuthsignalOptions);
setToken(token: string): void;
launch(url: string, options?: {
mode?: "redirect";
} & LaunchOptions): undefined;
launch(url: string, options?: {
mode: "popup";
} & LaunchOptions): Promise<TokenPayload>;
launch(url: string, options?: {
mode: "window";
} & LaunchOptions): Promise<TokenPayload>;
initAdvancedProfiling(baseUrl?: string): void;
private launchWithRedirect;
private launchWithPopup;
private launchWithWindow;
}