@better-auth/passkey 1.6.7 → 1.6.9
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/client.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as PasskeyExtensionsResolver, c as PasskeyRegistrationUser, i as PasskeyAuthenticationOptions, l as WebAuthnChallengeValue, n as PASSKEY_ERROR_CODES, o as PasskeyOptions, r as Passkey, s as PasskeyRegistrationOptions, t as passkey } from "./index-
|
|
1
|
+
import { a as PasskeyExtensionsResolver, c as PasskeyRegistrationUser, i as PasskeyAuthenticationOptions, l as WebAuthnChallengeValue, n as PASSKEY_ERROR_CODES, o as PasskeyOptions, r as Passkey, s as PasskeyRegistrationOptions, t as passkey } from "./index-BoC1i3hA.mjs";
|
|
2
2
|
import { AuthenticationExtensionsClientInputs, AuthenticationExtensionsClientOutputs, AuthenticationResponseJSON, RegistrationResponseJSON } from "@simplewebauthn/server";
|
|
3
3
|
import * as better_auth_client0 from "better-auth/client";
|
|
4
4
|
import * as nanostores from "nanostores";
|
package/dist/client.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as PASSKEY_ERROR_CODES, t as PACKAGE_VERSION } from "./version-
|
|
1
|
+
import { n as PASSKEY_ERROR_CODES, t as PACKAGE_VERSION } from "./version-CAPMe0T2.mjs";
|
|
2
2
|
import { WebAuthnError, startAuthentication, startRegistration } from "@simplewebauthn/browser";
|
|
3
3
|
import { useAuthQuery } from "better-auth/client";
|
|
4
4
|
import { atom } from "nanostores";
|
|
@@ -250,7 +250,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
250
250
|
image?: string | null | undefined;
|
|
251
251
|
};
|
|
252
252
|
};
|
|
253
|
-
}>)[]
|
|
253
|
+
}>)[];
|
|
254
254
|
query: zod.ZodOptional<zod.ZodObject<{
|
|
255
255
|
authenticatorAttachment: zod.ZodOptional<zod.ZodEnum<{
|
|
256
256
|
platform: "platform";
|
|
@@ -503,7 +503,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
503
503
|
image?: string | null | undefined;
|
|
504
504
|
};
|
|
505
505
|
};
|
|
506
|
-
}>)[]
|
|
506
|
+
}>)[];
|
|
507
507
|
metadata: {
|
|
508
508
|
openapi: {
|
|
509
509
|
operationId: string;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as PASSKEY_ERROR_CODES, o as PasskeyOptions, r as Passkey, t as passkey } from "./index-
|
|
1
|
+
import { n as PASSKEY_ERROR_CODES, o as PasskeyOptions, r as Passkey, t as passkey } from "./index-BoC1i3hA.mjs";
|
|
2
2
|
export { PASSKEY_ERROR_CODES, Passkey, PasskeyOptions, passkey };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as PASSKEY_ERROR_CODES, t as PACKAGE_VERSION } from "./version-
|
|
1
|
+
import { n as PASSKEY_ERROR_CODES, t as PACKAGE_VERSION } from "./version-CAPMe0T2.mjs";
|
|
2
2
|
import { mergeSchema } from "better-auth/db";
|
|
3
3
|
import { createAuthEndpoint } from "@better-auth/core/api";
|
|
4
4
|
import { APIError } from "@better-auth/core/error";
|
|
@@ -55,7 +55,7 @@ const generatePasskeyQuerySchema = z.object({
|
|
|
55
55
|
const generatePasskeyRegistrationOptions = (opts, { maxAgeInSeconds }) => {
|
|
56
56
|
return createAuthEndpoint("/passkey/generate-register-options", {
|
|
57
57
|
method: "GET",
|
|
58
|
-
use: opts.registration?.requireSession ?? true ? [freshSessionMiddleware] :
|
|
58
|
+
use: opts.registration?.requireSession ?? true ? [freshSessionMiddleware] : [],
|
|
59
59
|
query: generatePasskeyQuerySchema,
|
|
60
60
|
metadata: { openapi: {
|
|
61
61
|
operationId: "generatePasskeyRegistrationOptions",
|
|
@@ -294,7 +294,7 @@ const verifyPasskeyRegistration = (options) => {
|
|
|
294
294
|
return createAuthEndpoint("/passkey/verify-registration", {
|
|
295
295
|
method: "POST",
|
|
296
296
|
body: verifyPasskeyRegistrationBodySchema,
|
|
297
|
-
use: requireSession ? [freshSessionMiddleware] :
|
|
297
|
+
use: requireSession ? [freshSessionMiddleware] : [],
|
|
298
298
|
metadata: { openapi: {
|
|
299
299
|
operationId: "passkeyVerifyRegistration",
|
|
300
300
|
description: "Verify registration of a new passkey",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/passkey",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.9",
|
|
4
4
|
"description": "Passkey plugin for Better Auth",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -55,16 +55,16 @@
|
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"tsdown": "0.21.1",
|
|
58
|
-
"@better-auth/core": "1.6.
|
|
59
|
-
"better-auth": "1.6.
|
|
58
|
+
"@better-auth/core": "1.6.9",
|
|
59
|
+
"better-auth": "1.6.9"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"@better-auth/utils": "0.4.0",
|
|
63
63
|
"@better-fetch/fetch": "1.1.21",
|
|
64
64
|
"better-call": "1.3.5",
|
|
65
65
|
"nanostores": "^1.0.1",
|
|
66
|
-
"@better-auth/core": "^1.6.
|
|
67
|
-
"better-auth": "^1.6.
|
|
66
|
+
"@better-auth/core": "^1.6.9",
|
|
67
|
+
"better-auth": "^1.6.9"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"build": "tsdown",
|