passkey-kit 0.10.3 → 0.10.4
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/package.json +3 -3
- package/src/kit.ts +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "passkey-kit",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.4",
|
|
4
4
|
"description": "A helper library for creating and using smart wallet accounts on the Stellar blockchain.",
|
|
5
5
|
"author": "Tyler van der Hoeven",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"base64url": "^3.0.1",
|
|
14
14
|
"buffer": "^6.0.3",
|
|
15
15
|
"passkey-factory-sdk": "0.6.1",
|
|
16
|
-
"
|
|
17
|
-
"
|
|
16
|
+
"sac-sdk": "0.3.1",
|
|
17
|
+
"passkey-kit-sdk": "0.6.1"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@simplewebauthn/types": "^11.0.0",
|
package/src/kit.ts
CHANGED
|
@@ -93,9 +93,9 @@ export class PasskeyKit extends PasskeyBase {
|
|
|
93
93
|
const displayName = `${user} — ${now.toLocaleString()}`
|
|
94
94
|
const { rpId, authenticatorSelection = {
|
|
95
95
|
residentKey: "preferred",
|
|
96
|
-
userVerification: "
|
|
96
|
+
userVerification: "preferred",
|
|
97
97
|
} } = settings || {}
|
|
98
|
-
const { id, response
|
|
98
|
+
const { id, response } = await this.WebAuthn.startRegistration({
|
|
99
99
|
optionsJSON: {
|
|
100
100
|
challenge: base64url("stellaristhebetterblockchain"),
|
|
101
101
|
rp: {
|
|
@@ -135,7 +135,7 @@ export class PasskeyKit extends PasskeyBase {
|
|
|
135
135
|
optionsJSON: {
|
|
136
136
|
challenge: base64url("stellaristhebetterblockchain"),
|
|
137
137
|
rpId,
|
|
138
|
-
userVerification: "
|
|
138
|
+
userVerification: "preferred",
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
141
|
|
|
@@ -277,7 +277,7 @@ export class PasskeyKit extends PasskeyBase {
|
|
|
277
277
|
? {
|
|
278
278
|
challenge: base64url(payload),
|
|
279
279
|
rpId,
|
|
280
|
-
userVerification: "
|
|
280
|
+
userVerification: "preferred",
|
|
281
281
|
}
|
|
282
282
|
: {
|
|
283
283
|
challenge: base64url(payload),
|
|
@@ -290,7 +290,7 @@ export class PasskeyKit extends PasskeyBase {
|
|
|
290
290
|
type: "public-key",
|
|
291
291
|
},
|
|
292
292
|
],
|
|
293
|
-
userVerification: "
|
|
293
|
+
userVerification: "preferred",
|
|
294
294
|
}
|
|
295
295
|
});
|
|
296
296
|
|