How Does Supabase Auth Work?
Auth is a JWT issuer that talks to your database. The token carries the user, and row level security decides what that user can read.
Supabase Auth issues JSON Web Tokens and stores users in a schema inside your own Postgres database. The token carries the user id, and row level security policies use it to scope every query. The Free plan includes 50,000 monthly active users; Pro includes 100,000, then $0.00325 per MAU.
Supabase Auth is a service that authenticates users and issues a JSON Web Token. When a user signs in, Auth verifies the credentials and returns a token. The client sends that token with every request to the database.
In This Guide
How does Supabase Auth work under the hood?
Which sign-in methods does Supabase Auth support?
How is Supabase Auth priced?
How does Supabase Auth connect to row level security?
How do I add MFA and SSO to Supabase Auth?
4 Tips to Get Started
Use the @supabase/ssr package for server-rendered apps. It handles the cookie and token refresh correctly, which hand-rolled code usually does not.
Write RLS policies before you ship, not after. Auth without RLS means every signed-in user can read every row.
Set a short access token lifetime and rely on refresh tokens. It limits the damage of a leaked token.
Turn on MFA for admin accounts. TOTP is built in and costs nothing extra on the standard plan.
Ready to Stop Worrying About Infra?
Knowledge is the first step. Get a free 1-hour diagnostic and see where your infrastructure leaks time, money, and focus.
Sources & References
- Supabase: Auth
- Supabase: Row Level Security
- Supabase: Multi-factor authentication
- Supabase: Enterprise SSO
roqy.io cites authoritative sources including engineering blogs, vendor documentation, industry surveys, and academic research to ensure accuracy.
Related Guides
How Much Does Supabase Cost? Pricing Explained
Supabase is free to start and $25/mo on Pro. The real limits: 500 MB free database, 8 GB on Pro, $0.09/GB egress, and when self-hosting wins.
Supabase vs Firebase: Which Should You Use?
Supabase is Postgres with SQL and RLS for $25/mo. Firebase is Google's NoSQL platform billed per operation. How to choose between them.
Is Supabase Down? How to Check Supabase Status
Check Supabase status at status.supabase.com, see which component is failing, and know what to do during an outage. Includes self-hosted and multi-region fallbacks.
How Much Does Firebase Cost? Pricing Explained
Firebase is free on Spark and pay-as-you-go on Blaze. Firestore gives 50K reads and 20K writes a day free, then bills per operation. What drives the bill.
Ron Cohen — Founder & DevOps Engineer
Content reviewed by the roqy.io team. Our guides are based on publicly available data and cited sources above.
Disclaimer: This content is for informational and educational purposes only. It does not constitute professional advice or a guarantee of specific results. Infrastructure needs vary by team, stack, and stage. Consult a qualified engineer for advice tailored to your situation.
Frequently Asked Questions
How does Supabase Auth work?
Supabase Auth authenticates users and issues a JSON Web Token. The token carries the user id and is sent with every request. Row level security policies read the user id from the token and scope each query to that user's rows.
How much does Supabase Auth cost?
The Free plan includes 50,000 monthly active users. Pro includes 100,000 MAU, then $0.00325 per additional MAU. SSO and advanced MFA are separate add-ons with their own pricing.
Which auth providers does Supabase support?
Email and password, magic link, one-time password, social sign-in with Google, GitHub, Apple, and others, phone sign-in through Twilio, MessageBird, or Vonage, and enterprise SSO with SAML 2.0. Custom OAuth and OIDC providers are also supported.
Does Supabase Auth work with row level security?
Yes, and that is the point. Auth issues the token, and RLS policies use auth.uid() from that token to decide which rows a user can read or write. The two are designed to work together.
Get the DevOps Ecosystem Behind You
One accountable engineer. Full platform behind him. Month-to-month, no lock-in.