@liveblocks/core 0.19.3-beta0 → 0.19.3-beta1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -514,9 +514,15 @@ declare type RoomAuthToken = {
514
514
  scopes: string[];
515
515
  actor: number;
516
516
  maxConnectionsPerRoom?: number;
517
- id?: string;
518
517
  info?: Json;
519
- };
518
+ groupIds?: string[];
519
+ } & ({
520
+ id: string;
521
+ anonymousId?: never;
522
+ } | {
523
+ id?: never;
524
+ anonymousId: string;
525
+ });
520
526
  declare type AuthToken = AppOnlyAuthToken | RoomAuthToken;
521
527
  declare function isAppOnlyAuthToken(data: JsonObject): data is AppOnlyAuthToken;
522
528
  declare function isRoomAuthToken(data: JsonObject): data is RoomAuthToken;
package/dist/index.js CHANGED
@@ -3831,7 +3831,7 @@ function prepareCreateWebSocket(liveblocksServer, WebSocketPolyfill) {
3831
3831
  const ws = WebSocketPolyfill || WebSocket;
3832
3832
  return (token) => {
3833
3833
  return new ws(
3834
- `${liveblocksServer}/?token=${token}&version=${true ? "0.19.3-beta0" : "dev"}`
3834
+ `${liveblocksServer}/?token=${token}&version=${true ? "0.19.3-beta1" : "dev"}`
3835
3835
  );
3836
3836
  };
3837
3837
  }
@@ -3881,6 +3881,7 @@ function fetchAuthEndpoint(fetch2, endpoint, body) {
3881
3881
  headers: {
3882
3882
  "Content-Type": "application/json"
3883
3883
  },
3884
+ credentials: "include",
3884
3885
  body: JSON.stringify(body)
3885
3886
  });
3886
3887
  if (!res.ok) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liveblocks/core",
3
- "version": "0.19.3-beta0",
3
+ "version": "0.19.3-beta1",
4
4
  "description": "Shared code and foundational internals for Liveblocks",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",