{"id":22245837,"url":"https://github.com/mmvergara/react-supabase-auth-template","last_synced_at":"2025-07-28T02:33:14.516Z","repository":{"id":244924666,"uuid":"816711239","full_name":"mmvergara/react-supabase-auth-template","owner":"mmvergara","description":"React Supabase Auth template with Protected Routes","archived":false,"fork":false,"pushed_at":"2024-12-02T12:35:27.000Z","size":180,"stargazers_count":19,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-02T13:38:25.269Z","etag":null,"topics":["authentication","boilerplate","boilerplate-template","react","react-router-dom","supabase","template"],"latest_commit_sha":null,"homepage":"https://react-supabase-auth-template.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mmvergara.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.MD","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-18T09:02:20.000Z","updated_at":"2024-12-02T12:35:32.000Z","dependencies_parsed_at":"2024-09-08T04:26:49.455Z","dependency_job_id":"e50f21b9-f717-4948-ab0d-543cb615136f","html_url":"https://github.com/mmvergara/react-supabase-auth-template","commit_stats":null,"previous_names":["mmvergara/react-supabase-auth-template"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmvergara%2Freact-supabase-auth-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmvergara%2Freact-supabase-auth-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmvergara%2Freact-supabase-auth-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmvergara%2Freact-supabase-auth-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mmvergara","download_url":"https://codeload.github.com/mmvergara/react-supabase-auth-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227857885,"owners_count":17830289,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","boilerplate","boilerplate-template","react","react-router-dom","supabase","template"],"created_at":"2024-12-03T05:19:00.333Z","updated_at":"2025-07-28T02:33:14.502Z","avatar_url":"https://github.com/mmvergara.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003ch1 align=\"center\"\u003eReact Supabase Auth with Protected Routes\u003c/h1\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"remove_me.png\" width=\"450\"\u003e\n\u003c/p\u003e\n\n[**`🌐 App Demo`**](https://react-supabase-auth-template.vercel.app/)\n\n## Features\n\n- 🚀 Protected Routes\n- 🚀 Supabase Session Object in Global Context via `useSession`\n- 🚀 User Authentication\n- 🚀 Routing and Route Guards\n\nIt's also blazingly fast 🔥 No really, [try it out for yourself.](https://react-supabase-auth-template.vercel.app/)\n\n[We also have a similar template for FIREBASE 🔥](https://github.com/mmvergara/react-firebase-auth-template)\n## Getting Started\n\n1. Clone the repository\n2. Install dependencies: `npm install`\n3. Create `.env` using the `.env.example` as a template\n```\nVITE_SUPABASE_URL=\nVITE_SUPABASE_ANON_KEY=\n```\n4. Run the app: `npm run dev`\n\n## What you need to know\n\n- `/router/index.tsx` is where you declare your routes\n- `/context/SessionContext.tsx` is where you can find the `useSession` hook\n  - This hook gives you access to the `session` object from Supabase globally\n- `/Providers.tsx` is where you can add more `providers` or `wrappers`\n\n## Other Supabase Templates\n\n- [React ShadCN Supabase Auth Template 🌟](https://github.com/mmvergara/react-supabase-shadcn-auth-template)\n- [NextJs ShadCN Supabase Auth Template 🌟](https://github.com/mmvergara/nextjs-shadcn-supabase-auth-starter)\n\n## More Starter Templates\n\n- [NextJs MongoDB Prisma Auth Template 🌟](https://github.com/mmvergara/nextjs-mongodb-prisma-auth-template)\n- [NextJs Discord Bot Template 🌟](https://github.com/mmvergara/nextjs-discord-bot-boilerplate)\n- [React Firebase🔥 Auth Template 🌟](https://github.com/mmvergara/react-firebase-auth-template)\n- [Golang Postgres Auth Template](https://github.com/mmvergara/golang-postgresql-auth-template)\n- [Vue Golang PostgresSql Auth Template](https://github.com/mmvergara/vue-golang-postgresql-auth-starter-template)\n- [Vue Supabase Auth Template](https://github.com/mmvergara/vue-supabase-auth-starter-template)\n- [Remix Drizzle Auth Template](https://github.com/mmvergara/remix-drizzle-auth-template)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmvergara%2Freact-supabase-auth-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmvergara%2Freact-supabase-auth-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmvergara%2Freact-supabase-auth-template/lists"}