@better-auth/passkey 1.6.17 → 1.6.19

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-Ci52vhOT.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-Cyjp_etN.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-Dpvq05Wg.mjs";
1
+ import { n as PASSKEY_ERROR_CODES, t as PACKAGE_VERSION } from "./version-kO19__Rn.mjs";
2
2
  import { WebAuthnError, startAuthentication, startRegistration } from "@simplewebauthn/browser";
3
3
  import { useAuthQuery } from "better-auth/client";
4
4
  import { atom } from "nanostores";
@@ -294,25 +294,18 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
294
294
  openapi: {
295
295
  operationId: string;
296
296
  description: string;
297
+ parameters: {
298
+ name: string;
299
+ in: "query";
300
+ required: false;
301
+ description: string;
302
+ schema: {
303
+ type: "string";
304
+ };
305
+ }[];
297
306
  responses: {
298
307
  200: {
299
308
  description: string;
300
- parameters: {
301
- query: {
302
- authenticatorAttachment: {
303
- description: string;
304
- required: boolean;
305
- };
306
- name: {
307
- description: string;
308
- required: boolean;
309
- };
310
- context: {
311
- description: string;
312
- required: boolean;
313
- };
314
- };
315
- };
316
309
  content: {
317
310
  "application/json": {
318
311
  schema: {
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-Ci52vhOT.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-Cyjp_etN.mjs";
2
2
  export { PASSKEY_ERROR_CODES, Passkey, 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-Dpvq05Wg.mjs";
1
+ import { n as PASSKEY_ERROR_CODES, t as PACKAGE_VERSION } from "./version-kO19__Rn.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";
@@ -60,25 +60,34 @@ const generatePasskeyRegistrationOptions = (opts, { maxAgeInSeconds }) => {
60
60
  metadata: { openapi: {
61
61
  operationId: "generatePasskeyRegistrationOptions",
62
62
  description: "Generate registration options for a new passkey",
63
- responses: { 200: {
64
- description: "Success",
65
- parameters: { query: {
66
- authenticatorAttachment: {
67
- description: `Type of authenticator to use for registration.
63
+ parameters: [
64
+ {
65
+ name: "authenticatorAttachment",
66
+ in: "query",
67
+ required: false,
68
+ description: `Type of authenticator to use for registration.
68
69
  "platform" for device-specific authenticators,
69
70
  "cross-platform" for authenticators that can be used across devices.`,
70
- required: false
71
- },
72
- name: {
73
- description: `Optional custom name for the passkey.
71
+ schema: { type: "string" }
72
+ },
73
+ {
74
+ name: "name",
75
+ in: "query",
76
+ required: false,
77
+ description: `Optional custom name for the passkey.
74
78
  This can help identify the passkey when managing multiple credentials.`,
75
- required: false
76
- },
77
- context: {
78
- description: "Optional context for passkey-first registration flows.",
79
- required: false
80
- }
81
- } },
79
+ schema: { type: "string" }
80
+ },
81
+ {
82
+ name: "context",
83
+ in: "query",
84
+ required: false,
85
+ description: "Optional context for passkey-first registration flows.",
86
+ schema: { type: "string" }
87
+ }
88
+ ],
89
+ responses: { 200: {
90
+ description: "Success",
82
91
  content: { "application/json": { schema: {
83
92
  type: "object",
84
93
  properties: {
@@ -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.17";
21
+ const PACKAGE_VERSION = "1.6.19";
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.17",
3
+ "version": "1.6.19",
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.17",
59
- "better-auth": "1.6.17"
58
+ "@better-auth/core": "1.6.19",
59
+ "better-auth": "1.6.19"
60
60
  },
61
61
  "peerDependencies": {
62
- "@better-auth/utils": "0.4.1",
63
- "@better-fetch/fetch": "1.3.0",
62
+ "@better-auth/utils": "0.4.2",
63
+ "@better-fetch/fetch": "1.3.1",
64
64
  "better-call": "1.3.6",
65
65
  "nanostores": "^1.0.1",
66
- "@better-auth/core": "^1.6.17",
67
- "better-auth": "^1.6.17"
66
+ "@better-auth/core": "^1.6.19",
67
+ "better-auth": "^1.6.19"
68
68
  },
69
69
  "scripts": {
70
70
  "build": "tsdown",