@riocrypto/common 1.0.1116 → 1.0.1117
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.
|
@@ -57,6 +57,7 @@ export declare class RioClient {
|
|
|
57
57
|
verifyBankPayment(orderId: string): Promise<any>;
|
|
58
58
|
sendPhoneAuthCode(phoneNumber: string, isNewPhoneNumber: boolean): Promise<void>;
|
|
59
59
|
getAuth(phoneNumber?: string): Promise<Auth>;
|
|
60
|
+
getSecurityQuestion(): Promise<string>;
|
|
60
61
|
authHasSecurityQuestion(): Promise<Boolean>;
|
|
61
62
|
signout(): Promise<void>;
|
|
62
63
|
verifyPhoneCode(phoneNumber: string, code: string): Promise<void>;
|
|
@@ -167,6 +167,12 @@ class RioClient {
|
|
|
167
167
|
return response.data;
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
+
getSecurityQuestion() {
|
|
171
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
172
|
+
const response = yield this.axios.get(`/api/auth/security-question`);
|
|
173
|
+
return response.data.securityQuestion;
|
|
174
|
+
});
|
|
175
|
+
}
|
|
170
176
|
authHasSecurityQuestion() {
|
|
171
177
|
return __awaiter(this, void 0, void 0, function* () {
|
|
172
178
|
const response = yield this.axios.get(`/api/auth?checkSecurityQuestion=true`);
|