fieldnotesai
    Preparing search index...

    Abstract Authentication Provider Interface

    This interface defines the contract for all auth providers, making it easy to swap between Supabase, Azure Entra ID, or other providers.

    Design principle: Keep auth logic abstracted and replaceable

    interface AuthUser {
        email: string;
        id: string;
        metadata?: Record<string, any>;
        name: string;
        role: "practitioner" | "admin";
    }
    Index

    Properties

    email: string
    id: string
    metadata?: Record<string, any>
    name: string
    role: "practitioner" | "admin"