@better-auth/passkey 1.7.0-rc.0 → 1.7.0-rc.2
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-BKGmXRsk.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-Dv6dkT5m.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,19 +276,19 @@ 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;
|
|
296
290
|
description: string;
|
|
297
|
-
parameters:
|
|
291
|
+
parameters: import("better-call").OpenAPIParameter[];
|
|
298
292
|
responses: {
|
|
299
293
|
200: {
|
|
300
294
|
description: string;
|
|
@@ -396,8 +390,8 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
396
390
|
};
|
|
397
391
|
};
|
|
398
392
|
};
|
|
399
|
-
},
|
|
400
|
-
generatePasskeyAuthenticationOptions:
|
|
393
|
+
}, import("@simplewebauthn/server").PublicKeyCredentialCreationOptionsJSON>;
|
|
394
|
+
generatePasskeyAuthenticationOptions: import("better-call").StrictEndpoint<"/passkey/generate-authenticate-options", {
|
|
401
395
|
method: "GET";
|
|
402
396
|
metadata: {
|
|
403
397
|
openapi: {
|
|
@@ -490,14 +484,14 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
490
484
|
};
|
|
491
485
|
};
|
|
492
486
|
};
|
|
493
|
-
},
|
|
494
|
-
verifyPasskeyRegistration:
|
|
487
|
+
}, import("@simplewebauthn/server").PublicKeyCredentialRequestOptionsJSON>;
|
|
488
|
+
verifyPasskeyRegistration: import("better-call").StrictEndpoint<"/passkey/verify-registration", {
|
|
495
489
|
method: "POST";
|
|
496
|
-
body: zod.ZodObject<{
|
|
497
|
-
response: zod.ZodAny;
|
|
498
|
-
name: zod.ZodOptional<zod.ZodString>;
|
|
499
|
-
},
|
|
500
|
-
use: ((inputContext:
|
|
490
|
+
body: import("zod").ZodObject<{
|
|
491
|
+
response: import("zod").ZodAny;
|
|
492
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
493
|
+
}, import("zod/v4/core").$strip>;
|
|
494
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
501
495
|
session: {
|
|
502
496
|
session: Record<string, any> & {
|
|
503
497
|
id: string;
|
|
@@ -542,11 +536,11 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
542
536
|
};
|
|
543
537
|
};
|
|
544
538
|
}, Passkey>;
|
|
545
|
-
verifyPasskeyAuthentication:
|
|
539
|
+
verifyPasskeyAuthentication: import("better-call").StrictEndpoint<"/passkey/verify-authentication", {
|
|
546
540
|
method: "POST";
|
|
547
|
-
body: zod.ZodObject<{
|
|
548
|
-
response: zod.ZodRecord<zod.ZodAny, zod.ZodAny>;
|
|
549
|
-
},
|
|
541
|
+
body: import("zod").ZodObject<{
|
|
542
|
+
response: import("zod").ZodRecord<import("zod").ZodAny, import("zod").ZodAny>;
|
|
543
|
+
}, import("zod/v4/core").$strip>;
|
|
550
544
|
metadata: {
|
|
551
545
|
openapi: {
|
|
552
546
|
operationId: string;
|
|
@@ -574,7 +568,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
574
568
|
};
|
|
575
569
|
$Infer: {
|
|
576
570
|
body: {
|
|
577
|
-
response:
|
|
571
|
+
response: import("@simplewebauthn/server").AuthenticationResponseJSON;
|
|
578
572
|
};
|
|
579
573
|
};
|
|
580
574
|
};
|
|
@@ -599,9 +593,9 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
599
593
|
image?: string | null | undefined;
|
|
600
594
|
};
|
|
601
595
|
}>;
|
|
602
|
-
listPasskeys:
|
|
596
|
+
listPasskeys: import("better-call").StrictEndpoint<"/passkey/list-user-passkeys", {
|
|
603
597
|
method: "GET";
|
|
604
|
-
use: ((inputContext:
|
|
598
|
+
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
605
599
|
session: {
|
|
606
600
|
session: Record<string, any> & {
|
|
607
601
|
id: string;
|
|
@@ -647,12 +641,12 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
647
641
|
};
|
|
648
642
|
};
|
|
649
643
|
}, Passkey[]>;
|
|
650
|
-
deletePasskey:
|
|
644
|
+
deletePasskey: import("better-call").StrictEndpoint<"/passkey/delete-passkey", {
|
|
651
645
|
method: "POST";
|
|
652
|
-
body: zod.ZodObject<{
|
|
653
|
-
id: zod.ZodString;
|
|
654
|
-
},
|
|
655
|
-
use: (((inputContext:
|
|
646
|
+
body: import("zod").ZodObject<{
|
|
647
|
+
id: import("zod").ZodString;
|
|
648
|
+
}, import("zod/v4/core").$strip>;
|
|
649
|
+
use: (((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
656
650
|
session: {
|
|
657
651
|
session: Record<string, any> & {
|
|
658
652
|
id: string;
|
|
@@ -674,7 +668,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
674
668
|
image?: string | null | undefined;
|
|
675
669
|
};
|
|
676
670
|
};
|
|
677
|
-
}>) | ((inputContext:
|
|
671
|
+
}>) | ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
678
672
|
verifiedResource: {};
|
|
679
673
|
}>))[];
|
|
680
674
|
metadata: {
|
|
@@ -704,13 +698,13 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
704
698
|
}, {
|
|
705
699
|
status: boolean;
|
|
706
700
|
}>;
|
|
707
|
-
updatePasskey:
|
|
701
|
+
updatePasskey: import("better-call").StrictEndpoint<"/passkey/update-passkey", {
|
|
708
702
|
method: "POST";
|
|
709
|
-
body: zod.ZodObject<{
|
|
710
|
-
id: zod.ZodString;
|
|
711
|
-
name: zod.ZodString;
|
|
712
|
-
},
|
|
713
|
-
use: (((inputContext:
|
|
703
|
+
body: import("zod").ZodObject<{
|
|
704
|
+
id: import("zod").ZodString;
|
|
705
|
+
name: import("zod").ZodString;
|
|
706
|
+
}, import("zod/v4/core").$strip>;
|
|
707
|
+
use: (((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
714
708
|
session: {
|
|
715
709
|
session: Record<string, any> & {
|
|
716
710
|
id: string;
|
|
@@ -732,7 +726,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
732
726
|
image?: string | null | undefined;
|
|
733
727
|
};
|
|
734
728
|
};
|
|
735
|
-
}>) | ((inputContext:
|
|
729
|
+
}>) | ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
736
730
|
verifiedResource: {};
|
|
737
731
|
}>))[];
|
|
738
732
|
metadata: {
|
|
@@ -815,20 +809,20 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
815
809
|
};
|
|
816
810
|
};
|
|
817
811
|
$ERROR_CODES: {
|
|
818
|
-
CHALLENGE_NOT_FOUND:
|
|
819
|
-
YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY:
|
|
820
|
-
FAILED_TO_VERIFY_REGISTRATION:
|
|
821
|
-
PASSKEY_NOT_FOUND:
|
|
822
|
-
AUTHENTICATION_FAILED:
|
|
823
|
-
UNABLE_TO_CREATE_SESSION:
|
|
824
|
-
FAILED_TO_UPDATE_PASSKEY:
|
|
825
|
-
PREVIOUSLY_REGISTERED:
|
|
826
|
-
REGISTRATION_CANCELLED:
|
|
827
|
-
AUTH_CANCELLED:
|
|
828
|
-
UNKNOWN_ERROR:
|
|
829
|
-
SESSION_REQUIRED:
|
|
830
|
-
RESOLVE_USER_REQUIRED:
|
|
831
|
-
RESOLVED_USER_INVALID:
|
|
812
|
+
CHALLENGE_NOT_FOUND: import("better-auth").RawError<"CHALLENGE_NOT_FOUND">;
|
|
813
|
+
YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: import("better-auth").RawError<"YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY">;
|
|
814
|
+
FAILED_TO_VERIFY_REGISTRATION: import("better-auth").RawError<"FAILED_TO_VERIFY_REGISTRATION">;
|
|
815
|
+
PASSKEY_NOT_FOUND: import("better-auth").RawError<"PASSKEY_NOT_FOUND">;
|
|
816
|
+
AUTHENTICATION_FAILED: import("better-auth").RawError<"AUTHENTICATION_FAILED">;
|
|
817
|
+
UNABLE_TO_CREATE_SESSION: import("better-auth").RawError<"UNABLE_TO_CREATE_SESSION">;
|
|
818
|
+
FAILED_TO_UPDATE_PASSKEY: import("better-auth").RawError<"FAILED_TO_UPDATE_PASSKEY">;
|
|
819
|
+
PREVIOUSLY_REGISTERED: import("better-auth").RawError<"PREVIOUSLY_REGISTERED">;
|
|
820
|
+
REGISTRATION_CANCELLED: import("better-auth").RawError<"REGISTRATION_CANCELLED">;
|
|
821
|
+
AUTH_CANCELLED: import("better-auth").RawError<"AUTH_CANCELLED">;
|
|
822
|
+
UNKNOWN_ERROR: import("better-auth").RawError<"UNKNOWN_ERROR">;
|
|
823
|
+
SESSION_REQUIRED: import("better-auth").RawError<"SESSION_REQUIRED">;
|
|
824
|
+
RESOLVE_USER_REQUIRED: import("better-auth").RawError<"RESOLVE_USER_REQUIRED">;
|
|
825
|
+
RESOLVED_USER_INVALID: import("better-auth").RawError<"RESOLVED_USER_INVALID">;
|
|
832
826
|
};
|
|
833
827
|
options: PasskeyOptions | undefined;
|
|
834
828
|
};
|
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-BKGmXRsk.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-Dv6dkT5m.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.7.0-rc.
|
|
3
|
+
"version": "1.7.0-rc.2",
|
|
4
4
|
"description": "Passkey plugin for Better Auth",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -55,17 +55,17 @@
|
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"nanostores": "^1.3.0",
|
|
58
|
-
"tsdown": "0.
|
|
59
|
-
"@better-auth/core": "1.7.0-rc.
|
|
60
|
-
"better-auth": "1.7.0-rc.
|
|
58
|
+
"tsdown": "0.22.7",
|
|
59
|
+
"@better-auth/core": "1.7.0-rc.2",
|
|
60
|
+
"better-auth": "1.7.0-rc.2"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"@better-auth/utils": "0.4.2",
|
|
64
64
|
"@better-fetch/fetch": "1.3.1",
|
|
65
65
|
"better-call": "1.3.7",
|
|
66
66
|
"nanostores": "^1.0.1",
|
|
67
|
-
"@better-auth/core": "^1.7.0-rc.
|
|
68
|
-
"better-auth": "^1.7.0-rc.
|
|
67
|
+
"@better-auth/core": "^1.7.0-rc.2",
|
|
68
|
+
"better-auth": "^1.7.0-rc.2"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"build": "tsdown",
|