Skip to content

A minimal React-based authentication setup using Supabase and React Context. It handles email/password sign-up, login, logout, and session management in a clean and reusable structure.

Notifications You must be signed in to change notification settings

adityadomle/Supabase-Authentication

Repository files navigation

Supabase Email Auth Context

A lightweight and reusable authentication context built with React and Supabase. This module abstracts the Supabase email/password auth flow using React Context, allowing developers to manage authentication state and user sessions efficiently throughout a React application.

Project Overview

This project provides a clean implementation of:

  • Email/password sign-up and sign-in
  • Authentication state management using React Context
  • Automatic session handling with Supabase
  • Functions for login, logout, and sign-up actions

⚠️ Note: Deployment is currently disabled.
To explore this project, please clone the repository and run it locally on your machine.

Setup Instructions

  1. Clone the repository.
  2. Install dependencies using npm install or yarn.
  3. Create a .env file and add your Supabase credentials:

About

A minimal React-based authentication setup using Supabase and React Context. It handles email/password sign-up, login, logout, and session management in a clean and reusable structure.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published