@suluk/better-auth - v0.2.0
    Preparing search index...

    Interface CascadeStep<U>

    One step of the erasure cascade — the erasure of one subsystem for one user.

    interface CascadeStep<U> {
        name: string;
        run: (user: U) => void | Promise<void>;
    }

    Type Parameters

    • U
    Index

    Properties

    Properties

    name: string

    a label for logs/diagnostics.

    run: (user: U) => void | Promise<void>

    perform the erasure. Put any in-step recovery (already-deleted → fallback) HERE, not in the orchestrator.