@riocrypto/common 1.0.533 → 1.0.534

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.
@@ -52,6 +52,7 @@ export declare class RioClient {
52
52
  auth: Auth;
53
53
  missing: string[];
54
54
  }>;
55
+ authHasSecurityQuestion(phoneNumber: string): Promise<Boolean>;
55
56
  signout(): Promise<void>;
56
57
  verifyPhoneCode(phoneNumber: string, code: string): Promise<void>;
57
58
  signin(password: string): Promise<{
@@ -143,6 +143,12 @@ class RioClient {
143
143
  return response.data;
144
144
  });
145
145
  }
146
+ authHasSecurityQuestion(phoneNumber) {
147
+ return __awaiter(this, void 0, void 0, function* () {
148
+ const response = yield this.axios.get(`/api/auth?phoneNumber=${phoneNumber}&checkSecurityQuestion=true`);
149
+ return response.data.hasSecurityQuestion;
150
+ });
151
+ }
146
152
  signout() {
147
153
  return __awaiter(this, void 0, void 0, function* () {
148
154
  yield this.axios.post("/api/auth/signout", {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.533",
3
+ "version": "1.0.534",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",