Skip to content

bloidev/auth-supabase

Repository files navigation

Auth Supabase

This is a simple authentication system using Supabase and Astro.

  • Register
  • Login
  • Logout
  • Dashboard
  • Social Login (GitHub, Google)
  • Email Login

Setup

  1. Create a Supabase project
  2. Enable the OAuth providers in Supabase Auth
  3. Add the Supabase URL and anon key to the .env file
  4. Run the development server
npm install
npm run dev

Environment Variables

SUPABASE_URL=https://your-project.supabase.co
SUPABASE_ANON_KEY=your-anon-key

alt text

Project Structure

/src
├── components/
│   ├── AuthForm.tsx
│   ├── LoginForm.tsx
│   ├── RegisterForm.tsx
│   ├── ui/
│   │   ├── button.tsx
│   │   ├── card.tsx
│   │   ├── input.tsx
│   │   └── ...
│   └── layouts/
│       └── Layout.astro
├── lib/
│   └── supabase.ts
├── pages/
│   ├── index.astro
│   ├── dashboard.astro
│   ├── signin.astro
│   └── register.astro
├── api/
│   └── auth/
│       ├── callback.ts
│       ├── signin.ts
│       └── logout.ts
└── styles/
    └── globals.css

About

Probando auth-supabase con Astro

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors