@riocrypto/common-server 1.0.2375 → 1.0.2376
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): Promise<{
|
|
58
|
+
sendVerificationCode(phoneNumber: string, bypassPasskeys?: 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) {
|
|
287
|
+
sendVerificationCode(phoneNumber, bypassPasskeys) {
|
|
288
288
|
return __awaiter(this, void 0, void 0, function* () {
|
|
289
|
-
const response = yield this.axios.post(`${this.baseUrl}/api/auth/send-code`, { phoneNumber }, {
|
|
289
|
+
const response = yield this.axios.post(`${this.baseUrl}/api/auth/send-code`, { phoneNumber, bypassPasskeys }, {
|
|
290
290
|
headers: {
|
|
291
291
|
"x-cluster-api-key": this.clusterApiKey,
|
|
292
292
|
},
|