@riocrypto/common 1.0.1122 → 1.0.1124

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.
@@ -63,7 +63,7 @@ export declare class RioClient {
63
63
  signout(): Promise<void>;
64
64
  verifyPhoneCode(phoneNumber: string, code: string): Promise<void>;
65
65
  signin(password: string): Promise<Auth>;
66
- signup(password: string): Promise<{
66
+ signup(password: string, securityQuestion: SecurityQuestion, securityAnswer: string): Promise<{
67
67
  auth: Auth;
68
68
  isAuthorizedPhoneNumberAuth: boolean;
69
69
  }>;
@@ -200,10 +200,12 @@ class RioClient {
200
200
  return response.data;
201
201
  });
202
202
  }
203
- signup(password) {
203
+ signup(password, securityQuestion, securityAnswer) {
204
204
  return __awaiter(this, void 0, void 0, function* () {
205
205
  const response = yield this.axios.post("/api/auth/signup", {
206
206
  password,
207
+ securityQuestion,
208
+ securityAnswer,
207
209
  });
208
210
  return response.data;
209
211
  });
@@ -2,5 +2,5 @@ export interface BitsoReceivingAccount {
2
2
  id: string;
3
3
  userId: string;
4
4
  bankAccountId: string;
5
- BitsoReceivingAccountId: string;
5
+ bitsoReceivingAccountId: string;
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1122",
3
+ "version": "1.0.1124",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",