@better-auth/passkey 1.6.26 → 1.6.27

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 Passkey, c as PasskeyOptions, d as WebAuthnChallengeValue, l as PasskeyRegistrationOptions, n as PASSKEY_ERROR_CODES, o as PasskeyAuthenticationOptions, s as PasskeyExtensionsResolver, t as passkey, u as PasskeyRegistrationUser } from "./index-BdMna3V8.mjs";
1
+ import { a as Passkey, c as PasskeyOptions, d as WebAuthnChallengeValue, l as PasskeyRegistrationOptions, n as PASSKEY_ERROR_CODES, o as PasskeyAuthenticationOptions, s as PasskeyExtensionsResolver, t as passkey, u as PasskeyRegistrationUser } from "./index-BRe4Cq0y.mjs";
2
2
  import { AuthenticationExtensionsClientInputs, AuthenticationExtensionsClientOutputs, AuthenticationResponseJSON, RegistrationResponseJSON } from "@simplewebauthn/server";
3
3
  import { atom } from "nanostores";
4
4
  import { ClientFetchOption, ClientStore } from "@better-auth/core";
package/dist/client.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as PASSKEY_ERROR_CODES, t as PACKAGE_VERSION } from "./version-BE4wdr64.mjs";
1
+ import { n as PASSKEY_ERROR_CODES, t as PACKAGE_VERSION } from "./version-D6MIufx8.mjs";
2
2
  import { WebAuthnError, startAuthentication, startRegistration } from "@simplewebauthn/browser";
3
3
  import { useAuthQuery } from "better-auth/client";
4
4
  import { atom } from "nanostores";
@@ -253,7 +253,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
253
253
  endpoints: {
254
254
  generatePasskeyRegistrationOptions: import("better-call").StrictEndpoint<"/passkey/generate-register-options", {
255
255
  method: "GET";
256
- use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
256
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
257
257
  session: {
258
258
  session: Record<string, any> & {
259
259
  id: string;
@@ -275,7 +275,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
275
275
  image?: string | null | undefined;
276
276
  };
277
277
  };
278
- }>)[];
278
+ }>>[];
279
279
  query: import("zod").ZodOptional<import("zod").ZodObject<{
280
280
  authenticatorAttachment: import("zod").ZodOptional<import("zod").ZodEnum<{
281
281
  platform: "platform";
@@ -499,7 +499,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
499
499
  response: import("zod").ZodAny;
500
500
  name: import("zod").ZodOptional<import("zod").ZodString>;
501
501
  }, import("zod/v4/core").$strip>;
502
- use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
502
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
503
503
  session: {
504
504
  session: Record<string, any> & {
505
505
  id: string;
@@ -521,7 +521,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
521
521
  image?: string | null | undefined;
522
522
  };
523
523
  };
524
- }>)[];
524
+ }>>[];
525
525
  metadata: {
526
526
  openapi: {
527
527
  operationId: string;
@@ -603,7 +603,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
603
603
  }>;
604
604
  listPasskeys: import("better-call").StrictEndpoint<"/passkey/list-user-passkeys", {
605
605
  method: "GET";
606
- use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
606
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
607
607
  session: {
608
608
  session: Record<string, any> & {
609
609
  id: string;
@@ -625,7 +625,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
625
625
  image?: string | null | undefined;
626
626
  };
627
627
  };
628
- }>)[];
628
+ }>>[];
629
629
  metadata: {
630
630
  openapi: {
631
631
  description: string;
@@ -654,7 +654,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
654
654
  body: import("zod").ZodObject<{
655
655
  id: import("zod").ZodString;
656
656
  }, import("zod/v4/core").$strip>;
657
- use: (((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
657
+ use: (import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
658
658
  session: {
659
659
  session: Record<string, any> & {
660
660
  id: string;
@@ -676,9 +676,9 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
676
676
  image?: string | null | undefined;
677
677
  };
678
678
  };
679
- }>) | ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
679
+ }>> | import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
680
680
  verifiedResource: {};
681
- }>))[];
681
+ }>>)[];
682
682
  metadata: {
683
683
  openapi: {
684
684
  description: string;
@@ -712,7 +712,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
712
712
  id: import("zod").ZodString;
713
713
  name: import("zod").ZodString;
714
714
  }, import("zod/v4/core").$strip>;
715
- use: (((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
715
+ use: (import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
716
716
  session: {
717
717
  session: Record<string, any> & {
718
718
  id: string;
@@ -734,9 +734,9 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
734
734
  image?: string | null | undefined;
735
735
  };
736
736
  };
737
- }>) | ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
737
+ }>> | import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
738
738
  verifiedResource: {};
739
- }>))[];
739
+ }>>)[];
740
740
  metadata: {
741
741
  openapi: {
742
742
  description: string;
package/dist/index.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as Passkey, c as PasskeyOptions, i as getAuthenticatorName, n as PASSKEY_ERROR_CODES, r as commonAuthenticatorNames, t as passkey } from "./index-BdMna3V8.mjs";
1
+ import { a as Passkey, c as PasskeyOptions, i as getAuthenticatorName, n as PASSKEY_ERROR_CODES, r as commonAuthenticatorNames, t as passkey } from "./index-BRe4Cq0y.mjs";
2
2
  export { PASSKEY_ERROR_CODES, type Passkey, type PasskeyOptions, commonAuthenticatorNames, getAuthenticatorName, passkey };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as PASSKEY_ERROR_CODES, t as PACKAGE_VERSION } from "./version-BE4wdr64.mjs";
1
+ import { n as PASSKEY_ERROR_CODES, t as PACKAGE_VERSION } from "./version-D6MIufx8.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";
@@ -18,6 +18,6 @@ const PASSKEY_ERROR_CODES = defineErrorCodes({
18
18
  });
19
19
  //#endregion
20
20
  //#region src/version.ts
21
- const PACKAGE_VERSION = "1.6.26";
21
+ const PACKAGE_VERSION = "1.6.27";
22
22
  //#endregion
23
23
  export { PASSKEY_ERROR_CODES as n, PACKAGE_VERSION as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-auth/passkey",
3
- "version": "1.6.26",
3
+ "version": "1.6.27",
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.22.7",
58
- "@better-auth/core": "1.6.26",
59
- "better-auth": "1.6.26"
58
+ "@better-auth/core": "1.6.27",
59
+ "better-auth": "1.6.27"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "@better-auth/utils": "0.4.2",
63
63
  "@better-fetch/fetch": "1.3.1",
64
- "better-call": "1.3.7",
64
+ "better-call": "1.4.0",
65
65
  "nanostores": "^1.0.1",
66
- "@better-auth/core": "^1.6.26",
67
- "better-auth": "^1.6.26"
66
+ "@better-auth/core": "^1.6.27",
67
+ "better-auth": "^1.6.27"
68
68
  },
69
69
  "scripts": {
70
70
  "build": "tsdown",