@riocrypto/common 1.0.1202 → 1.0.1204
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.
|
@@ -91,7 +91,9 @@ export declare class RioAdminClient {
|
|
|
91
91
|
createUser(user: UserInput): Promise<User>;
|
|
92
92
|
getBankPayment(orderId: string): Promise<BankPayment>;
|
|
93
93
|
verifyBankPayment(orderId: string): Promise<any>;
|
|
94
|
-
sendPhoneAuthCode(phoneNumber: string): Promise<
|
|
94
|
+
sendPhoneAuthCode(phoneNumber: string): Promise<{
|
|
95
|
+
hasAuthenticatorEnabled: boolean;
|
|
96
|
+
}>;
|
|
95
97
|
getAuth(phoneNumber?: string): Promise<{
|
|
96
98
|
auth: Auth;
|
|
97
99
|
missing: string[];
|
|
@@ -61,12 +61,14 @@ export declare class RioClient {
|
|
|
61
61
|
uploadProofOfAddress(id: string, formData: FormData): Promise<User>;
|
|
62
62
|
getBankPayment(orderId: string): Promise<BankPayment>;
|
|
63
63
|
verifyBankPayment(orderId: string): Promise<any>;
|
|
64
|
-
sendPhoneAuthCode(phoneNumber: string): Promise<
|
|
64
|
+
sendPhoneAuthCode(phoneNumber: string): Promise<{
|
|
65
|
+
hasAuthenticatorEnabled: boolean;
|
|
66
|
+
}>;
|
|
65
67
|
getAuth(phoneNumber?: string): Promise<Auth>;
|
|
66
68
|
getSecurityQuestion(): Promise<SecurityQuestion>;
|
|
67
69
|
authHasSecurityQuestion(): Promise<Boolean>;
|
|
68
70
|
signout(): Promise<void>;
|
|
69
|
-
|
|
71
|
+
verifyCode(phoneNumber: string, code?: string, authenticatorCode?: string): Promise<void>;
|
|
70
72
|
signin(password: string): Promise<Auth>;
|
|
71
73
|
signup(password: string, securityQuestion: SecurityQuestion, securityAnswer: string): Promise<{
|
|
72
74
|
auth: Auth;
|
|
@@ -209,11 +209,12 @@ class RioClient {
|
|
|
209
209
|
yield this.axios.post("/api/auth/signout", {});
|
|
210
210
|
});
|
|
211
211
|
}
|
|
212
|
-
|
|
212
|
+
verifyCode(phoneNumber, code, authenticatorCode) {
|
|
213
213
|
return __awaiter(this, void 0, void 0, function* () {
|
|
214
214
|
yield this.axios.post("/api/auth/verify-code", {
|
|
215
215
|
phoneNumber,
|
|
216
|
-
code,
|
|
216
|
+
code: code ? code : undefined,
|
|
217
|
+
authenticatorCode: authenticatorCode ? authenticatorCode : undefined,
|
|
217
218
|
});
|
|
218
219
|
});
|
|
219
220
|
}
|