JavaScript: Unenroll a factor

Unenroll removes a MFA factor. A user has to have an aal2 authenticator level in order to unenroll a verified factor.

Parameters

Examples

Unenroll a factor

const \{ data, error \} = await supabase.auth.mfa.unenroll(\{
  factorId: '34e770dd-9ff9-416c-87fa-43b31d7ef225',
\})