Skip to content

Add login and signup

Let people sign up and log in securely. The boring auth stuff, handled.

  1. 1
    Supabase

    In your Supabase project, go to Authentication > Providers and enable Email provider (already enabled by default). Install @supabase/supabase-js and initialize the client with your project URL and anon key. Use supabase.auth.signUp() and supabase.auth.signInWithPassword() for registration and login.

    Open Supabase
  2. 2
    Supabase

    Enable social login providers like Google or GitHub under Authentication > Providers. For Google, create OAuth credentials in Google Cloud Console and add them to Supabase. Call supabase.auth.signInWithOAuth({ provider: "google" }) to trigger the OAuth flow.

    Open Supabase
  3. 3
    Supabase

    Use supabase.auth.onAuthStateChange() to listen for login and logout events. Store the session in React state or context. Create a ProtectedRoute component that checks for an active session and redirects to login if not authenticated. Use supabase.auth.getUser() to fetch the current user profile.

    Open Supabase

Estimated Monthly Cost

Verified Apr 2026
Resend

50,000 emails/mo included, $0.40 per additional 1K

$20/mo

Pro

1 tool priced
Est. total$20/mo

Estimates based on publicly listed pricing. Actual costs may vary — always verify on each tool's pricing page.

Frequently asked questions

Costs depend on your scale. Most tools in this stack offer a free tier to start. Open the cost calculator on this page to estimate monthly cost based on your users and revenue.

This stack uses 3 tools: Supabase Auth, Resend, Zod. Each tool is picked to work well with the others and to cover a specific part of the workflow.

Yes. The stack is a recommended starting point. You can replace any tool with an alternative you already use. Check the setup guide first to confirm the integration points you'll need to rebuild.

Most makers finish the 3-step setup in under an hour. Creating accounts and connecting the first integration takes the most time.

Have a better stack?

Share your favorite tool combination and help other builders.

Suggest a stack