@actnet/app-core - v0.1.0
    Preparing search index...

    Class DeviceLinkNew

    Drives device linking from the new (joining) device, which has no AppCore yet (docs/04 ยง4). Role is independent of who shows the code:

    The existing device approves via AppCore.linkSendBundle.

    Index

    Constructors

    Methods

    • This (new) device shows the pairing code. Returns the pairing string. mailboxServer defaults to the built-in mailbox host when omitted.

      Parameters

      • OptionalmailboxServer: string

      Returns Promise<string>

    • This (new) device scanned/pasted the existing device's pairing code.

      Parameters

      • code: string

      Returns Promise<void>

    • Complete the link: receive the sealed bundle and register this device. Blocks until the existing device approves or the attempt times out.

      Parameters

      • dbPath: string
      • dbKey: string

      Returns Promise<AppCore>