User Management

Authentication and user management in magic.mov

Overview

The user authentication system in magic.mov leverages Supabase for secure, reliable authentication. The system implements:

  • Email/password authentication
  • OAuth providers (Google, GitHub)
  • Session management
  • User profile data storage and retrieval

Key Components

src/routes/auth

This directory contains the authentication views and controllers:

  • Login forms
  • Registration forms
  • Password reset functionality
  • Email verification

src/lib/supabase.ts

This file provides a centralized interface for all Supabase authentication operations:

  • Client initialization
  • Auth state management
  • Session handling
  • User data fetching