API reference › @evolu/common › local‑first/Owner › ownerSecretToMnemonic

function ownerSecretToMnemonic(
  secret:
    | (Uint8Array<ArrayBufferLike> & Brand<"Entropy"> & Brand<"Length16">)
    | (Uint8Array<ArrayBufferLike> & Brand<"Entropy"> & Brand<"Length24">)
    | (Uint8Array<ArrayBufferLike> & Brand<"Entropy"> & Brand<"Length32">)
    | (Uint8Array<ArrayBufferLike> & Brand<"Entropy"> & Brand<"Length20">)
    | (Uint8Array<ArrayBufferLike> &
        Brand<"Entropy"> &
        Brand<"Length28"> &
        Brand<"OwnerSecret">),
): string & Brand<"Trimmed"> & Brand<"MinLength1"> & Brand<"Mnemonic">;

Defined in: packages/common/src/local-first/Owner.ts:228

Converts an OwnerSecret to a Mnemonic.