Documentation Index
Fetch the complete documentation index at: https://mintlify.com/eggarcia98/auth-backend/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites: Node.js 18+, a Supabase account, and pnpm installed (
npm install -g pnpm).Clone the repository and install dependencies
Clone the project and install its dependencies using pnpm.
Configure environment variables
Copy the example environment file and open it in your editor.Your
.env file should look like this:.env
Create a Supabase project
- Go to supabase.com and sign in.
- Click New project and fill in the project details.
- Once the project is ready, navigate to Project Settings → API.
- Copy the following values into your
.envfile:- Project URL →
SUPABASE_URL - anon public key →
SUPABASE_ANON_KEY - service_role key →
SUPABASE_SERVICE_ROLE_KEY
- Project URL →
Start the development server
Run the development server with hot reload.You should see output similar to:The server is now running at
http://localhost:8080.Next steps
Configuration
Full reference for all environment variables, CORS, and cookie settings.
Email & password auth
Learn about the full login and logout flow.
OTP login
Set up passwordless email authentication.
OAuth (Google & Apple)
Add social login to your application.