iya-sts
    Preparing search index...
    write: (
        username: any,
        record: any,
        opts: any,
    ) =>
        | {
            errorCode: string;
            errors: string[];
            ok: boolean;
            written?: undefined;
        }
        | { errorCode: string; errors: string[]; ok: boolean; written: any[] }
        | { errorCode?: undefined; errors: any[]; ok: boolean; written: any[] } = write

    Type Declaration

      • (
            username: any,
            record: any,
            opts: any,
        ):
            | {
                errorCode: string;
                errors: string[];
                ok: boolean;
                written?: undefined;
            }
            | { errorCode: string; errors: string[]; ok: boolean; written: any[] }
            | { errorCode?: undefined; errors: any[]; ok: boolean; written: any[] }
      • Writes an issued or uploaded key pair onto a person's entry, every attribute or a failure naming which one.

        The private key is sealed and written first; a key pair that fails to seal or write is lost, since this service keeps no copy. A CAEP credential-change event follows a successful write.

        Parameters

        • username: any

          the person's username

        • record: any

          the key pair from pki.js: private key, certificate, chain, JWKS, kid or thumbprint, notAfter, source

        • opts: any

          purpose (jwt by default), issuer to declare, and initiatingEntity and via for the event

        Returns
            | {
                errorCode: string;
                errors: string[];
                ok: boolean;
                written?: undefined;
            }
            | { errorCode: string; errors: string[]; ok: boolean; written: any[] }
            | { errorCode?: undefined; errors: any[]; ok: boolean; written: any[] }

        { ok, written, errors }, with errorCode on a refusal