iya-sts
    Preparing search index...

    Variable removeForSubject

    removeForSubject: (
        subject: string,
        id: string,
        via: string,
    ) => {
        already?: boolean;
        copies?: number;
        error?: string;
        ok: boolean;
        removed?: number;
        scope?: string;
    } = ...

    Type Declaration

      • (
            subject: string,
            id: string,
            via: string,
        ): {
            already?: boolean;
            copies?: number;
            error?: string;
            ok: boolean;
            removed?: number;
            scope?: string;
        }
      • Removes one of a person's credentials, or every copy of one issuance: each copy's status-list entry INVALID, its issued-register row revoked, and the copy refused at sign-in.

        Parameters

        • subject: string

          the person's urn:uuid: subject

        • id: string

          a copy's id, or an issuance's, from issuancesForSubject()

        • via: string

          who removed it, and where

        Returns {
            already?: boolean;
            copies?: number;
            error?: string;
            ok: boolean;
            removed?: number;
            scope?: string;
        }

        { ok, already, scope, removed, copies }, or { ok: false, error }