API Reference / @evolu/common / Evolu/Internal / createAppOwner

Function: createAppOwner()

function createAppOwner(deps): (mnemonic) => AppOwner;

Defined in: packages/common/src/Evolu/Owner.ts:153

Creates an AppOwner, optionally from an existing mnemonic to restore it on another device; otherwise, generates a new mnemonic.

Parameters

ParameterType
depsTimeDep & CreateRandomBytesDep & CreateMnemonicDep

Returns

(mnemonic): AppOwner;

Parameters

ParameterType
mnemonicstring & Brand<"Trimmed"> & Brand<"MinLength1"> & Brand<"Mnemonic">

Returns

AppOwner

Was this page helpful?