@sparkvault/sdk 1.23.5 → 1.23.6
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.
package/dist/sparkvault.esm.js
CHANGED
|
@@ -782,7 +782,7 @@ class IdentityApi {
|
|
|
782
782
|
*
|
|
783
783
|
* Returns:
|
|
784
784
|
* - email_valid: whether the email domain has valid MX records
|
|
785
|
-
* -
|
|
785
|
+
* - has_passkey: whether any passkeys are registered (only meaningful if email_valid)
|
|
786
786
|
*/
|
|
787
787
|
async checkPasskey(email) {
|
|
788
788
|
return this.request('POST', '/passkey/check', { email });
|
|
@@ -1279,10 +1279,10 @@ class PasskeyHandler {
|
|
|
1279
1279
|
async checkPasskey() {
|
|
1280
1280
|
try {
|
|
1281
1281
|
const response = await this.api.checkPasskey(this.state.recipient);
|
|
1282
|
-
this.state.setPasskeyStatus(response.
|
|
1282
|
+
this.state.setPasskeyStatus(response.has_passkey);
|
|
1283
1283
|
return {
|
|
1284
1284
|
emailValid: response.email_valid,
|
|
1285
|
-
hasPasskey: response.
|
|
1285
|
+
hasPasskey: response.has_passkey,
|
|
1286
1286
|
};
|
|
1287
1287
|
}
|
|
1288
1288
|
catch (error) {
|