Niche API Documentation - v0.1.0
    Preparing search index...

    Module auth

    Data Access Layer — the single place that answers "who is the current user?" Server-only. Every data function and Server Action should call through here rather than reading the Supabase session directly.

    CurrentUser
    getCurrentUser
    requireUser