API reference / @evolu/common / Evolu/Owner / createSharedOwner
Function: createSharedOwner()
function createSharedOwner(deps): SharedOwner;
Defined in: packages/common/src/Evolu/Owner.ts:188
Creates a fresh SharedOwner for sharing data with write access. Takes
no arguments as both mnemonic
and rotatable writeKey
are newly generated;
when shared, recipients use the provided mnemonic
and writeKey
directly
as a SharedOwner without needing to recreate it.
Parameters
Parameter | Type |
---|---|
deps | CreateRandomBytesDep & CreateMnemonicDep |