Sign-in
Sign-in lets people make an account and come back to their own things. Supabase, Firebase and Clerk can handle sign-in, so your product does not need to store passwords itself.
Do I need sign-in for my product?
You need it when people return to private things, like saved lists, profiles or paid access. One-off purchases can use guest checkout without an account in your product.
- If every visitor sees the same thing, like a portfolio, a menu or a blog
- Skip it. Nobody needs an account to read a page.
Words: Checkout
What’s the fastest way to add sign-in?
Use a sign-in service instead of building it yourself, and follow the steps on its tool page. Your AI tool writes the code, and you click through the service’s dashboard and paste in the API keys.
- If you’ve built sign-in before and only want the setup
- Each tool page lists what you click and what you paste. Skip to the step you need.
In a guide
Words: AI coding tool, API key
Supabase, Firebase or Clerk: which sign-in fits my product?
It comes down to two things: whether you want a database from the same service, and whether you want ready-made sign-in screens.
- If you’re an experienced coder looking at Better Auth or Auth.js
- They are code libraries, not services. They keep accounts in your own database, so you run and secure that part yourself.
| Question | Supabase | Firebase | Clerk |
|---|---|---|---|
| What you get | Sign-in and a Postgres database in one project. | Sign-in and the Cloud Firestore database, from Google. | Sign-in only. Your data goes in a separate database, like Supabase. New Clerk apps can’t connect to Firebase. |
| Ready-made sign-in screens | No. Your AI tool builds the sign-in pages inside your product. | Optional. FirebaseUI components add ready-made sign-in screens for the web. | Yes. Ready-made sign-up, sign-in and profile screens. |
| Google sign-in setup | You make your own Google keys in Google Cloud from the start. | Turn Google on in the Firebase console. A Firebase project is already a Google Cloud project. | Shared Google keys while you build. Your own Google keys and a domain you own before you put it online. |
| Sign-in emails | The built-in email only reaches members of your Supabase team, at most 2 an hour. Real sign-ups need your own email service. | Firebase sends them. The free plan allows 1,000 address checks, 150 password resets and 5 sign-in links a day. | Clerk sends them. Development sends up to 100 emails a month. |
Swipe the table sideways to see every column.
Should I add sign-in now or later?
Add it when the first must-have feature needs to know who someone is. Until then, get the main feature working without accounts.
- If your first screen shows each person their own things
- Add sign-in now, before you build that screen.
- If you also need a database where each person sees only their own data
- Add sign-in first. Then each saved item can belong to one person.
- If your first version is the same for everyone
- Add it later. Put your product online first.
Is sign-in free?
Yes, to start. Each free plan covers 50,000 people a month.
- If you want sign-in codes sent by text message
- Text messages cost extra. Firebase bills them on its Blaze plan, and Clerk’s free Hobby plan does not include them.
| Question | Supabase | Firebase | Clerk |
|---|---|---|---|
| Free plan | 50,000 monthly active users, on up to 2 active projects. Free projects pause after a week with no activity. | 50,000 monthly active users on the Spark plan. No card needed. | 50,000 monthly retained users per app on Hobby, people who come back at least a day after signing up. Up to 3 social logins, like Google. |
| When you outgrow free | Pro starts at $25 a month, with 100,000 monthly active users, then $0.00325 each. | Blaze is pay as you go. Sign-in stays free up to 50,000 monthly active users, then Google Cloud prices apply. | Pro is $25 a month, or $20 a month billed yearly. 50,000 retained users are included, then $0.02 each. |
Swipe the table sideways to see every column.
Words: Monthly active users, Pay as you go
What changes about sign-in when real people start signing up?
The test setup that worked on your computer isn’t enough. Sign-in needs your public address, your own Google keys and, on Supabase, your own email service.
- If you put your product online
- Add your public address everywhere you added localhost. In Supabase that’s URL Configuration, in Firebase it’s Authorized domains, and in Clerk it’s a production instance.
- If you use Google sign-in
- Add your public address in Google, remove localhost, and switch your Google app to In production under Audience.
Words: Production, Localhost
How does sign-in work underneath?
The sign-in service checks who someone is and keeps their account. Your product then gets a session, a signed note that says who is signed in, and sends it with each request.
- If someone clicks “Continue with Google”
- Google checks the person’s Google sign-in and returns them to an allowed callback address. Your product uses Google’s reply instead of asking for their Google password.
- If someone signs in with an email code
- The service emails a short code. Typing it in proves the address is theirs, so nobody has a password to forget.
- If a page should be private
- Hiding a link is not enough. Ask your AI tool to check the signed-in person on the server or in your database access rules before it returns private data.
Questions people ask
Updated Sources: Clerk: default and custom email delivery, Firebase: optional ready-made web sign-in screens, Stripe: payments with shareable links, Clerk: Firebase integration for existing applications, Supabase pricing, Supabase: Login with Google, Supabase: Send emails with custom SMTP, Supabase: Redirect URLs, Firebase pricing, Firebase: Authentication limits, Firebase: Authenticate with Google, Firebase: Understand Firebase projects, Clerk pricing, Clerk: Add Google as a social connection, Clerk: Development and production instances, Google: Manage app audience, npm: firebase downloads, npm: @clerk/nextjs downloads, npm: @supabase/auth-js downloads, npm: better-auth downloads, npm: next-auth downloads.