Using the pre-built UI you can easily allow users to remove authentication methods which they have previously added.

Removing authentication methods in the pre-built UI

Tracking actions to remove authenticators

Passing redirectToSettings: true in the track request will mean that after completing a challenge with an existing authentication method, users will be redirected to a settings menu where they can remove authentication methods.

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

const response = await authsignal.track(request);

const url = response.url;

When using the pre-built UI, users will always have to complete a challenge with one of their existing authentication methods before they can remove an authentication method.

Admins

Admins can also remove authenticators for a user by looking them up in the Authsignal Portal.

Next steps