Skip to content

A complete authentication solution built with Next.js and Supabase. Features include MFA, password-based login, passwordless login, OAuth, forget password with password recovery and email verification for secure and flexible user authentication.

Notifications You must be signed in to change notification settings

being-devahmad/SupaAuth

Repository files navigation

SupaAuth - Supabase Complete Authentication System

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.


Features

  • 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.

Authentication Methods

  1. Email and Password Login/Signup
  2. OAuth Providers (e.g., Google, GitHub)
  3. Magic Links (Passwordless Authentication)
  4. One-Time Passwords (OTP)
  5. Multi-Factor Authentication (MFA)

Screenshots

Home Page

image

Dashboard Settings Page

image

MFA Setup Page

image


How to Use

  1. Clone this repository:

    git clone https://github.com/your-username/supaauth.git
    cd supaauth
  2. Install the dependencies:

    npm install
  3. Set up your Supabase project and add the environment variables:

    • NEXT_PUBLIC_SUPABASE_URL
    • NEXT_PUBLIC_SUPABASE_ANON_KEY
  4. Run the project:

    npm run dev
  5. Access the app in your browser at http://localhost:3000.


Tech Stack

  • Frontend: Next.js
  • Backend: Supabase
  • Authentication: Supabase Auth API

Contributing

Feel free to submit issues or pull requests for improvements and fixes.


License

This project is licensed under the MIT License.

About

A complete authentication solution built with Next.js and Supabase. Features include MFA, password-based login, passwordless login, OAuth, forget password with password recovery and email verification for secure and flexible user authentication.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published