@streamlayer/sdk-web-api 0.24.0 → 0.24.1

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.
@@ -15,13 +15,8 @@ export const $user = ($userToken, transport) => {
15
15
  export const bypassLogin = (transport) => {
16
16
  const { client, createRequestOptions } = transport.createPromiseClient(Users, { method: 'bypassAuth' });
17
17
  const contextValues = createRequestOptions({ retryAttempts: 0 });
18
- // inviterKey to do add to payload, ONLY after implement it on backend!
19
- return async ({ userKey, schema, init, inviterKey }) => {
20
- const res = await client.bypassAuth({ userKey, schema, init }, { contextValues });
21
- if (res.meta) {
22
- res.meta.inviterKey = inviterKey;
23
- }
24
- return res;
18
+ return ({ userKey, schema, init, inviterKey }) => {
19
+ return client.bypassAuth({ userKey, schema, init, inviterKey }, { contextValues });
25
20
  };
26
21
  };
27
22
  export const bypassAuth = (transport, params) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamlayer/sdk-web-api",
3
- "version": "0.24.0",
3
+ "version": "0.24.1",
4
4
  "type": "module",
5
5
  "main": "./lib/index.js",
6
6
  "typings": "./lib/index.d.ts",