@riocrypto/common 1.0.1204 → 1.0.1205
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.
|
@@ -69,6 +69,9 @@ export declare class RioClient {
|
|
|
69
69
|
authHasSecurityQuestion(): Promise<Boolean>;
|
|
70
70
|
signout(): Promise<void>;
|
|
71
71
|
verifyCode(phoneNumber: string, code?: string, authenticatorCode?: string): Promise<void>;
|
|
72
|
+
createAuthenticatorSecret(): Promise<{
|
|
73
|
+
secret: string;
|
|
74
|
+
}>;
|
|
72
75
|
signin(password: string): Promise<Auth>;
|
|
73
76
|
signup(password: string, securityQuestion: SecurityQuestion, securityAnswer: string): Promise<{
|
|
74
77
|
auth: Auth;
|
|
@@ -218,6 +218,12 @@ class RioClient {
|
|
|
218
218
|
});
|
|
219
219
|
});
|
|
220
220
|
}
|
|
221
|
+
createAuthenticatorSecret() {
|
|
222
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
223
|
+
const response = yield this.axios.post("/api/auth/authenticator");
|
|
224
|
+
return response.data;
|
|
225
|
+
});
|
|
226
|
+
}
|
|
221
227
|
signin(password) {
|
|
222
228
|
return __awaiter(this, void 0, void 0, function* () {
|
|
223
229
|
const response = yield this.axios.post("/api/auth/signin", {
|