@riocrypto/common 1.0.1205 → 1.0.1206

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.
@@ -72,6 +72,7 @@ export declare class RioClient {
72
72
  createAuthenticatorSecret(): Promise<{
73
73
  secret: string;
74
74
  }>;
75
+ confirmAuthenticatorRegistration(authenticatorCode: string): Promise<void>;
75
76
  signin(password: string): Promise<Auth>;
76
77
  signup(password: string, securityQuestion: SecurityQuestion, securityAnswer: string): Promise<{
77
78
  auth: Auth;
@@ -224,6 +224,13 @@ class RioClient {
224
224
  return response.data;
225
225
  });
226
226
  }
227
+ confirmAuthenticatorRegistration(authenticatorCode) {
228
+ return __awaiter(this, void 0, void 0, function* () {
229
+ yield this.axios.post("/api/auth/confirm-authenticator", {
230
+ authenticatorCode,
231
+ });
232
+ });
233
+ }
227
234
  signin(password) {
228
235
  return __awaiter(this, void 0, void 0, function* () {
229
236
  const response = yield this.axios.post("/api/auth/signin", {
@@ -9,7 +9,10 @@ export interface Auth {
9
9
  previousPasswords?: string[];
10
10
  apiKeys?: APIKey[];
11
11
  isDisabled?: boolean;
12
- authenticatorSecret?: string;
12
+ authenticator?: {
13
+ secret?: string;
14
+ verified?: boolean;
15
+ };
13
16
  telegram: {
14
17
  username?: string;
15
18
  lastVerified?: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1205",
3
+ "version": "1.0.1206",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",