@zerodev/wallet-core 0.0.2 → 0.0.3
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/_cjs/stampers/webauthnStamper.js +4 -0
- package/dist/_cjs/stampers/webauthnStamper.js.map +1 -1
- package/dist/_esm/stampers/webauthnStamper.js +7 -0
- package/dist/_esm/stampers/webauthnStamper.js.map +1 -1
- package/dist/_types/stampers/webauthnStamper.d.ts.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/stampers/webauthnStamper.ts +7 -0
package/package.json
CHANGED
|
@@ -33,6 +33,13 @@ export async function createWebauthnStamper({
|
|
|
33
33
|
name: options.userName,
|
|
34
34
|
displayName: options.userName,
|
|
35
35
|
},
|
|
36
|
+
// Login resolves the credential with an empty allowCredentials list,
|
|
37
|
+
// which can only surface discoverable (resident) credentials — so the
|
|
38
|
+
// credential must be created as resident.
|
|
39
|
+
authenticatorSelection: {
|
|
40
|
+
residentKey: 'required',
|
|
41
|
+
userVerification: 'preferred',
|
|
42
|
+
},
|
|
36
43
|
},
|
|
37
44
|
})
|
|
38
45
|
|