@refinio/one.models
    Preparing search index...
    Index

    Constructors

    Methods

    • Create the recovery information and store them in local storage until needed.

      Parameters

      • secret: string | Uint8Array<ArrayBufferLike>

        The secret that should be later recovered. Limited to 1023 bytes.

      • identity: string

        The identity that is needed by the recovery service to identify you. Limited to approx 980 bytes.

      Returns Promise<void>

    • Recover your secret with the help of the symmetric key that you got from the recovery service.

      Parameters

      • symmetricKey: string

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Send recovery information to server.

      The recovery service will contact you by some means (snail mail, mail or you have to phyically go somewhere to get the symmetric key that they give you.)

      Returns Promise<void>