@liveblocks/node
Advanced tools
Comparing version 1.0.0-beta1 to 1.0.0-beta2
@@ -135,6 +135,7 @@ import { IncomingHttpHeaders } from 'http'; | ||
/** | ||
* The id of the user that try to connect. It should be used to get information about the connected users in the room (name, avatar, etc). | ||
* It can also be used to generate a token that gives access to a private room where the userId is configured in the room accesses | ||
* The id of the user that try to connect. It can be used to get information about the connected users in the room (name, avatar, etc). | ||
* It can also be used to generate a token that gives access to a private room where the userId is configured in the room accesses. | ||
* Liveblocks uses the userId to calculate your account's Monthly Active Users. | ||
*/ | ||
userId?: string; | ||
userId: string; | ||
/** | ||
@@ -164,3 +165,3 @@ * The info associated to the user. Can be used to store the name or the profile picture to implement avatar for example. Can't exceed 1KB when serialized as JSON | ||
* secret, | ||
* userId: "123", // Optional | ||
* userId: "123", | ||
* userInfo: { // Optional | ||
@@ -167,0 +168,0 @@ * name: "Ada Lovelace" |
@@ -117,2 +117,7 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var __async = (__this, __arguments, generator) => { | ||
} | ||
if (!(typeof userId === "string" && userId.length > 0)) { | ||
throw new Error( | ||
"Invalid userId. Please provide a non-empty string as the userId. For more information: https://liveblocks.io/docs/api-reference/liveblocks-node#authorize" | ||
); | ||
} | ||
const result = yield _nodefetch2.default.call(void 0, | ||
@@ -119,0 +124,0 @@ buildLiveblocksAuthorizeEndpoint(options, room), |
{ | ||
"name": "@liveblocks/node", | ||
"version": "1.0.0-beta1", | ||
"version": "1.0.0-beta2", | ||
"description": "A server-side utility that lets you set up a Liveblocks authentication endpoint. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14277
5
333