Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 684 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 684 Bytes

React Supabase Auth with Protected Routes

Getting Started

  1. Clone the repository
  2. Install dependencies: npm install
  3. Create .env using the .env.example as a template
VITE_SUPABASE_URL=
VITE_SUPABASE_ANON_KEY=
  1. Run the app: npm run dev

What you need to know

  • /router/index.tsx is where you declare your routes
  • /context/AllContext.tsx is where you can find the useAllContext hook
    • This hook gives you access to the session object from Supabase globally
  • /Providers.tsx is where you can add more providers or wrappers