@better-auth/passkey 1.6.22 → 1.6.24
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,19 +1,12 @@
|
|
|
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-
|
|
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";
|
|
2
2
|
import { AuthenticationExtensionsClientInputs, AuthenticationExtensionsClientOutputs, AuthenticationResponseJSON, RegistrationResponseJSON } from "@simplewebauthn/server";
|
|
3
|
-
import * as better_auth_client0 from "better-auth/client";
|
|
4
|
-
import * as nanostores from "nanostores";
|
|
5
3
|
import { atom } from "nanostores";
|
|
6
|
-
import * as better_auth0 from "better-auth";
|
|
7
4
|
import { ClientFetchOption, ClientStore } from "@better-auth/core";
|
|
8
5
|
import { BetterFetch } from "@better-fetch/fetch";
|
|
9
6
|
import { Session, User } from "better-auth/types";
|
|
10
|
-
export * from "@simplewebauthn/server";
|
|
11
|
-
|
|
7
|
+
export type * from "@simplewebauthn/server";
|
|
12
8
|
//#region src/client.d.ts
|
|
13
|
-
declare const getPasskeyActions: ($fetch: BetterFetch, {
|
|
14
|
-
$listPasskeys,
|
|
15
|
-
$store
|
|
16
|
-
}: {
|
|
9
|
+
declare const getPasskeyActions: ($fetch: BetterFetch, { $listPasskeys, $store }: {
|
|
17
10
|
$listPasskeys: ReturnType<typeof atom<any>>;
|
|
18
11
|
$store: ClientStore;
|
|
19
12
|
}) => {
|
|
@@ -265,8 +258,8 @@ declare const passkeyClient: () => {
|
|
|
265
258
|
};
|
|
266
259
|
};
|
|
267
260
|
getAtoms($fetch: BetterFetch): {
|
|
268
|
-
listPasskeys:
|
|
269
|
-
$listPasskeys: nanostores.PreinitializedWritableAtom<any> & object;
|
|
261
|
+
listPasskeys: import("better-auth/client").AuthQueryAtom<Passkey[]>;
|
|
262
|
+
$listPasskeys: import("nanostores").PreinitializedWritableAtom<any> & object;
|
|
270
263
|
};
|
|
271
264
|
pathMethods: {
|
|
272
265
|
"/passkey/register": "POST";
|
|
@@ -280,21 +273,21 @@ declare const passkeyClient: () => {
|
|
|
280
273
|
signal: "$sessionSignal";
|
|
281
274
|
})[];
|
|
282
275
|
$ERROR_CODES: {
|
|
283
|
-
CHALLENGE_NOT_FOUND:
|
|
284
|
-
YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY:
|
|
285
|
-
FAILED_TO_VERIFY_REGISTRATION:
|
|
286
|
-
PASSKEY_NOT_FOUND:
|
|
287
|
-
AUTHENTICATION_FAILED:
|
|
288
|
-
UNABLE_TO_CREATE_SESSION:
|
|
289
|
-
FAILED_TO_UPDATE_PASSKEY:
|
|
290
|
-
PREVIOUSLY_REGISTERED:
|
|
291
|
-
REGISTRATION_CANCELLED:
|
|
292
|
-
AUTH_CANCELLED:
|
|
293
|
-
UNKNOWN_ERROR:
|
|
294
|
-
SESSION_REQUIRED:
|
|
295
|
-
RESOLVE_USER_REQUIRED:
|
|
296
|
-
RESOLVED_USER_INVALID:
|
|
276
|
+
CHALLENGE_NOT_FOUND: import("better-auth").RawError<"CHALLENGE_NOT_FOUND">;
|
|
277
|
+
YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: import("better-auth").RawError<"YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY">;
|
|
278
|
+
FAILED_TO_VERIFY_REGISTRATION: import("better-auth").RawError<"FAILED_TO_VERIFY_REGISTRATION">;
|
|
279
|
+
PASSKEY_NOT_FOUND: import("better-auth").RawError<"PASSKEY_NOT_FOUND">;
|
|
280
|
+
AUTHENTICATION_FAILED: import("better-auth").RawError<"AUTHENTICATION_FAILED">;
|
|
281
|
+
UNABLE_TO_CREATE_SESSION: import("better-auth").RawError<"UNABLE_TO_CREATE_SESSION">;
|
|
282
|
+
FAILED_TO_UPDATE_PASSKEY: import("better-auth").RawError<"FAILED_TO_UPDATE_PASSKEY">;
|
|
283
|
+
PREVIOUSLY_REGISTERED: import("better-auth").RawError<"PREVIOUSLY_REGISTERED">;
|
|
284
|
+
REGISTRATION_CANCELLED: import("better-auth").RawError<"REGISTRATION_CANCELLED">;
|
|
285
|
+
AUTH_CANCELLED: import("better-auth").RawError<"AUTH_CANCELLED">;
|
|
286
|
+
UNKNOWN_ERROR: import("better-auth").RawError<"UNKNOWN_ERROR">;
|
|
287
|
+
SESSION_REQUIRED: import("better-auth").RawError<"SESSION_REQUIRED">;
|
|
288
|
+
RESOLVE_USER_REQUIRED: import("better-auth").RawError<"RESOLVE_USER_REQUIRED">;
|
|
289
|
+
RESOLVED_USER_INVALID: import("better-auth").RawError<"RESOLVED_USER_INVALID">;
|
|
297
290
|
};
|
|
298
291
|
};
|
|
299
292
|
//#endregion
|
|
300
|
-
export { PASSKEY_ERROR_CODES, Passkey, PasskeyAuthenticationOptions, PasskeyExtensionsResolver, PasskeyOptions, PasskeyRegistrationOptions, PasskeyRegistrationUser, WebAuthnChallengeValue, getPasskeyActions, passkeyClient };
|
|
293
|
+
export { PASSKEY_ERROR_CODES, type Passkey, type PasskeyAuthenticationOptions, type PasskeyExtensionsResolver, type PasskeyOptions, type PasskeyRegistrationOptions, type PasskeyRegistrationUser, type WebAuthnChallengeValue, getPasskeyActions, passkeyClient };
|
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-Bicid6dO.mjs";
|
|
2
2
|
import { WebAuthnError, startAuthentication, startRegistration } from "@simplewebauthn/browser";
|
|
3
3
|
import { useAuthQuery } from "better-auth/client";
|
|
4
4
|
import { atom } from "nanostores";
|
|
@@ -152,8 +152,19 @@ const getPasskeyActions = ($fetch, { $listPasskeys, $store }) => {
|
|
|
152
152
|
}
|
|
153
153
|
};
|
|
154
154
|
return {
|
|
155
|
-
signIn: {
|
|
156
|
-
|
|
155
|
+
signIn: {
|
|
156
|
+
/**
|
|
157
|
+
* Sign in with a registered passkey
|
|
158
|
+
*/
|
|
159
|
+
passkey: signInPasskey },
|
|
160
|
+
passkey: {
|
|
161
|
+
/**
|
|
162
|
+
* Add a passkey to the user account
|
|
163
|
+
*/
|
|
164
|
+
addPasskey: registerPasskey },
|
|
165
|
+
/**
|
|
166
|
+
* Inferred Internal Types
|
|
167
|
+
*/
|
|
157
168
|
$Infer: {}
|
|
158
169
|
};
|
|
159
170
|
};
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import * as _simplewebauthn_server0 from "@simplewebauthn/server";
|
|
2
1
|
import { AuthenticationExtensionsClientInputs, AuthenticationResponseJSON, CredentialDeviceType, RegistrationResponseJSON, VerifiedAuthenticationResponse, VerifiedRegistrationResponse } from "@simplewebauthn/server";
|
|
3
|
-
import * as zod from "zod";
|
|
4
|
-
import * as better_auth0 from "better-auth";
|
|
5
2
|
import { GenericEndpointContext } from "@better-auth/core";
|
|
6
3
|
import { InferOptionSchema } from "better-auth/types";
|
|
7
|
-
import * as better_call0 from "better-call";
|
|
8
|
-
import * as zod_v4_core0 from "zod/v4/core";
|
|
9
|
-
|
|
10
4
|
//#region src/schema.d.ts
|
|
11
5
|
declare const schema: {
|
|
12
6
|
passkey: {
|
|
@@ -229,20 +223,20 @@ declare const getAuthenticatorName: (aaguid: string | null | undefined) => strin
|
|
|
229
223
|
//#endregion
|
|
230
224
|
//#region src/error-codes.d.ts
|
|
231
225
|
declare const PASSKEY_ERROR_CODES: {
|
|
232
|
-
CHALLENGE_NOT_FOUND:
|
|
233
|
-
YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY:
|
|
234
|
-
FAILED_TO_VERIFY_REGISTRATION:
|
|
235
|
-
PASSKEY_NOT_FOUND:
|
|
236
|
-
AUTHENTICATION_FAILED:
|
|
237
|
-
UNABLE_TO_CREATE_SESSION:
|
|
238
|
-
FAILED_TO_UPDATE_PASSKEY:
|
|
239
|
-
PREVIOUSLY_REGISTERED:
|
|
240
|
-
REGISTRATION_CANCELLED:
|
|
241
|
-
AUTH_CANCELLED:
|
|
242
|
-
UNKNOWN_ERROR:
|
|
243
|
-
SESSION_REQUIRED:
|
|
244
|
-
RESOLVE_USER_REQUIRED:
|
|
245
|
-
RESOLVED_USER_INVALID:
|
|
226
|
+
CHALLENGE_NOT_FOUND: import("better-auth").RawError<"CHALLENGE_NOT_FOUND">;
|
|
227
|
+
YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: import("better-auth").RawError<"YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY">;
|
|
228
|
+
FAILED_TO_VERIFY_REGISTRATION: import("better-auth").RawError<"FAILED_TO_VERIFY_REGISTRATION">;
|
|
229
|
+
PASSKEY_NOT_FOUND: import("better-auth").RawError<"PASSKEY_NOT_FOUND">;
|
|
230
|
+
AUTHENTICATION_FAILED: import("better-auth").RawError<"AUTHENTICATION_FAILED">;
|
|
231
|
+
UNABLE_TO_CREATE_SESSION: import("better-auth").RawError<"UNABLE_TO_CREATE_SESSION">;
|
|
232
|
+
FAILED_TO_UPDATE_PASSKEY: import("better-auth").RawError<"FAILED_TO_UPDATE_PASSKEY">;
|
|
233
|
+
PREVIOUSLY_REGISTERED: import("better-auth").RawError<"PREVIOUSLY_REGISTERED">;
|
|
234
|
+
REGISTRATION_CANCELLED: import("better-auth").RawError<"REGISTRATION_CANCELLED">;
|
|
235
|
+
AUTH_CANCELLED: import("better-auth").RawError<"AUTH_CANCELLED">;
|
|
236
|
+
UNKNOWN_ERROR: import("better-auth").RawError<"UNKNOWN_ERROR">;
|
|
237
|
+
SESSION_REQUIRED: import("better-auth").RawError<"SESSION_REQUIRED">;
|
|
238
|
+
RESOLVE_USER_REQUIRED: import("better-auth").RawError<"RESOLVE_USER_REQUIRED">;
|
|
239
|
+
RESOLVED_USER_INVALID: import("better-auth").RawError<"RESOLVED_USER_INVALID">;
|
|
246
240
|
};
|
|
247
241
|
//#endregion
|
|
248
242
|
//#region src/index.d.ts
|
|
@@ -257,9 +251,9 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
257
251
|
id: "passkey";
|
|
258
252
|
version: string;
|
|
259
253
|
endpoints: {
|
|
260
|
-
generatePasskeyRegistrationOptions:
|
|
254
|
+
generatePasskeyRegistrationOptions: import("better-call").StrictEndpoint<"/passkey/generate-register-options", {
|
|
261
255
|
method: "GET";
|
|
262
|
-
use: ((inputContext:
|
|
256
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
263
257
|
session: {
|
|
264
258
|
session: Record<string, any> & {
|
|
265
259
|
id: string;
|
|
@@ -282,14 +276,14 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
282
276
|
};
|
|
283
277
|
};
|
|
284
278
|
}>)[];
|
|
285
|
-
query: zod.ZodOptional<zod.ZodObject<{
|
|
286
|
-
authenticatorAttachment: zod.ZodOptional<zod.ZodEnum<{
|
|
279
|
+
query: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
280
|
+
authenticatorAttachment: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
287
281
|
platform: "platform";
|
|
288
282
|
"cross-platform": "cross-platform";
|
|
289
283
|
}>>;
|
|
290
|
-
name: zod.ZodOptional<zod.ZodString>;
|
|
291
|
-
context: zod.ZodOptional<zod.ZodString>;
|
|
292
|
-
},
|
|
284
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
285
|
+
context: import("zod").ZodOptional<import("zod").ZodString>;
|
|
286
|
+
}, import("zod/v4/core").$strip>>;
|
|
293
287
|
metadata: {
|
|
294
288
|
openapi: {
|
|
295
289
|
operationId: string;
|
|
@@ -404,8 +398,8 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
404
398
|
};
|
|
405
399
|
};
|
|
406
400
|
};
|
|
407
|
-
},
|
|
408
|
-
generatePasskeyAuthenticationOptions:
|
|
401
|
+
}, import("@simplewebauthn/server").PublicKeyCredentialCreationOptionsJSON>;
|
|
402
|
+
generatePasskeyAuthenticationOptions: import("better-call").StrictEndpoint<"/passkey/generate-authenticate-options", {
|
|
409
403
|
method: "GET";
|
|
410
404
|
metadata: {
|
|
411
405
|
openapi: {
|
|
@@ -498,14 +492,14 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
498
492
|
};
|
|
499
493
|
};
|
|
500
494
|
};
|
|
501
|
-
},
|
|
502
|
-
verifyPasskeyRegistration:
|
|
495
|
+
}, import("@simplewebauthn/server").PublicKeyCredentialRequestOptionsJSON>;
|
|
496
|
+
verifyPasskeyRegistration: import("better-call").StrictEndpoint<"/passkey/verify-registration", {
|
|
503
497
|
method: "POST";
|
|
504
|
-
body: zod.ZodObject<{
|
|
505
|
-
response: zod.ZodAny;
|
|
506
|
-
name: zod.ZodOptional<zod.ZodString>;
|
|
507
|
-
},
|
|
508
|
-
use: ((inputContext:
|
|
498
|
+
body: import("zod").ZodObject<{
|
|
499
|
+
response: import("zod").ZodAny;
|
|
500
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
501
|
+
}, import("zod/v4/core").$strip>;
|
|
502
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
509
503
|
session: {
|
|
510
504
|
session: Record<string, any> & {
|
|
511
505
|
id: string;
|
|
@@ -550,11 +544,11 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
550
544
|
};
|
|
551
545
|
};
|
|
552
546
|
}, Passkey>;
|
|
553
|
-
verifyPasskeyAuthentication:
|
|
547
|
+
verifyPasskeyAuthentication: import("better-call").StrictEndpoint<"/passkey/verify-authentication", {
|
|
554
548
|
method: "POST";
|
|
555
|
-
body: zod.ZodObject<{
|
|
556
|
-
response: zod.ZodRecord<zod.ZodAny, zod.ZodAny>;
|
|
557
|
-
},
|
|
549
|
+
body: import("zod").ZodObject<{
|
|
550
|
+
response: import("zod").ZodRecord<import("zod").ZodAny, import("zod").ZodAny>;
|
|
551
|
+
}, import("zod/v4/core").$strip>;
|
|
558
552
|
metadata: {
|
|
559
553
|
openapi: {
|
|
560
554
|
operationId: string;
|
|
@@ -582,7 +576,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
582
576
|
};
|
|
583
577
|
$Infer: {
|
|
584
578
|
body: {
|
|
585
|
-
response:
|
|
579
|
+
response: import("@simplewebauthn/server").AuthenticationResponseJSON;
|
|
586
580
|
};
|
|
587
581
|
};
|
|
588
582
|
};
|
|
@@ -607,9 +601,9 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
607
601
|
image?: string | null | undefined;
|
|
608
602
|
};
|
|
609
603
|
}>;
|
|
610
|
-
listPasskeys:
|
|
604
|
+
listPasskeys: import("better-call").StrictEndpoint<"/passkey/list-user-passkeys", {
|
|
611
605
|
method: "GET";
|
|
612
|
-
use: ((inputContext:
|
|
606
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
613
607
|
session: {
|
|
614
608
|
session: Record<string, any> & {
|
|
615
609
|
id: string;
|
|
@@ -655,12 +649,12 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
655
649
|
};
|
|
656
650
|
};
|
|
657
651
|
}, Passkey[]>;
|
|
658
|
-
deletePasskey:
|
|
652
|
+
deletePasskey: import("better-call").StrictEndpoint<"/passkey/delete-passkey", {
|
|
659
653
|
method: "POST";
|
|
660
|
-
body: zod.ZodObject<{
|
|
661
|
-
id: zod.ZodString;
|
|
662
|
-
},
|
|
663
|
-
use: (((inputContext:
|
|
654
|
+
body: import("zod").ZodObject<{
|
|
655
|
+
id: import("zod").ZodString;
|
|
656
|
+
}, import("zod/v4/core").$strip>;
|
|
657
|
+
use: (((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
664
658
|
session: {
|
|
665
659
|
session: Record<string, any> & {
|
|
666
660
|
id: string;
|
|
@@ -682,7 +676,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
682
676
|
image?: string | null | undefined;
|
|
683
677
|
};
|
|
684
678
|
};
|
|
685
|
-
}>) | ((inputContext:
|
|
679
|
+
}>) | ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
686
680
|
verifiedResource: {};
|
|
687
681
|
}>))[];
|
|
688
682
|
metadata: {
|
|
@@ -712,13 +706,13 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
712
706
|
}, {
|
|
713
707
|
status: boolean;
|
|
714
708
|
}>;
|
|
715
|
-
updatePasskey:
|
|
709
|
+
updatePasskey: import("better-call").StrictEndpoint<"/passkey/update-passkey", {
|
|
716
710
|
method: "POST";
|
|
717
|
-
body: zod.ZodObject<{
|
|
718
|
-
id: zod.ZodString;
|
|
719
|
-
name: zod.ZodString;
|
|
720
|
-
},
|
|
721
|
-
use: (((inputContext:
|
|
711
|
+
body: import("zod").ZodObject<{
|
|
712
|
+
id: import("zod").ZodString;
|
|
713
|
+
name: import("zod").ZodString;
|
|
714
|
+
}, import("zod/v4/core").$strip>;
|
|
715
|
+
use: (((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
722
716
|
session: {
|
|
723
717
|
session: Record<string, any> & {
|
|
724
718
|
id: string;
|
|
@@ -740,7 +734,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
740
734
|
image?: string | null | undefined;
|
|
741
735
|
};
|
|
742
736
|
};
|
|
743
|
-
}>) | ((inputContext:
|
|
737
|
+
}>) | ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
744
738
|
verifiedResource: {};
|
|
745
739
|
}>))[];
|
|
746
740
|
metadata: {
|
|
@@ -823,20 +817,20 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
823
817
|
};
|
|
824
818
|
};
|
|
825
819
|
$ERROR_CODES: {
|
|
826
|
-
CHALLENGE_NOT_FOUND:
|
|
827
|
-
YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY:
|
|
828
|
-
FAILED_TO_VERIFY_REGISTRATION:
|
|
829
|
-
PASSKEY_NOT_FOUND:
|
|
830
|
-
AUTHENTICATION_FAILED:
|
|
831
|
-
UNABLE_TO_CREATE_SESSION:
|
|
832
|
-
FAILED_TO_UPDATE_PASSKEY:
|
|
833
|
-
PREVIOUSLY_REGISTERED:
|
|
834
|
-
REGISTRATION_CANCELLED:
|
|
835
|
-
AUTH_CANCELLED:
|
|
836
|
-
UNKNOWN_ERROR:
|
|
837
|
-
SESSION_REQUIRED:
|
|
838
|
-
RESOLVE_USER_REQUIRED:
|
|
839
|
-
RESOLVED_USER_INVALID:
|
|
820
|
+
CHALLENGE_NOT_FOUND: import("better-auth").RawError<"CHALLENGE_NOT_FOUND">;
|
|
821
|
+
YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: import("better-auth").RawError<"YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY">;
|
|
822
|
+
FAILED_TO_VERIFY_REGISTRATION: import("better-auth").RawError<"FAILED_TO_VERIFY_REGISTRATION">;
|
|
823
|
+
PASSKEY_NOT_FOUND: import("better-auth").RawError<"PASSKEY_NOT_FOUND">;
|
|
824
|
+
AUTHENTICATION_FAILED: import("better-auth").RawError<"AUTHENTICATION_FAILED">;
|
|
825
|
+
UNABLE_TO_CREATE_SESSION: import("better-auth").RawError<"UNABLE_TO_CREATE_SESSION">;
|
|
826
|
+
FAILED_TO_UPDATE_PASSKEY: import("better-auth").RawError<"FAILED_TO_UPDATE_PASSKEY">;
|
|
827
|
+
PREVIOUSLY_REGISTERED: import("better-auth").RawError<"PREVIOUSLY_REGISTERED">;
|
|
828
|
+
REGISTRATION_CANCELLED: import("better-auth").RawError<"REGISTRATION_CANCELLED">;
|
|
829
|
+
AUTH_CANCELLED: import("better-auth").RawError<"AUTH_CANCELLED">;
|
|
830
|
+
UNKNOWN_ERROR: import("better-auth").RawError<"UNKNOWN_ERROR">;
|
|
831
|
+
SESSION_REQUIRED: import("better-auth").RawError<"SESSION_REQUIRED">;
|
|
832
|
+
RESOLVE_USER_REQUIRED: import("better-auth").RawError<"RESOLVE_USER_REQUIRED">;
|
|
833
|
+
RESOLVED_USER_INVALID: import("better-auth").RawError<"RESOLVED_USER_INVALID">;
|
|
840
834
|
};
|
|
841
835
|
options: PasskeyOptions | undefined;
|
|
842
836
|
};
|
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-
|
|
2
|
-
export { PASSKEY_ERROR_CODES, Passkey, PasskeyOptions, commonAuthenticatorNames, getAuthenticatorName, passkey };
|
|
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";
|
|
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-
|
|
1
|
+
import { n as PASSKEY_ERROR_CODES, t as PACKAGE_VERSION } from "./version-Bicid6dO.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";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/passkey",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.24",
|
|
4
4
|
"description": "Passkey plugin for Better Auth",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,17 +54,17 @@
|
|
|
54
54
|
"zod": "^4.3.6"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"tsdown": "0.
|
|
58
|
-
"@better-auth/core": "1.6.
|
|
59
|
-
"better-auth": "1.6.
|
|
57
|
+
"tsdown": "0.22.7",
|
|
58
|
+
"@better-auth/core": "1.6.24",
|
|
59
|
+
"better-auth": "1.6.24"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"@better-auth/utils": "0.4.2",
|
|
63
63
|
"@better-fetch/fetch": "1.3.1",
|
|
64
64
|
"better-call": "1.3.7",
|
|
65
65
|
"nanostores": "^1.0.1",
|
|
66
|
-
"@better-auth/core": "^1.6.
|
|
67
|
-
"better-auth": "^1.6.
|
|
66
|
+
"@better-auth/core": "^1.6.24",
|
|
67
|
+
"better-auth": "^1.6.24"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"build": "tsdown",
|