API Reference / @evolu/common / Evolu/Internal / rotateWriteKey
Function: rotateWriteKey()
function rotateWriteKey<T>(owner, newWriteKey): T;
Defined in: packages/common/src/Evolu/Owner.ts:288
Rotates the WriteKey for an AppOwner, ShardOwner, or SharedOwner, returning a new instance with the updated key.
Type Parameters
Type Parameter |
---|
T extends | AppOwner | ShardOwner | SharedOwner |
Parameters
Parameter | Type |
---|---|
owner | T |
newWriteKey | Uint8Array <ArrayBufferLike > & Brand <`Length${number & Brand<"Int"> & Brand<"NonNegative">}` > & Brand <"WriteKey" > |
Returns
T