How to call `.enroll` when "Verify Enabled"?
Overall aim
Prevent users from adding/removing totp mfa/2fa without confirming another 2fa method (e.g., their email address, or phone number) to increase the app's security. This is a common practice across many apps.
What Supabase supports
When "Enabled", the UI can:
How can I have the "Verify Enabled" behaviour, and call
Environment:
Prevent users from adding/removing totp mfa/2fa without confirming another 2fa method (e.g., their email address, or phone number) to increase the app's security. This is a common practice across many apps.
What Supabase supports
When "Enabled", the UI can:
.enroll.challenge.verify
.enroll.challenge.verify
supabaseAdminClient.auth.mfa.enroll:.enrollthrows the same error acting like it's a non-admin linksupabaseAdminClient.auth.admin.mfa.enroll: doesn't exist
How can I have the "Verify Enabled" behaviour, and call
.enroll (e.g., with an admin client) so I can create a custom enrollment flow in the server (e.g., edge function)? Environment:
"@supabase/supabase-js": "^2.80.0",(latest as of now)
