Supabase Auth + Memory System Purpose Implement user authentication and persistent AI conversation memory using Supabase as unified backend. When to Use - Need user authentication in SaaS app - Want conversation history across devices - Building multi-tenant AI applications - Need SQL-based memory for agents - Syncing state between localStorage and cloud Quick Start Installation Environment Variables Database Schema Core Tables Row Level Security (RLS) Policies Frontend Integration Supabase Client Setup Zustand Store with Supabase Sync User Preferences Store Real-time Subscriptions Authentica…