mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
## Problem We currently have 2 libraries for schema validation: `yup` that was used with `formik` and `zod` which is now the preferred one. ## Solution Migrate the MFA settings form to use `zod`. No visual changes. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * MFA settings forms now use stronger, consistent schema validation with numeric input coercion and improved typing for more reliable form behavior. * Simplified form reset/synchronization for more predictable state updates. * **Bug Fixes** * MFA update requests now send only intended fields. * Fixed Enhanced MFA Security “Save changes” button to show the correct loading state. <!-- end of auto-generated comment: release notes by coderabbit.ai -->