shred-api-client 1.7.5 → 1.7.6

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.
@@ -45,13 +45,6 @@ class UserAPI {
45
45
  async getUserInfo(context) {
46
46
  const endpointData = User_schema_1.UserEndpoints.GetUserInfo;
47
47
  const data = await this.clientHTTP.makeRequest(this.env, endpointData.uri, endpointData.method, null, context);
48
- if (!data.registered) {
49
- //Login by 3rd party and don't have register yet
50
- const enableEndpointData = User_schema_1.UserEndpoints.EnableUser;
51
- const user = await this.clientHTTP.makeRequest(this.env, enableEndpointData.uri, enableEndpointData.method, null, context, true //Use legacy api (old endpoints)
52
- );
53
- return user;
54
- }
55
48
  return data;
56
49
  }
57
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shred-api-client",
3
- "version": "1.7.5",
3
+ "version": "1.7.6",
4
4
  "description": "API Client for Shred",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",