Skip to main content
The Authsignal Web SDK can be used to:
  • Launch the pre-built UI to let users set up MFA and complete challenges
  • Sign up and sign in users using passkeys
  • Build custom UIs for authenticating with email OTP, SMS OTP, WhatsApp OTP, or authenticator app

GitHub repository

Installation

npm install @authsignal/browser
This will add our module to your package.json.

Initialization

Initialize the client with your tenant ID and the API URL for your region.
import { Authsignal } from "@authsignal/browser";

const authsignal = new Authsignal({
  tenantId: "YOUR_TENANT_ID",
  baseUrl: "YOUR_REGION_BASE_URL",
});
You can find your tenantId in the Authsignal Portal. You must specify the correct baseUrl for your tenant’s region.
RegionAPI URL
US (Oregon)https://api.authsignal.com/v1
AU (Sydney)https://au.api.authsignal.com/v1
EU (Dublin)https://eu.api.authsignal.com/v1

Usage

Repositories