@better-auth/passkey 1.4.7-beta.4 → 1.4.7
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/index.mjs +3 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -305,9 +305,10 @@ const verifyPasskeyRegistration = (options) => createAuthEndpoint("/passkey/veri
|
|
|
305
305
|
model: "passkey",
|
|
306
306
|
data: newPasskey
|
|
307
307
|
});
|
|
308
|
+
await ctx.context.internalAdapter.deleteVerificationValue(challengeId);
|
|
308
309
|
return ctx.json(newPasskeyRes, { status: 200 });
|
|
309
310
|
} catch (e) {
|
|
310
|
-
|
|
311
|
+
ctx.context.logger.error("Failed to verify registration", e);
|
|
311
312
|
throw new APIError("INTERNAL_SERVER_ERROR", { message: PASSKEY_ERROR_CODES.FAILED_TO_VERIFY_REGISTRATION });
|
|
312
313
|
}
|
|
313
314
|
});
|
|
@@ -382,6 +383,7 @@ const verifyPasskeyAuthentication = (options) => createAuthEndpoint("/passkey/ve
|
|
|
382
383
|
session: s,
|
|
383
384
|
user
|
|
384
385
|
});
|
|
386
|
+
await ctx.context.internalAdapter.deleteVerificationValue(challengeId);
|
|
385
387
|
return ctx.json({ session: s }, { status: 200 });
|
|
386
388
|
} catch (e) {
|
|
387
389
|
ctx.context.logger.error("Failed to verify authentication", e);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/passkey",
|
|
3
|
-
"version": "1.4.7
|
|
3
|
+
"version": "1.4.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Passkey plugin for Better Auth",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"tsdown": "^0.17.2",
|
|
36
|
-
"better-auth": "1.4.7
|
|
37
|
-
"
|
|
36
|
+
"@better-auth/core": "1.4.7",
|
|
37
|
+
"better-auth": "1.4.7"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@simplewebauthn/browser": "^13.1.2",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"@better-fetch/fetch": "1.1.21",
|
|
47
47
|
"better-call": "1.1.5",
|
|
48
48
|
"nanostores": "^1.0.1",
|
|
49
|
-
"@better-auth/core": "1.4.7
|
|
50
|
-
"better-auth": "1.4.7
|
|
49
|
+
"@better-auth/core": "1.4.7",
|
|
50
|
+
"better-auth": "1.4.7"
|
|
51
51
|
},
|
|
52
52
|
"files": [
|
|
53
53
|
"dist"
|