A members area with login and paid access: a Claude + Lovable + Supabase stack
The struggle: You want paying members behind a login but do not know how to do accounts and access safely.
What you end up with: A members area where only logged-in, paying people can see your content, tested by a person before launch.
Define who sees what, build the login and content pages in Lovable on Supabase, add payments in Stripe test mode, and test with accounts that should and should not get in.
Tools: Claude, Lovable, Supabase. Level: Free to start. Time: 1 day.
Use it if
- You sell lessons, files or a community behind a login
- Paid access must not be shareable by link
- You do not know how to keep content private
Skip it if
- Your content is sensitive or regulated
- You want to launch tomorrow with no testing
The method
Write access rules (Claude: Chat)
Describe members, free users and you. Ask for a table of pages with who may open each and what happens when someone loses access.
Prompt to copy:
Create an access table for a members app: roles (visitor, free member, paid member, admin), pages and files, and who can open each. Add what happens at sign-up, a failed payment, a cancellation and a refund. Add edge cases such as sharing a link. Ask me about anything unclear first.
You get: An access table.
Tip: Decide what happens at cancellation before you build.
Plan login and content (Lovable: Plan mode)
In Plan mode paste the access table and ask for a plan with login, member pages and a Supabase database. Keep content private by default.
Prompt to copy:
Plan a members app from this access table: [paste]. Include login, member pages, a Supabase database and private storage for paid files. Everything is private by default and public only where the table says so. Show the tables and who can read each. No payments yet.
You get: A plan with private content.
Tip: Ask for private by default, public only where listed.
Check rules on content tables (Supabase: Dashboard)
In the Supabase dashboard check that tables and storage for member content have row-level security and that paid status cannot be edited by the member.
You get: Rules that match your table.
Tip: Public storage is readable by anyone with the link, so use private buckets for paid files.
Add payments in test mode (Lovable: Connect Stripe form)
Describe what members pay for and say you want your own Stripe account. In the Connect Stripe form paste a restricted or secret test key (starts rk_test_ or sk_test_). A publishable key will not work. Subscriptions need login and match members by sign-in email.
Prompt to copy:
Plan adding Stripe for [what members pay for] in test mode only. Members must log in. Show how paid status is stored and checked, what a cancelled or failed member sees, and that a member cannot edit their own paid status. I will enter keys in the Connect Stripe form, never in chat.
You get: A test purchase that opens access.
Tip: Test cancel and failed payment, not just success. Stripe holds the card details, so your app never stores card numbers.
Write the access test (Claude: Chat)
Ask Claude for a test sheet with accounts in each role, and run it yourself before launch.
Prompt to copy:
Write a test sheet for my members app with a visitor, free member, paid member and a cancelled member. For each, list pages and file links that should open and ones that should not. Include copying a paid file link into a private window. Format: Account, Test, Expected, Result.
You get: A test sheet to run.
Tip: Paste a paid link into a private window as a visitor.
Publish so members can reach it (Lovable: Publish)
Publish with Public visibility and let your own login gate the content. Invite only needs every member to have a Lovable login and stops at 10 people, so it does not fit paying members. Then run your access test on the live link.
You get: A live link where only logged-in paid members open the content.
Tip: Stay on Stripe test mode until the access test passes and a person has checked terms and privacy.
Where this goes wrong
- Authentication and paid access must be tested by a person before launch.
- Use Stripe test mode first and never paste keys into chat.
- Row-level security must be on for every member table before real members sign up.
- Taxes, refunds, terms and privacy for digital sales: have a qualified person check this before you sign, file or send it.
Swap a tool
- Bolt.new instead of Lovable: Bolt has built-in login and a database in the same project.
Sources
- Lovable docs: Stripe
- Lovable docs: Control who can visit your published app
- Supabase docs: Storage access control
- Supabase docs: Row Level Security
More like this
- Fix a broken app without breaking more
- A launch checklist with builder and database checks
- Check who can read your app's data
Updated . Written with AI help and checked by an independent review step, as described in our editorial standards.