@better-auth/passkey 1.7.0-rc.4 → 1.7.0-rc.5
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-
|
|
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-BQx4sm-v.mjs";
|
|
2
2
|
import { AuthenticationExtensionsClientInputs, AuthenticationExtensionsClientOutputs, AuthenticationResponseJSON, RegistrationResponseJSON } from "@simplewebauthn/server";
|
|
3
3
|
import { atom } from "nanostores";
|
|
4
4
|
import { ClientFetchOption, ClientStore } from "@better-auth/core";
|
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-Dov3G6OT.mjs";
|
|
2
2
|
import { WebAuthnError, startAuthentication, startRegistration } from "@simplewebauthn/browser";
|
|
3
3
|
import { useAuthQuery } from "better-auth/client";
|
|
4
4
|
import { atom } from "nanostores";
|
|
@@ -254,7 +254,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
254
254
|
endpoints: {
|
|
255
255
|
generatePasskeyRegistrationOptions: import("better-call").StrictEndpoint<"/passkey/generate-register-options", {
|
|
256
256
|
method: "GET";
|
|
257
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
257
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
258
258
|
session: {
|
|
259
259
|
session: Record<string, any> & {
|
|
260
260
|
id: string;
|
|
@@ -276,7 +276,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
276
276
|
image?: string | null | undefined;
|
|
277
277
|
};
|
|
278
278
|
};
|
|
279
|
-
}
|
|
279
|
+
}>>[];
|
|
280
280
|
query: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
281
281
|
authenticatorAttachment: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
282
282
|
platform: "platform";
|
|
@@ -493,7 +493,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
493
493
|
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
494
494
|
createSession: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
495
495
|
}, import("zod/v4/core").$strip>;
|
|
496
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
496
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
497
497
|
session: {
|
|
498
498
|
session: Record<string, any> & {
|
|
499
499
|
id: string;
|
|
@@ -515,7 +515,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
515
515
|
image?: string | null | undefined;
|
|
516
516
|
};
|
|
517
517
|
};
|
|
518
|
-
}
|
|
518
|
+
}>>[];
|
|
519
519
|
metadata: {
|
|
520
520
|
openapi: {
|
|
521
521
|
operationId: string;
|
|
@@ -610,7 +610,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
610
610
|
}>;
|
|
611
611
|
listPasskeys: import("better-call").StrictEndpoint<"/passkey/list-user-passkeys", {
|
|
612
612
|
method: "GET";
|
|
613
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
613
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
614
614
|
session: {
|
|
615
615
|
session: Record<string, any> & {
|
|
616
616
|
id: string;
|
|
@@ -632,7 +632,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
632
632
|
image?: string | null | undefined;
|
|
633
633
|
};
|
|
634
634
|
};
|
|
635
|
-
}
|
|
635
|
+
}>>[];
|
|
636
636
|
metadata: {
|
|
637
637
|
openapi: {
|
|
638
638
|
description: string;
|
|
@@ -661,7 +661,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
661
661
|
body: import("zod").ZodObject<{
|
|
662
662
|
id: import("zod").ZodString;
|
|
663
663
|
}, import("zod/v4/core").$strip>;
|
|
664
|
-
use: (((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
664
|
+
use: (import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
665
665
|
session: {
|
|
666
666
|
session: Record<string, any> & {
|
|
667
667
|
id: string;
|
|
@@ -683,9 +683,9 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
683
683
|
image?: string | null | undefined;
|
|
684
684
|
};
|
|
685
685
|
};
|
|
686
|
-
}
|
|
686
|
+
}>> | import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
687
687
|
verifiedResource: {};
|
|
688
|
-
}
|
|
688
|
+
}>>)[];
|
|
689
689
|
metadata: {
|
|
690
690
|
openapi: {
|
|
691
691
|
description: string;
|
|
@@ -719,7 +719,7 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
719
719
|
id: import("zod").ZodString;
|
|
720
720
|
name: import("zod").ZodString;
|
|
721
721
|
}, import("zod/v4/core").$strip>;
|
|
722
|
-
use: (((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
722
|
+
use: (import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
723
723
|
session: {
|
|
724
724
|
session: Record<string, any> & {
|
|
725
725
|
id: string;
|
|
@@ -741,9 +741,9 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
741
741
|
image?: string | null | undefined;
|
|
742
742
|
};
|
|
743
743
|
};
|
|
744
|
-
}
|
|
744
|
+
}>> | import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
745
745
|
verifiedResource: {};
|
|
746
|
-
}
|
|
746
|
+
}>>)[];
|
|
747
747
|
metadata: {
|
|
748
748
|
openapi: {
|
|
749
749
|
description: string;
|
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-
|
|
1
|
+
import { a as Passkey, c as PasskeyOptions, i as getAuthenticatorName, n as PASSKEY_ERROR_CODES, r as commonAuthenticatorNames, t as passkey } from "./index-BQx4sm-v.mjs";
|
|
2
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-Dov3G6OT.mjs";
|
|
2
2
|
import { mergeSchema } from "better-auth/db";
|
|
3
3
|
import { createAuthEndpoint } from "@better-auth/core/api";
|
|
4
4
|
import { getCurrentAdapter, runWithTransaction } from "@better-auth/core/context";
|
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.5",
|
|
4
4
|
"description": "Passkey plugin for Better Auth",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -56,16 +56,16 @@
|
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"nanostores": "^1.3.0",
|
|
58
58
|
"tsdown": "0.22.7",
|
|
59
|
-
"@better-auth/core": "1.7.0-rc.
|
|
60
|
-
"better-auth": "1.7.0-rc.
|
|
59
|
+
"@better-auth/core": "1.7.0-rc.5",
|
|
60
|
+
"better-auth": "1.7.0-rc.5"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"@better-auth/utils": "0.4.2",
|
|
64
64
|
"@better-fetch/fetch": "1.3.1",
|
|
65
|
-
"better-call": "1.
|
|
65
|
+
"better-call": "1.4.0",
|
|
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.5",
|
|
68
|
+
"better-auth": "^1.7.0-rc.5"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"build": "tsdown",
|