UNPKG

@authsignal/browser

Version:

<img width="1070" alt="Authsignal" src="https://raw.githubusercontent.com/authsignal/authsignal-browser/main/.github/images/authsignal.png">

42 lines (41 loc) 1.38 kB
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"; import { QrCode } from "./qr-code"; import { Push } from "./push"; import { Whatsapp } from "./whatsapp"; export declare class Authsignal { anonymousId: string; profilingId: string; cookieDomain: string; anonymousIdCookieName: string; enableLogging: boolean; passkey: Passkey; totp: Totp; email: Email; emailML: EmailMagicLink; sms: Sms; securityKey: SecurityKey; qrCode: QrCode; push: Push; whatsapp: Whatsapp; constructor({ cookieDomain, cookieName, baseUrl, tenantId, onTokenExpired, enableLogging, }: 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; }