@better-auth/passkey 1.4.0-beta.20 → 1.4.0-beta.21

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 { n as Passkey, t as passkey } from "./index-d6AZEx5_.mjs";
1
+ import { n as Passkey, t as passkey } from "./index-scVTCUbk.mjs";
2
2
  import * as nanostores0 from "nanostores";
3
3
  import { atom } from "nanostores";
4
4
  import * as better_auth0 from "better-auth";
@@ -1,7 +1,7 @@
1
1
  import * as _simplewebauthn_server0 from "@simplewebauthn/server";
2
2
  import { AuthenticationResponseJSON, CredentialDeviceType, PublicKeyCredentialCreationOptionsJSON } from "@simplewebauthn/server";
3
3
  import * as better_call0 from "better-call";
4
- import { z } from "zod";
4
+ import * as z from "zod";
5
5
  import { InferOptionSchema } from "better-auth/types";
6
6
 
7
7
  //#region src/schema.d.ts
@@ -157,6 +157,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
157
157
  metadata: {
158
158
  client: boolean;
159
159
  openapi: {
160
+ operationId: string;
160
161
  description: string;
161
162
  responses: {
162
163
  200: {
@@ -278,6 +279,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
278
279
  method: "POST";
279
280
  metadata: {
280
281
  openapi: {
282
+ operationId: string;
281
283
  description: string;
282
284
  responses: {
283
285
  200: {
@@ -400,6 +402,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
400
402
  }>)[];
401
403
  metadata: {
402
404
  openapi: {
405
+ operationId: string;
403
406
  description: string;
404
407
  responses: {
405
408
  200: {
@@ -428,6 +431,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
428
431
  }, z.core.$strip>;
429
432
  metadata: {
430
433
  openapi: {
434
+ operationId: string;
431
435
  description: string;
432
436
  responses: {
433
437
  200: {
package/dist/index.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as Passkey, r as PasskeyOptions, t as passkey } from "./index-d6AZEx5_.mjs";
1
+ import { n as Passkey, r as PasskeyOptions, t as passkey } from "./index-scVTCUbk.mjs";
2
2
  export { Passkey, PasskeyOptions, passkey };
package/dist/index.mjs CHANGED
@@ -7,7 +7,7 @@ import { setSessionCookie } from "better-auth/cookies";
7
7
  import { generateRandomString } from "better-auth/crypto";
8
8
  import { mergeSchema } from "better-auth/db";
9
9
  import { APIError } from "better-call";
10
- import { z } from "zod";
10
+ import * as z from "zod";
11
11
  import { defineErrorCodes } from "@better-auth/core/utils";
12
12
 
13
13
  //#region src/error-codes.ts
@@ -105,6 +105,7 @@ const passkey = (options) => {
105
105
  metadata: {
106
106
  client: false,
107
107
  openapi: {
108
+ operationId: "generatePasskeyRegistrationOptions",
108
109
  description: "Generate registration options for a new passkey",
109
110
  responses: { 200: {
110
111
  description: "Success",
@@ -228,6 +229,7 @@ const passkey = (options) => {
228
229
  generatePasskeyAuthenticationOptions: createAuthEndpoint("/passkey/generate-authenticate-options", {
229
230
  method: "POST",
230
231
  metadata: { openapi: {
232
+ operationId: "passkeyGenerateAuthenticateOptions",
231
233
  description: "Generate authentication options for a passkey",
232
234
  responses: { 200: {
233
235
  description: "Success",
@@ -322,6 +324,7 @@ const passkey = (options) => {
322
324
  }),
323
325
  use: [freshSessionMiddleware],
324
326
  metadata: { openapi: {
327
+ operationId: "passkeyVerifyRegistration",
325
328
  description: "Verify registration of a new passkey",
326
329
  responses: {
327
330
  200: {
@@ -380,6 +383,7 @@ const passkey = (options) => {
380
383
  body: z.object({ response: z.record(z.any(), z.any()) }),
381
384
  metadata: {
382
385
  openapi: {
386
+ operationId: "passkeyVerifyAuthentication",
383
387
  description: "Verify authentication of a passkey",
384
388
  responses: { 200: {
385
389
  description: "Success",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-auth/passkey",
3
- "version": "1.4.0-beta.20",
3
+ "version": "1.4.0-beta.21",
4
4
  "type": "module",
5
5
  "description": "Passkey plugin for Better Auth",
6
6
  "main": "dist/index.mjs",
@@ -32,8 +32,8 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "tsdown": "^0.16.0",
35
- "@better-auth/core": "1.4.0-beta.20",
36
- "better-auth": "1.4.0-beta.20"
35
+ "@better-auth/core": "1.4.0-beta.21",
36
+ "better-auth": "1.4.0-beta.21"
37
37
  },
38
38
  "dependencies": {
39
39
  "@simplewebauthn/browser": "^13.1.2",
@@ -45,8 +45,8 @@
45
45
  "@better-fetch/fetch": "1.1.18",
46
46
  "better-call": "1.0.26",
47
47
  "nanostores": "^1.0.1",
48
- "@better-auth/core": "1.4.0-beta.20",
49
- "better-auth": "1.4.0-beta.20"
48
+ "@better-auth/core": "1.4.0-beta.21",
49
+ "better-auth": "1.4.0-beta.21"
50
50
  },
51
51
  "files": [
52
52
  "dist"