Saved numbers
Snapshots live in this browser. A shareable calculator link already restores the same numbers for anyone you send it to. To keep them in a project you control, create a new Supabase project for FinanceLearn (same login as EconLearn is fine; do not paste into the EconLearn database), then follow the steps in the panel.
In a project you control
Send a sign-in link. The project must have Auth on, the SQL pasted, the redirect URL set to this page, and the Auth flow set to implicit so the session arrives in the URL hash.
Keep them in a project you control
Same Supabase login as EconLearn is fine. Do not paste this into the existing EconLearn project. Create a new project named for FinanceLearn, then paste. EconLearn already has Auth users and tables; mixing this file into that database would share accounts with a live site.
- Open supabase.com/dashboard and click New project. Wait until it is healthy.
- Left sidebar: SQL Editor, then New query. Paste this entire file. Click Run. Safe to run more than once.
- Authentication, URL Configuration. Site URL https://www.financelearn.org. Redirect URLs: add https://www.financelearn.org/saved.
- Authentication, Providers, Email: enable.
- The magic link must return access_token in the URL hash (implicit flow). If this page opens with ?code=, set the project to implicit and request a new link.
- On the Vercel project for financelearn.org, not EconLearn, set NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY from this new project's Settings, API. Anon key only, never service_role.