@better-auth/passkey 1.5.0-beta.12 → 1.5.0-beta.13
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 { i as WebAuthnChallengeValue, n as Passkey, r as PasskeyOptions, t as passkey } from "./index-
|
|
1
|
+
import { i as WebAuthnChallengeValue, n as Passkey, r as PasskeyOptions, t as passkey } from "./index-BQvTl2Qj.mjs";
|
|
2
2
|
import * as better_auth_client0 from "better-auth/client";
|
|
3
3
|
import * as nanostores0 from "nanostores";
|
|
4
4
|
import { atom } from "nanostores";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _simplewebauthn_server0 from "@simplewebauthn/server";
|
|
2
2
|
import { CredentialDeviceType } from "@simplewebauthn/server";
|
|
3
3
|
import * as zod0 from "zod";
|
|
4
|
-
import * as
|
|
4
|
+
import * as better_auth6 from "better-auth";
|
|
5
5
|
import { InferOptionSchema } from "better-auth/types";
|
|
6
6
|
import * as better_call0 from "better-call";
|
|
7
7
|
|
|
@@ -169,7 +169,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
169
169
|
"cross-platform": "cross-platform";
|
|
170
170
|
}>>;
|
|
171
171
|
name: zod0.ZodOptional<zod0.ZodString>;
|
|
172
|
-
},
|
|
172
|
+
}, better_auth6.$strip>>;
|
|
173
173
|
metadata: {
|
|
174
174
|
openapi: {
|
|
175
175
|
operationId: string;
|
|
@@ -387,7 +387,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
387
387
|
body: zod0.ZodObject<{
|
|
388
388
|
response: zod0.ZodAny;
|
|
389
389
|
name: zod0.ZodOptional<zod0.ZodString>;
|
|
390
|
-
},
|
|
390
|
+
}, better_auth6.$strip>;
|
|
391
391
|
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
392
392
|
session: {
|
|
393
393
|
session: Record<string, any> & {
|
|
@@ -437,7 +437,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
437
437
|
method: "POST";
|
|
438
438
|
body: zod0.ZodObject<{
|
|
439
439
|
response: zod0.ZodRecord<zod0.ZodAny, zod0.ZodAny>;
|
|
440
|
-
},
|
|
440
|
+
}, better_auth6.$strip>;
|
|
441
441
|
metadata: {
|
|
442
442
|
openapi: {
|
|
443
443
|
operationId: string;
|
|
@@ -533,7 +533,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
533
533
|
method: "POST";
|
|
534
534
|
body: zod0.ZodObject<{
|
|
535
535
|
id: zod0.ZodString;
|
|
536
|
-
},
|
|
536
|
+
}, better_auth6.$strip>;
|
|
537
537
|
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
538
538
|
session: {
|
|
539
539
|
session: Record<string, any> & {
|
|
@@ -589,7 +589,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
589
589
|
body: zod0.ZodObject<{
|
|
590
590
|
id: zod0.ZodString;
|
|
591
591
|
name: zod0.ZodString;
|
|
592
|
-
},
|
|
592
|
+
}, better_auth6.$strip>;
|
|
593
593
|
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
594
594
|
session: {
|
|
595
595
|
session: Record<string, any> & {
|
|
@@ -693,16 +693,16 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
693
693
|
};
|
|
694
694
|
};
|
|
695
695
|
$ERROR_CODES: {
|
|
696
|
-
CHALLENGE_NOT_FOUND:
|
|
697
|
-
YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY:
|
|
698
|
-
FAILED_TO_VERIFY_REGISTRATION:
|
|
699
|
-
PASSKEY_NOT_FOUND:
|
|
700
|
-
AUTHENTICATION_FAILED:
|
|
701
|
-
UNABLE_TO_CREATE_SESSION:
|
|
702
|
-
FAILED_TO_UPDATE_PASSKEY:
|
|
696
|
+
CHALLENGE_NOT_FOUND: better_auth6.RawError<"CHALLENGE_NOT_FOUND">;
|
|
697
|
+
YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: better_auth6.RawError<"YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY">;
|
|
698
|
+
FAILED_TO_VERIFY_REGISTRATION: better_auth6.RawError<"FAILED_TO_VERIFY_REGISTRATION">;
|
|
699
|
+
PASSKEY_NOT_FOUND: better_auth6.RawError<"PASSKEY_NOT_FOUND">;
|
|
700
|
+
AUTHENTICATION_FAILED: better_auth6.RawError<"AUTHENTICATION_FAILED">;
|
|
701
|
+
UNABLE_TO_CREATE_SESSION: better_auth6.RawError<"UNABLE_TO_CREATE_SESSION">;
|
|
702
|
+
FAILED_TO_UPDATE_PASSKEY: better_auth6.RawError<"FAILED_TO_UPDATE_PASSKEY">;
|
|
703
703
|
};
|
|
704
704
|
options: PasskeyOptions | undefined;
|
|
705
705
|
};
|
|
706
706
|
//#endregion
|
|
707
707
|
export { WebAuthnChallengeValue as i, Passkey as n, PasskeyOptions as r, passkey as t };
|
|
708
|
-
//# sourceMappingURL=index-
|
|
708
|
+
//# sourceMappingURL=index-BQvTl2Qj.d.mts.map
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as Passkey, r as PasskeyOptions, t as passkey } from "./index-
|
|
1
|
+
import { n as Passkey, r as PasskeyOptions, t as passkey } from "./index-BQvTl2Qj.mjs";
|
|
2
2
|
export { Passkey, PasskeyOptions, passkey };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/passkey",
|
|
3
|
-
"version": "1.5.0-beta.
|
|
3
|
+
"version": "1.5.0-beta.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Passkey plugin for Better Auth",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"tsdown": "^0.20.1",
|
|
36
|
-
"@better-auth/core": "1.5.0-beta.
|
|
37
|
-
"better-auth": "1.5.0-beta.
|
|
36
|
+
"@better-auth/core": "1.5.0-beta.13",
|
|
37
|
+
"better-auth": "1.5.0-beta.13"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@simplewebauthn/browser": "^13.2.2",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"@better-fetch/fetch": "1.1.21",
|
|
47
47
|
"better-call": "1.2.1",
|
|
48
48
|
"nanostores": "^1.0.1",
|
|
49
|
-
"@better-auth/core": "1.5.0-beta.
|
|
50
|
-
"better-auth": "1.5.0-beta.
|
|
49
|
+
"@better-auth/core": "1.5.0-beta.13",
|
|
50
|
+
"better-auth": "1.5.0-beta.13"
|
|
51
51
|
},
|
|
52
52
|
"files": [
|
|
53
53
|
"dist"
|