API reference / @evolu/common / local-first / OwnerWriteKey

Variable: OwnerWriteKey

const OwnerWriteKey: BrandType<
  BrandType<
    Type<
      "Brand",
      Uint8Array<ArrayBufferLike> & Brand<"Entropy">,
      Uint8Array<ArrayBufferLike>,
      BrandWithoutRefineError<"Entropy", Uint8ArrayError>,
      Uint8Array<ArrayBufferLike>,
      never
    >,
    "Length16",
    LengthError<16>,
    BrandWithoutRefineError<"Entropy", Uint8ArrayError>
  >,
  "OwnerWriteKey",
  BrandWithoutRefineError<
    "OwnerWriteKey",
    LengthError<16> | BrandWithoutRefineError<"Entropy", Uint8ArrayError>
  >,
  never
>;

Defined in: packages/common/src/local-first/Owner.ts:86

A secure token for write operations. It's derived from OwnerSecret by default and can be rotated via createOwnerWriteKey.

Was this page helpful?