API reference › @evolu/common › local‑first/Owner › createSharedOwner
function createSharedOwner(
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">,
): SharedOwner;
Defined in: packages/common/src/local-first/Owner.ts:446
Creates a SharedOwner from an OwnerSecret for collaborative write access.
Use createSharedReadonlyOwner to create a read-only version for sharing.
Access can't be revoked: to remove a collaborator, move the data to a new owner shared only with the others and stop syncing the old one. The removed collaborator keeps what they already synced.