@riocrypto/common-server 1.0.2376 → 1.0.2378

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.
@@ -55,7 +55,7 @@ declare class ClusterClient {
55
55
  limit: number;
56
56
  used: number;
57
57
  }>;
58
- sendVerificationCode(phoneNumber: string, bypassPasskeys?: boolean): Promise<{
58
+ sendVerificationCode(phoneNumber: string, forceSMS?: boolean): Promise<{
59
59
  hasAuthenticatorEnabled: boolean;
60
60
  }>;
61
61
  verifyCode(phoneNumber: string, code?: string, authenticatorCode?: string): Promise<void>;
@@ -284,9 +284,9 @@ class ClusterClient {
284
284
  return response.data;
285
285
  });
286
286
  }
287
- sendVerificationCode(phoneNumber, bypassPasskeys) {
287
+ sendVerificationCode(phoneNumber, forceSMS) {
288
288
  return __awaiter(this, void 0, void 0, function* () {
289
- const response = yield this.axios.post(`${this.baseUrl}/api/auth/send-code`, { phoneNumber, bypassPasskeys }, {
289
+ const response = yield this.axios.post(`${this.baseUrl}/api/auth/send-code`, { phoneNumber, forceSMS }, {
290
290
  headers: {
291
291
  "x-cluster-api-key": this.clusterApiKey,
292
292
  },
@@ -13,6 +13,11 @@ const sanitizeUserDoc = (doc) => {
13
13
  delete obj.registeredWithCoincover;
14
14
  delete obj.slackChannelId;
15
15
  delete obj.customPayoutFireblocksVault;
16
+ delete obj.onboarding.aipriseBusinessProfileId;
17
+ delete obj.onboarding.aipriseUserProfileId;
18
+ delete obj.onboarding.aipriseUserVerificationSessionId;
19
+ delete obj.onboarding.bridgeCustomerId;
20
+ delete obj.onboarding.bridgeKYCLinkId;
16
21
  return obj;
17
22
  };
18
23
  exports.sanitizeUserDoc = sanitizeUserDoc;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2376",
3
+ "version": "1.0.2378",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",