@reactoo/watchtogether-sdk-js 2.7.21 → 2.7.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactoo/watchtogether-sdk-js",
3
- "version": "2.7.21",
3
+ "version": "2.7.22",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "src/index.js",
6
6
  "unpkg": "dist/watchtogether-sdk.min.js",
@@ -147,14 +147,15 @@ let room = function () {
147
147
  }
148
148
  }))
149
149
  },
150
-
151
- getInviteUrl: (roomId, domain, url) => {
150
+
151
+ getInviteUrl: ({roomId, domain, url, autologin}) => {
152
152
  return this.__privates.auth.__client
153
153
  .then(client => client.apis.wt.invite({}, {
154
154
  requestBody: {
155
155
  roomId,
156
156
  domain: domain || location.host,
157
- url: url || location.href
157
+ url: url || location.href,
158
+ ...(autologin && {autologin}),
158
159
  }
159
160
  }))
160
161
  },