© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•13mo ago•
3 replies
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?
Multi-Factor Authentication | Supabase Docs
Add an additional layer of security to your apps with Supabase Auth multi-factor authentication.
Multi-Factor Authentication | Supabase Docs
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

2FA
SupabaseSSupabase / help-and-questions
4mo ago
2FA / OTP Support
SupabaseSSupabase / help-and-questions
2mo ago
Got locked out due to 2FA
SupabaseSSupabase / help-and-questions
8mo ago
Any devs able to help with 2fa ?
SupabaseSSupabase / help-and-questions
5mo ago