MFA on login

With Authsignal you can easily add MFA to your existing login flow by tracking an action after validating the user’s primary credentials (typically username and password).

The diagram below demonstrates the integration flow for MFA on login using the pre-built UI.

You can also implement a similar flow using Client SDKs.

Track action on login

Call track after validating the user’s primary credentials to obtain a challenge URL.

const request = {
  userId: "dc58c6dc-a1fd-4a4f-8e2f-846636dd4833",
  action: "signIn",
  attributes: {
    redirectUrl: "https://yourapp.com/callback",
  },
};

const response = await authsignal.track(request);

const url = response.url;

Then follow the standard integration steps to launch the challenge URL and validate the result.

Step-up authentication

Alternatively, you can use Authsignal to add step-up authentication to your application by tracking an action at a specific point in your user journey - for example, when a user is performing a sensitive action like initiating a payment.

The diagram below demonstrates the integration flow for step-up authentication using the pre-built UI.

You can also implement a similar flow using Client SDKs.

Next steps