@mrgnw/anahtar 0.0.9 → 0.0.10

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.
Files changed (2) hide show
  1. package/dist/passkey.js +3 -1
  2. package/package.json +1 -1
package/dist/passkey.js CHANGED
@@ -50,7 +50,8 @@ export async function verifyRegistrationResponse(db, userId, response, requestUr
50
50
  response,
51
51
  expectedChallenge: challenge,
52
52
  expectedOrigin: origin,
53
- expectedRPID: rpID
53
+ expectedRPID: rpID,
54
+ requireUserVerification: false
54
55
  });
55
56
  if (!verification.verified)
56
57
  return { ok: false, reason: 'verification not verified' };
@@ -97,6 +98,7 @@ export async function verifyAuthenticationResponse(db, response, requestUrl) {
97
98
  expectedChallenge: challenge,
98
99
  expectedOrigin: origin,
99
100
  expectedRPID: rpID,
101
+ requireUserVerification: false,
100
102
  credential: {
101
103
  id: passkey.credentialId,
102
104
  publicKey: new Uint8Array(passkey.publicKey),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrgnw/anahtar",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "Opinionated, reusable auth for SvelteKit. Email+OTP + passkeys.",
5
5
  "license": "MIT",
6
6
  "type": "module",