iya-sts
    Preparing search index...

    Variable confirmAdminKeyEnrolment

    confirmAdminKeyEnrolment: (
        username: any,
        admin: any,
        enrolmentId: any,
        credential: any,
        opts?: any,
    ) => Promise<any> = ...

    Type Declaration

      • (
            username: any,
            admin: any,
            enrolmentId: any,
            credential: any,
            opts?: any,
        ): Promise<any>
      • Verifies the registration an administrator's browser produced for a person (#945) exactly as the person's own is verified, and only then writes the key, marked enrolledBy. The pending record is spent first, whatever the outcome.

        Parameters

        • username: any

          the person

        • admin: any

          { username, sub }: the administrator finishing it

        • enrolmentId: any

          the pending enrolment's id

        • credential: any

          what the browser posted

        • Optionalopts: any

          origin and rpId, what the browser was talking to

        Returns Promise<any>

        a promise of { ok: true, username, credentialId, held, lane, enrolledBy }, or a refusal