@riocrypto/common 1.0.1331 → 1.0.1332
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.
|
@@ -95,7 +95,9 @@ export declare class RioClient {
|
|
|
95
95
|
getSecurityQuestion(): Promise<SecurityQuestion>;
|
|
96
96
|
authHasSecurityQuestion(): Promise<Boolean>;
|
|
97
97
|
signout(): Promise<void>;
|
|
98
|
-
verifyCode(phoneNumber: string, code?: string, authenticatorCode?: string): Promise<
|
|
98
|
+
verifyCode(phoneNumber: string, code?: string, authenticatorCode?: string): Promise<{
|
|
99
|
+
id: string;
|
|
100
|
+
}>;
|
|
99
101
|
createAuthenticatorSecret(): Promise<{
|
|
100
102
|
secret: string;
|
|
101
103
|
}>;
|
|
@@ -325,11 +325,12 @@ class RioClient {
|
|
|
325
325
|
}
|
|
326
326
|
verifyCode(phoneNumber, code, authenticatorCode) {
|
|
327
327
|
return __awaiter(this, void 0, void 0, function* () {
|
|
328
|
-
yield this.axios.post("/api/auth/verify-code", {
|
|
328
|
+
const response = yield this.axios.post("/api/auth/verify-code", {
|
|
329
329
|
phoneNumber,
|
|
330
330
|
code: code ? code : undefined,
|
|
331
331
|
authenticatorCode: authenticatorCode ? authenticatorCode : undefined,
|
|
332
332
|
});
|
|
333
|
+
return response.data;
|
|
333
334
|
});
|
|
334
335
|
}
|
|
335
336
|
createAuthenticatorSecret() {
|