@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/identity/api.d.ts
CHANGED
|
@@ -48,11 +48,11 @@ export declare class IdentityApi {
|
|
|
48
48
|
*
|
|
49
49
|
* Returns:
|
|
50
50
|
* - email_valid: whether the email domain has valid MX records
|
|
51
|
-
* -
|
|
51
|
+
* - has_passkey: whether any passkeys are registered (only meaningful if email_valid)
|
|
52
52
|
*/
|
|
53
53
|
checkPasskey(email: string): Promise<{
|
|
54
54
|
email_valid: boolean;
|
|
55
|
-
|
|
55
|
+
has_passkey: boolean;
|
|
56
56
|
}>;
|
|
57
57
|
/**
|
|
58
58
|
* Build auth context params for API requests (OIDC/simple mode).
|
package/dist/sparkvault.cjs.js
CHANGED
|
@@ -786,7 +786,7 @@ class IdentityApi {
|
|
|
786
786
|
*
|
|
787
787
|
* Returns:
|
|
788
788
|
* - email_valid: whether the email domain has valid MX records
|
|
789
|
-
* -
|
|
789
|
+
* - has_passkey: whether any passkeys are registered (only meaningful if email_valid)
|
|
790
790
|
*/
|
|
791
791
|
async checkPasskey(email) {
|
|
792
792
|
return this.request('POST', '/passkey/check', { email });
|
|
@@ -1283,10 +1283,10 @@ class PasskeyHandler {
|
|
|
1283
1283
|
async checkPasskey() {
|
|
1284
1284
|
try {
|
|
1285
1285
|
const response = await this.api.checkPasskey(this.state.recipient);
|
|
1286
|
-
this.state.setPasskeyStatus(response.
|
|
1286
|
+
this.state.setPasskeyStatus(response.has_passkey);
|
|
1287
1287
|
return {
|
|
1288
1288
|
emailValid: response.email_valid,
|
|
1289
|
-
hasPasskey: response.
|
|
1289
|
+
hasPasskey: response.has_passkey,
|
|
1290
1290
|
};
|
|
1291
1291
|
}
|
|
1292
1292
|
catch (error) {
|