SupabaseS
Supabase11mo ago
fast

2FA to open a popup?

Hey, I am currently building a web app using Next.js (Page Router). I need to prompt 2FA via phone number whenever a user tries to open a specific popup where they can edit critical settings within the app. So, I need to trigger a new 2FA request every time the user attempts to open the popup and, for actual security, verify in the backend whether the user has successfully passed the 2FA.

I checked this article but it seems like this approach is only checking the additional factor on login https://supabase.com/docs/guides/auth/auth-mfa

How can I achieve this using Supabase auth + Next.js API routes for my backend?
Add an additional layer of security to your apps with Supabase Auth multi-factor authentication.
Was this page helpful?