@better-auth/passkey 1.6.18 → 1.6.19
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-Cyjp_etN.mjs";
|
|
2
2
|
import { AuthenticationExtensionsClientInputs, AuthenticationExtensionsClientOutputs, AuthenticationResponseJSON, RegistrationResponseJSON } from "@simplewebauthn/server";
|
|
3
3
|
import * as better_auth_client0 from "better-auth/client";
|
|
4
4
|
import * as nanostores from "nanostores";
|
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-kO19__Rn.mjs";
|
|
2
2
|
import { WebAuthnError, startAuthentication, startRegistration } from "@simplewebauthn/browser";
|
|
3
3
|
import { useAuthQuery } from "better-auth/client";
|
|
4
4
|
import { atom } from "nanostores";
|
|
@@ -294,25 +294,18 @@ declare const passkey: (options?: PasskeyOptions | undefined) => {
|
|
|
294
294
|
openapi: {
|
|
295
295
|
operationId: string;
|
|
296
296
|
description: string;
|
|
297
|
+
parameters: {
|
|
298
|
+
name: string;
|
|
299
|
+
in: "query";
|
|
300
|
+
required: false;
|
|
301
|
+
description: string;
|
|
302
|
+
schema: {
|
|
303
|
+
type: "string";
|
|
304
|
+
};
|
|
305
|
+
}[];
|
|
297
306
|
responses: {
|
|
298
307
|
200: {
|
|
299
308
|
description: string;
|
|
300
|
-
parameters: {
|
|
301
|
-
query: {
|
|
302
|
-
authenticatorAttachment: {
|
|
303
|
-
description: string;
|
|
304
|
-
required: boolean;
|
|
305
|
-
};
|
|
306
|
-
name: {
|
|
307
|
-
description: string;
|
|
308
|
-
required: boolean;
|
|
309
|
-
};
|
|
310
|
-
context: {
|
|
311
|
-
description: string;
|
|
312
|
-
required: boolean;
|
|
313
|
-
};
|
|
314
|
-
};
|
|
315
|
-
};
|
|
316
309
|
content: {
|
|
317
310
|
"application/json": {
|
|
318
311
|
schema: {
|
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-Cyjp_etN.mjs";
|
|
2
2
|
export { PASSKEY_ERROR_CODES, Passkey, 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-kO19__Rn.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";
|
|
@@ -60,25 +60,34 @@ const generatePasskeyRegistrationOptions = (opts, { maxAgeInSeconds }) => {
|
|
|
60
60
|
metadata: { openapi: {
|
|
61
61
|
operationId: "generatePasskeyRegistrationOptions",
|
|
62
62
|
description: "Generate registration options for a new passkey",
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
63
|
+
parameters: [
|
|
64
|
+
{
|
|
65
|
+
name: "authenticatorAttachment",
|
|
66
|
+
in: "query",
|
|
67
|
+
required: false,
|
|
68
|
+
description: `Type of authenticator to use for registration.
|
|
68
69
|
"platform" for device-specific authenticators,
|
|
69
70
|
"cross-platform" for authenticators that can be used across devices.`,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
schema: { type: "string" }
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: "name",
|
|
75
|
+
in: "query",
|
|
76
|
+
required: false,
|
|
77
|
+
description: `Optional custom name for the passkey.
|
|
74
78
|
This can help identify the passkey when managing multiple credentials.`,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
schema: { type: "string" }
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: "context",
|
|
83
|
+
in: "query",
|
|
84
|
+
required: false,
|
|
85
|
+
description: "Optional context for passkey-first registration flows.",
|
|
86
|
+
schema: { type: "string" }
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
responses: { 200: {
|
|
90
|
+
description: "Success",
|
|
82
91
|
content: { "application/json": { schema: {
|
|
83
92
|
type: "object",
|
|
84
93
|
properties: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/passkey",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.19",
|
|
4
4
|
"description": "Passkey plugin for Better Auth",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -55,16 +55,16 @@
|
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"tsdown": "0.21.1",
|
|
58
|
-
"@better-auth/core": "1.6.
|
|
59
|
-
"better-auth": "1.6.
|
|
58
|
+
"@better-auth/core": "1.6.19",
|
|
59
|
+
"better-auth": "1.6.19"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@better-auth/utils": "0.4.
|
|
63
|
-
"@better-fetch/fetch": "1.3.
|
|
62
|
+
"@better-auth/utils": "0.4.2",
|
|
63
|
+
"@better-fetch/fetch": "1.3.1",
|
|
64
64
|
"better-call": "1.3.6",
|
|
65
65
|
"nanostores": "^1.0.1",
|
|
66
|
-
"@better-auth/core": "^1.6.
|
|
67
|
-
"better-auth": "^1.6.
|
|
66
|
+
"@better-auth/core": "^1.6.19",
|
|
67
|
+
"better-auth": "^1.6.19"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"build": "tsdown",
|