Home / Function/ MfaStatusToState() — supabase Function Reference

MfaStatusToState() — supabase Function Reference

Architecture documentation for the MfaStatusToState() function in MfaAuthSettingsForm.tsx from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  5200fde5_4aaf_8c48_7967_607d3399fda0["MfaStatusToState()"]
  9ed42241_77c7_3fb0_6ee6_ef7bc7a335a3["MfaAuthSettingsForm()"]
  9ed42241_77c7_3fb0_6ee6_ef7bc7a335a3 -->|calls| 5200fde5_4aaf_8c48_7967_607d3399fda0
  style 5200fde5_4aaf_8c48_7967_607d3399fda0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/studio/components/interfaces/Auth/MfaAuthSettingsForm/MfaAuthSettingsForm.tsx lines 66–72

const MfaStatusToState = (status: (typeof MFAFactorSelectionOptions)[number]['value']) => {
  return status === 'Enabled'
    ? { verifyEnabled: true, enrollEnabled: true }
    : status === 'Verify Enabled'
      ? { verifyEnabled: true, enrollEnabled: false }
      : { verifyEnabled: false, enrollEnabled: false }
}

Subdomains

Frequently Asked Questions

What does MfaStatusToState() do?
MfaStatusToState() is a function in the supabase codebase.
What calls MfaStatusToState()?
MfaStatusToState() is called by 1 function(s): MfaAuthSettingsForm.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free