Complete Supabase integration for Memorall, providing optional authentication and cloud sync capabilities.
- Quick Start - Get up and running in 5 minutes
- Setup Guide - Detailed configuration and setup instructions
- Implementation - Architecture and usage documentation
- ✅ Optional authentication (users can skip and use local mode)
- ✅ Email/password sign up and sign in
- ✅ Session persistence via Chrome storage
- ✅ Automatic token refresh
- ✅ Type-safe TypeScript implementation
- ✅ Zustand state management
- ✅ Pre-built UI components
- Read the Quick Start guide
- Set up
.envwith your Supabase credentials - See Implementation for usage examples
- Navigate to
/authin the app - Configure Supabase or skip to use local mode
- Sign up or sign in if using cloud sync
src/modules/supabase/
├── config/ # Supabase client configuration
├── auth/ # Authentication module
│ ├── types.ts
│ ├── store.ts
│ ├── service.ts
│ ├── hooks.ts
│ └── components/
└── index.ts
import { useAuth, useAuthActions } from "@/modules/supabase";
function MyComponent() {
const { user, isLoading } = useAuth();
const { signOut } = useAuthActions();
if (user) {
return <div>Welcome {user.email}! <button onClick={signOut}>Sign Out</button></div>;
}
return <div>Not signed in</div>;
}