Practic Passkey - v1.0.0
    Preparing search index...
    • The steps of creating a passkey, for a form of any design: send a code to an address, then confirm it and have the device create the passkey, which signs up a new address or adds a passkey to its account, and signs in. It asks the server whether sign-up is open, so the form can word itself for adding a passkey when it is not.

      Parameters

      • options: UsePasskeyCreateOptions = {}

        The client, what to call as the steps complete or when one fails, and whether the caller keeps it busy.

      Returns {
          confirm: (
              fields: { code: string; displayName?: string; label?: string },
          ) => Promise<string | null>;
          error: string | null;
          labels: PasskeyLabels;
          pending: boolean;
          pendingFor: (trigger: PasskeyCreateTrigger) => boolean;
          resend: () => Promise<void> | Promise<string | null>;
          sendCode: (
              address: string,
              trigger?: PasskeyCreateTrigger,
          ) => Promise<string | null>;
          signup: "invited" | "open" | "closed";
          startOver: () => void;
          step: PasskeyCreateStep;
      }

      • confirm: (
            fields: { code: string; displayName?: string; label?: string },
        ) => Promise<string | null>

        Confirm the code, and have the device create the passkey.

      • error: string | null
      • labels: PasskeyLabels

        The texts shown: those given, over the English ones.

      • pending: boolean
      • pendingFor: (trigger: PasskeyCreateTrigger) => boolean

        Whether a button shows its request is pending.

      • resend: () => Promise<void> | Promise<string | null>

        Send a new code to the address of the code step.

      • sendCode: (address: string, trigger?: PasskeyCreateTrigger) => Promise<string | null>

        Send a code to an address, and move on to the code step.

      • signup: "invited" | "open" | "closed"
      • startOver: () => void

        Back to the address step.

      • step: PasskeyCreateStep