Skip to content
PromptToProd

How to add auth and payments to a vibe-coded app

Checked against official pricing pages and docs on Oct 26, 2026. Plans change, so confirm on each official site.

Sign-in and checkout are the two features that turn a demo into a business, and the two that coding agents most often wire up half-way. Pick one auth option and one payment option, connect them through a verified webhook, and test the whole loop before launch.

Step 1: pick auth

Already on Supabase? Use Supabase Auth: 50,000 MAU free and 100,000 included in Pro, with users in the same Postgres your Row Level Security policies use. Want drop-in UI for React or Next.js? Clerk is free for 50,000 monthly retained users per app, then Pro is $25/mo ($20 annual) plus $0.02 per user over 50K. Want users in your own database with no per-user fee? Better Auth is an MIT library that is free to self-host.

Step 2: pick payments

Stripe has the lowest base fee (2.9% + 30¢ per successful US card charge, no monthly fee) and the most control, but you handle sales tax. A merchant of record collects and remits tax for you for a higher cut: Polar Starter is 5% + 50¢ with no monthly fee, Stripe Managed Payments adds 3.5% on top of standard Stripe fees, and Paddle is 5% + 50¢.

Step 3: connect them with a webhook

Use hosted checkout (Stripe Checkout or your provider’s equivalent) and pass your user’s ID when you create the session. When the provider sends a “checkout completed” or “subscription updated” webhook, verify its signature on the server, then store the plan on the user’s row. Your app checks that row, never a URL parameter, to decide who has paid.

Step 4: test the full loop

Use test mode: sign up, pay with a test card, confirm the webhook updates the user, cancel, and confirm access ends. Then do a refund. Agents often skip the cancel and failed-payment paths.

Prompt to give your coding agent

“Add sign-in with [provider] and a $X/mo subscription with [payment provider] hosted checkout. Store the subscription status on the user record only from a verified webhook. Keep all secret keys server-side. Add a test for the webhook handler.” Then review the diff against our security checklist.

Tools in this guide

ToolScoreFree tierPricing
Supabase Auth85Yes: 50,000 monthly active users on the Supabase Free plan (free projects pause after 1 week of inactivity, 2 active projects max)Included in Supabase plans: Free $0 (50,000 MAU); Pro from $25/mo (100,000 MAU, then $0.00325 per MAU); Team from $599/mo; Enterprise custom. Advanced phone MFA, SAML SSO and leaked-password protection are paid features
Clerk87Yes: 50,000 monthly retained users per appPro $25/mo ($20 annual), then $0.02/MRU over 50K
Better Auth86Yes: MIT library free to self-host; Infrastructure Starter $0Library free; optional Infrastructure Pro $20/mo
Stripe85No monthly fee (pay per transaction)2.9% + 30¢ per successful US card charge; no monthly fee
Polar82Yes: no monthly fee on StarterStarter: 5% + 50¢ per transaction; Pro $20/mo at 3.8% + 40¢; Growth $100/mo at 3.6% + 35¢; Scale $400/mo at 3.4% + 30¢
Stripe Managed Payments78No monthly fee (pay per transaction)3.5% per successful Managed Payments transaction on top of standard Stripe processing fees (2.9% + 30¢ for US cards); no monthly fee
Paddle72No monthly fee5% + 50¢ per transaction

Scores come from our methodology. Money never affects them.

FAQ

What is the easiest auth for a vibe-coded app?
If your app already uses Supabase, Supabase Auth is the simplest. For drop-in sign-in UI on React or Next.js, Clerk is free for 50,000 monthly retained users per app.
Stripe or a merchant of record?
Stripe has the lowest fees (2.9% + 30¢ on US cards) but you handle sales tax. A merchant of record like Polar (5% + 50¢ on Starter) or Paddle handles tax for a higher cut.
How do I know a user has paid?
Store the plan on the user’s record from a verified payment webhook, and check that record in your app. Don’t trust a client-side success redirect.

Sources

Related

PromptToProd Weekly

New tools, ranking changes and pricing updates. One email a week, unsubscribe anytime.

Prefer X? Follow @PromptToProdApp