shred-api-client 1.2.3 → 1.2.4

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.
@@ -11,9 +11,9 @@ class SMSAPI {
11
11
  this.clientHTTP = new HTTPClient_1.default();
12
12
  }
13
13
  async verify(phone, code) {
14
- const endpointInfo = SMS_schema_1.SMSEndpoints.SendVerifyCode;
14
+ const endpointInfo = SMS_schema_1.SMSEndpoints.VerifyCode;
15
15
  const data = await this.clientHTTP.makeRequest(this.env, endpointInfo.uri, endpointInfo.method, { phone, code });
16
- return data;
16
+ return data.success;
17
17
  }
18
18
  async sendVerifyCode(phone, friendlyName) {
19
19
  const endpointInfo = SMS_schema_1.SMSEndpoints.SendVerifyCode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shred-api-client",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "API Client for Shred",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",