API reference / @evolu/common / Evolu/Protocol / createProtocolMessageForWriteKeyRotation
Function: createProtocolMessageForWriteKeyRotation()
function createProtocolMessageForWriteKeyRotation(
ownerId,
currentWriteKey,
newWriteKey): ProtocolMessage;
Defined in: packages/common/src/Evolu/Protocol.ts:538
Creates a ProtocolMessage for WriteKey rotation.
Parameters
Parameter | Type |
---|---|
ownerId | string & Brand <"Id" > & Brand <"OwnerId" > |
currentWriteKey | Uint8Array <ArrayBufferLike > & Brand <`Length${number & Brand<"Int"> & Brand<"NonNegative">}` > & Brand <"WriteKey" > |
newWriteKey | Uint8Array <ArrayBufferLike > & Brand <`Length${number & Brand<"Int"> & Brand<"NonNegative">}` > & Brand <"WriteKey" > |