Skip to main content

Change Preferred 2FA Method

POST 

/api/auth/2fa/preferred-method

Change the preferred 2FA method.

You can learn more about 2FA methods here.

Requirements

  • The user can authenticate using password. 2FA will not work with OAuth2. The OAuth2 provider will validate the second factor if the user enabled it for the provider.
  • At least one of email or TOTP as 2FA methods should be enabled.

Tokens

  • A valid AccessToken is required.
  • A valid StepUpToken is required. This token should match user and session contained in the AccessToken.

Request

Responses

Updated user information.