Member-only story
Supabase Multi-Factor Authentication (MFA) via E-Mail
Overview
- Introduction & Problems
- Prerequisites
- MFA Modal
- E-Mail Template
- How it should look like
Introduction & Problems
In the constantly evolving landscape of cybersecurity, an additional layer of security known as Multi-Factor Authentication (MFA) has become customary in any security-aware applications or system. Supabase, the open-source alternative to Firebase, is known for its highly secure and scalable infrastructure and its simplicity. Yet, numerous developers are puzzled about the absence of an ‘official’ method to integrate MFA via a simple E-mail Code in the Supabase.
The main problem was that I couldn’t find any official way to integrate E-Mail MFA into Supabase, the only MFA they officially support is via Google Authenticator, which I could not use in my current project as it’s a service targeted at people where even downloading an additional app on your mobile phone could be too challenging. If your users can use Google Authenticator I would strongly recommend to use the Supabase MFA with Authenticator App instead!
Fortunately I’ve managed to discover a feasible workaround that enables MFA via E-mail — a solution…