SupaAuth is a comprehensive authentication system built using Supabase and Next.js. This system offers secure and flexible authentication methods, providing support for modern authentication standards. It includes login and signup mechanisms with various options like email and password, OAuth, magic links, OTP, and multi-factor authentication (MFA) to enhance security.
- Email and Password Authentication: Users can create an account and login with their email and password.
- OAuth Providers: Integrated with third-party OAuth providers (e.g., Google, GitHub) to allow users to sign in using their existing accounts.
- Magic Links: Passwordless login via magic links sent to the user's email.
- One-Time Passwords (OTP): Users can authenticate using one-time passwords sent to their email or phone.
- Multi-Factor Authentication (MFA): Additional layer of security with MFA, enabling two-factor authentication to secure user accounts.
- Email and Password Login/Signup
- OAuth Providers (e.g., Google, GitHub)
- Magic Links (Passwordless Authentication)
- One-Time Passwords (OTP)
- Multi-Factor Authentication (MFA)
-
Clone this repository:
git clone https://github.com/your-username/supaauth.git cd supaauth
-
Install the dependencies:
npm install
-
Set up your Supabase project and add the environment variables:
NEXT_PUBLIC_SUPABASE_URL
NEXT_PUBLIC_SUPABASE_ANON_KEY
-
Run the project:
npm run dev
-
Access the app in your browser at
http://localhost:3000
.
- Frontend: Next.js
- Backend: Supabase
- Authentication: Supabase Auth API
Feel free to submit issues or pull requests for improvements and fixes.
This project is licensed under the MIT License.