better-auth 1.3.1 → 1.3.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/adapters/drizzle-adapter/index.d.cts +2 -2
- package/dist/adapters/drizzle-adapter/index.d.mts +2 -2
- package/dist/adapters/drizzle-adapter/index.d.ts +2 -2
- package/dist/adapters/index.d.cts +3 -3
- package/dist/adapters/index.d.mts +3 -3
- package/dist/adapters/index.d.ts +3 -3
- package/dist/adapters/kysely-adapter/index.d.cts +2 -2
- package/dist/adapters/kysely-adapter/index.d.mts +2 -2
- package/dist/adapters/kysely-adapter/index.d.ts +2 -2
- package/dist/adapters/memory-adapter/index.d.cts +2 -2
- package/dist/adapters/memory-adapter/index.d.mts +2 -2
- package/dist/adapters/memory-adapter/index.d.ts +2 -2
- package/dist/adapters/mongodb-adapter/index.d.cts +2 -2
- package/dist/adapters/mongodb-adapter/index.d.mts +2 -2
- package/dist/adapters/mongodb-adapter/index.d.ts +2 -2
- package/dist/adapters/prisma-adapter/index.d.cts +2 -2
- package/dist/adapters/prisma-adapter/index.d.mts +2 -2
- package/dist/adapters/prisma-adapter/index.d.ts +2 -2
- package/dist/adapters/test.d.cts +2 -2
- package/dist/adapters/test.d.mts +2 -2
- package/dist/adapters/test.d.ts +2 -2
- package/dist/api/index.cjs +1 -1
- package/dist/api/index.d.cts +2 -2
- package/dist/api/index.d.mts +2 -2
- package/dist/api/index.d.ts +2 -2
- package/dist/api/index.mjs +2 -2
- package/dist/client/index.d.cts +4 -4
- package/dist/client/index.d.mts +4 -4
- package/dist/client/index.d.ts +4 -4
- package/dist/client/plugins/index.d.cts +4 -4
- package/dist/client/plugins/index.d.mts +4 -4
- package/dist/client/plugins/index.d.ts +4 -4
- package/dist/client/react/index.d.cts +4 -4
- package/dist/client/react/index.d.mts +4 -4
- package/dist/client/react/index.d.ts +4 -4
- package/dist/client/solid/index.d.cts +4 -4
- package/dist/client/solid/index.d.mts +4 -4
- package/dist/client/solid/index.d.ts +4 -4
- package/dist/client/svelte/index.d.cts +4 -4
- package/dist/client/svelte/index.d.mts +4 -4
- package/dist/client/svelte/index.d.ts +4 -4
- package/dist/client/vue/index.d.cts +4 -4
- package/dist/client/vue/index.d.mts +4 -4
- package/dist/client/vue/index.d.ts +4 -4
- package/dist/cookies/index.d.cts +2 -2
- package/dist/cookies/index.d.mts +2 -2
- package/dist/cookies/index.d.ts +2 -2
- package/dist/db/index.d.cts +12 -12
- package/dist/db/index.d.mts +12 -12
- package/dist/db/index.d.ts +12 -12
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +2 -2
- package/dist/integrations/next-js.cjs +2 -2
- package/dist/integrations/next-js.d.cts +2 -2
- package/dist/integrations/next-js.d.mts +2 -2
- package/dist/integrations/next-js.d.ts +2 -2
- package/dist/integrations/next-js.mjs +2 -2
- package/dist/integrations/node.d.cts +2 -2
- package/dist/integrations/node.d.mts +2 -2
- package/dist/integrations/node.d.ts +2 -2
- package/dist/integrations/react-start.cjs +2 -2
- package/dist/integrations/react-start.d.cts +2 -2
- package/dist/integrations/react-start.d.mts +2 -2
- package/dist/integrations/react-start.d.ts +2 -2
- package/dist/integrations/react-start.mjs +2 -2
- package/dist/integrations/svelte-kit.cjs +1 -1
- package/dist/integrations/svelte-kit.d.cts +2 -2
- package/dist/integrations/svelte-kit.d.mts +2 -2
- package/dist/integrations/svelte-kit.d.ts +2 -2
- package/dist/integrations/svelte-kit.mjs +1 -1
- package/dist/oauth2/index.cjs +1 -1
- package/dist/oauth2/index.d.cts +4 -4
- package/dist/oauth2/index.d.mts +4 -4
- package/dist/oauth2/index.d.ts +4 -4
- package/dist/oauth2/index.mjs +1 -1
- package/dist/plugins/admin/index.cjs +2 -2
- package/dist/plugins/admin/index.d.cts +67 -67
- package/dist/plugins/admin/index.d.mts +67 -67
- package/dist/plugins/admin/index.d.ts +67 -67
- package/dist/plugins/admin/index.mjs +2 -2
- package/dist/plugins/anonymous/index.cjs +1 -1
- package/dist/plugins/anonymous/index.d.cts +2 -2
- package/dist/plugins/anonymous/index.d.mts +2 -2
- package/dist/plugins/anonymous/index.d.ts +2 -2
- package/dist/plugins/anonymous/index.mjs +1 -1
- package/dist/plugins/bearer/index.cjs +1 -1
- package/dist/plugins/bearer/index.d.cts +2 -2
- package/dist/plugins/bearer/index.d.mts +2 -2
- package/dist/plugins/bearer/index.d.ts +2 -2
- package/dist/plugins/bearer/index.mjs +1 -1
- package/dist/plugins/captcha/index.d.cts +2 -2
- package/dist/plugins/captcha/index.d.mts +2 -2
- package/dist/plugins/captcha/index.d.ts +2 -2
- package/dist/plugins/custom-session/index.cjs +1 -1
- package/dist/plugins/custom-session/index.d.cts +7 -7
- package/dist/plugins/custom-session/index.d.mts +7 -7
- package/dist/plugins/custom-session/index.d.ts +7 -7
- package/dist/plugins/custom-session/index.mjs +1 -1
- package/dist/plugins/email-otp/index.cjs +1 -1
- package/dist/plugins/email-otp/index.d.cts +31 -31
- package/dist/plugins/email-otp/index.d.mts +31 -31
- package/dist/plugins/email-otp/index.d.ts +31 -31
- package/dist/plugins/email-otp/index.mjs +1 -1
- package/dist/plugins/generic-oauth/index.cjs +1 -1
- package/dist/plugins/generic-oauth/index.d.cts +24 -24
- package/dist/plugins/generic-oauth/index.d.mts +24 -24
- package/dist/plugins/generic-oauth/index.d.ts +24 -24
- package/dist/plugins/generic-oauth/index.mjs +1 -1
- package/dist/plugins/haveibeenpwned/index.cjs +1 -1
- package/dist/plugins/haveibeenpwned/index.d.cts +2 -2
- package/dist/plugins/haveibeenpwned/index.d.mts +2 -2
- package/dist/plugins/haveibeenpwned/index.d.ts +2 -2
- package/dist/plugins/haveibeenpwned/index.mjs +1 -1
- package/dist/plugins/index.cjs +7 -7
- package/dist/plugins/index.d.cts +26 -26
- package/dist/plugins/index.d.mts +26 -26
- package/dist/plugins/index.d.ts +26 -26
- package/dist/plugins/index.mjs +9 -9
- package/dist/plugins/jwt/index.cjs +2 -2
- package/dist/plugins/jwt/index.d.cts +2 -2
- package/dist/plugins/jwt/index.d.mts +2 -2
- package/dist/plugins/jwt/index.d.ts +2 -2
- package/dist/plugins/jwt/index.mjs +2 -2
- package/dist/plugins/magic-link/index.cjs +1 -1
- package/dist/plugins/magic-link/index.d.cts +14 -14
- package/dist/plugins/magic-link/index.d.mts +14 -14
- package/dist/plugins/magic-link/index.d.ts +14 -14
- package/dist/plugins/magic-link/index.mjs +1 -1
- package/dist/plugins/multi-session/index.cjs +1 -1
- package/dist/plugins/multi-session/index.d.cts +9 -9
- package/dist/plugins/multi-session/index.d.mts +9 -9
- package/dist/plugins/multi-session/index.d.ts +9 -9
- package/dist/plugins/multi-session/index.mjs +1 -1
- package/dist/plugins/oauth-proxy/index.cjs +1 -1
- package/dist/plugins/oauth-proxy/index.d.cts +7 -7
- package/dist/plugins/oauth-proxy/index.d.mts +7 -7
- package/dist/plugins/oauth-proxy/index.d.ts +7 -7
- package/dist/plugins/oauth-proxy/index.mjs +1 -1
- package/dist/plugins/oidc-provider/index.cjs +3 -3
- package/dist/plugins/oidc-provider/index.d.cts +27 -27
- package/dist/plugins/oidc-provider/index.d.mts +27 -27
- package/dist/plugins/oidc-provider/index.d.ts +27 -27
- package/dist/plugins/oidc-provider/index.mjs +3 -3
- package/dist/plugins/one-tap/index.cjs +1 -1
- package/dist/plugins/one-tap/index.d.cts +4 -4
- package/dist/plugins/one-tap/index.d.mts +4 -4
- package/dist/plugins/one-tap/index.d.ts +4 -4
- package/dist/plugins/one-tap/index.mjs +1 -1
- package/dist/plugins/one-time-token/index.cjs +3 -3
- package/dist/plugins/one-time-token/index.d.cts +6 -6
- package/dist/plugins/one-time-token/index.d.mts +6 -6
- package/dist/plugins/one-time-token/index.d.ts +6 -6
- package/dist/plugins/one-time-token/index.mjs +3 -3
- package/dist/plugins/open-api/index.cjs +1 -1
- package/dist/plugins/open-api/index.d.cts +2 -2
- package/dist/plugins/open-api/index.d.mts +2 -2
- package/dist/plugins/open-api/index.d.ts +2 -2
- package/dist/plugins/open-api/index.mjs +1 -1
- package/dist/plugins/organization/index.cjs +3 -3
- package/dist/plugins/organization/index.d.cts +390 -390
- package/dist/plugins/organization/index.d.mts +390 -390
- package/dist/plugins/organization/index.d.ts +390 -390
- package/dist/plugins/organization/index.mjs +3 -3
- package/dist/plugins/passkey/index.cjs +1 -1
- package/dist/plugins/passkey/index.d.cts +23 -23
- package/dist/plugins/passkey/index.d.mts +23 -23
- package/dist/plugins/passkey/index.d.ts +23 -23
- package/dist/plugins/passkey/index.mjs +1 -1
- package/dist/plugins/phone-number/index.cjs +1 -1
- package/dist/plugins/phone-number/index.d.cts +28 -28
- package/dist/plugins/phone-number/index.d.mts +28 -28
- package/dist/plugins/phone-number/index.d.ts +28 -28
- package/dist/plugins/phone-number/index.mjs +1 -1
- package/dist/plugins/siwe/index.cjs +297 -0
- package/dist/plugins/siwe/index.d.cts +195 -0
- package/dist/plugins/siwe/index.d.mts +195 -0
- package/dist/plugins/siwe/index.d.ts +195 -0
- package/dist/plugins/siwe/index.mjs +295 -0
- package/dist/plugins/sso/index.cjs +1 -1
- package/dist/plugins/sso/index.d.cts +45 -45
- package/dist/plugins/sso/index.d.mts +45 -45
- package/dist/plugins/sso/index.d.ts +45 -45
- package/dist/plugins/sso/index.mjs +1 -1
- package/dist/plugins/two-factor/index.cjs +1 -1
- package/dist/plugins/two-factor/index.d.cts +38 -38
- package/dist/plugins/two-factor/index.d.mts +38 -38
- package/dist/plugins/two-factor/index.d.ts +38 -38
- package/dist/plugins/two-factor/index.mjs +1 -1
- package/dist/plugins/username/index.cjs +1 -1
- package/dist/plugins/username/index.d.cts +12 -12
- package/dist/plugins/username/index.d.mts +12 -12
- package/dist/plugins/username/index.d.ts +12 -12
- package/dist/plugins/username/index.mjs +1 -1
- package/dist/shared/{better-auth.C-oNfZPH.d.cts → better-auth.B0e3ZzlM.d.cts} +36 -36
- package/dist/shared/{better-auth.CE16lr3i.d.mts → better-auth.B1VHvePI.d.mts} +36 -36
- package/dist/shared/{better-auth.DoKaQIwy.d.mts → better-auth.BF0l18Af.d.mts} +1 -1
- package/dist/shared/{better-auth.CNTpFj_S.cjs → better-auth.BXW4aAiQ.cjs} +2 -2
- package/dist/shared/{better-auth.DdKZcMVt.d.ts → better-auth.B_G094Aj.d.ts} +1 -1
- package/dist/shared/{better-auth.DQfCK4Nb.mjs → better-auth.Bqt8-7ls.mjs} +2 -2
- package/dist/shared/{better-auth.DevRAmVV.d.ts → better-auth.Bwe61noi.d.ts} +1 -1
- package/dist/shared/{better-auth.B3K6UWYy.d.cts → better-auth.CF-FWRQL.d.cts} +1 -1
- package/dist/shared/{better-auth.D2QnAIyP.d.ts → better-auth.CHvHihjD.d.ts} +36 -36
- package/dist/shared/{better-auth.pnE8EkZO.cjs → better-auth.COsDmM8f.cjs} +1 -1
- package/dist/shared/{better-auth.B8mbk3HM.cjs → better-auth.CSftMZoM.cjs} +1 -1
- package/dist/shared/{better-auth.DG2FJeYI.cjs → better-auth.CU2ZnFFo.cjs} +4 -3
- package/dist/shared/{better-auth.KpzJUkxw.d.mts → better-auth.CePXeKag.d.mts} +515 -515
- package/dist/shared/{better-auth.CnqHgquB.cjs → better-auth.CeY8lCIq.cjs} +33 -11
- package/dist/shared/{better-auth.Cgjn2thr.d.cts → better-auth.CiGummYu.d.cts} +515 -515
- package/dist/shared/{better-auth.BP6KhZxK.mjs → better-auth.D1SaVuxk.mjs} +1 -1
- package/dist/shared/{better-auth.BOumacvv.mjs → better-auth.D4HhkCZJ.mjs} +4 -3
- package/dist/shared/{better-auth.PchrD52N.d.cts → better-auth.DEgvs2nh.d.cts} +1 -1
- package/dist/shared/{better-auth._di0pH6c.mjs → better-auth.DGaVMVAI.mjs} +1 -1
- package/dist/shared/{better-auth.PS9uuCnX.d.ts → better-auth.DPa2nz5L.d.ts} +3 -3
- package/dist/shared/{better-auth.VKKx-2JU.mjs → better-auth.DR6QsC6j.mjs} +33 -11
- package/dist/shared/{better-auth.ByEh_r9h.d.mts → better-auth.DbqVX6sp.d.mts} +1 -1
- package/dist/shared/{better-auth.2lcgvW_O.d.ts → better-auth.Dj2HyOmw.d.ts} +515 -515
- package/dist/shared/{better-auth.Bs90Z5lG.mjs → better-auth.DygEm6OX.mjs} +1 -1
- package/dist/shared/{better-auth.jZedDYFo.mjs → better-auth.HDgvLN7B.mjs} +2 -2
- package/dist/shared/{better-auth.KXK1cTP6.d.mts → better-auth.IegS6fw_.d.mts} +3 -3
- package/dist/shared/{better-auth.B448Gbxg.cjs → better-auth.PIkdXr0U.cjs} +2 -2
- package/dist/shared/{better-auth.DCdVWPIH.cjs → better-auth.TnpcdNJo.cjs} +1 -1
- package/dist/shared/{better-auth.hWM7ExMT.mjs → better-auth.VOBpdwFt.mjs} +1 -1
- package/dist/shared/{better-auth.CtknPsTc.cjs → better-auth.johXc5IC.cjs} +1 -1
- package/dist/shared/{better-auth.DVIqLF8t.d.cts → better-auth.npEvGVS_.d.cts} +3 -3
- package/dist/social-providers/index.cjs +1 -1
- package/dist/social-providers/index.d.cts +1 -1
- package/dist/social-providers/index.d.mts +1 -1
- package/dist/social-providers/index.d.ts +1 -1
- package/dist/social-providers/index.mjs +1 -1
- package/dist/test-utils/index.cjs +3 -3
- package/dist/test-utils/index.d.cts +732 -731
- package/dist/test-utils/index.d.mts +732 -731
- package/dist/test-utils/index.d.ts +732 -731
- package/dist/test-utils/index.mjs +3 -3
- package/dist/types/index.d.cts +3 -3
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/package.json +14 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { o as organization, p as parseRoles } from '../../shared/better-auth.
|
|
1
|
+
export { o as organization, p as parseRoles } from '../../shared/better-auth.DR6QsC6j.mjs';
|
|
2
2
|
import 'better-call';
|
|
3
3
|
import 'zod/v4';
|
|
4
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.D4HhkCZJ.mjs';
|
|
5
5
|
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
6
6
|
import '@better-auth/utils/hash';
|
|
7
7
|
import '@better-auth/utils/base64';
|
|
@@ -29,7 +29,7 @@ import '../../shared/better-auth.DBGfIDnh.mjs';
|
|
|
29
29
|
import '../../shared/better-auth.n2KFGwjY.mjs';
|
|
30
30
|
import 'defu';
|
|
31
31
|
import '../../shared/better-auth.ffWeg50w.mjs';
|
|
32
|
-
import '../../shared/better-auth.
|
|
32
|
+
import '../../shared/better-auth.DGaVMVAI.mjs';
|
|
33
33
|
import '../../shared/better-auth.Dt0CvI2z.mjs';
|
|
34
34
|
import './access/index.mjs';
|
|
35
35
|
import '../access/index.mjs';
|
|
@@ -4,7 +4,7 @@ const server = require('@simplewebauthn/server');
|
|
|
4
4
|
const betterCall = require('better-call');
|
|
5
5
|
const random = require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
6
6
|
const z = require('zod/v4');
|
|
7
|
-
const socialProviders_index = require('../../shared/better-auth.
|
|
7
|
+
const socialProviders_index = require('../../shared/better-auth.CU2ZnFFo.cjs');
|
|
8
8
|
const cookies_index = require('../../cookies/index.cjs');
|
|
9
9
|
const schema$1 = require('../../shared/better-auth.BIMq4RPW.cjs');
|
|
10
10
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as _simplewebauthn_server from '@simplewebauthn/server';
|
|
2
2
|
import { CredentialDeviceType, PublicKeyCredentialCreationOptionsJSON, AuthenticationResponseJSON } from '@simplewebauthn/server';
|
|
3
3
|
import * as better_call from 'better-call';
|
|
4
|
-
import * as
|
|
5
|
-
import { I as InferOptionSchema } from '../../shared/better-auth.
|
|
4
|
+
import * as z from 'zod/v4';
|
|
5
|
+
import { I as InferOptionSchema } from '../../shared/better-auth.CiGummYu.cjs';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import '../../shared/better-auth.ZSfSbnQT.cjs';
|
|
8
|
-
import '../../shared/better-auth.
|
|
8
|
+
import '../../shared/better-auth.npEvGVS_.cjs';
|
|
9
9
|
import 'jose';
|
|
10
10
|
import 'zod/v4/core';
|
|
11
11
|
import 'better-sqlite3';
|
|
@@ -118,12 +118,12 @@ declare const passkey: (options?: PasskeyOptions) => {
|
|
|
118
118
|
};
|
|
119
119
|
};
|
|
120
120
|
}>)[];
|
|
121
|
-
query:
|
|
122
|
-
authenticatorAttachment:
|
|
121
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
122
|
+
authenticatorAttachment: z.ZodOptional<z.ZodEnum<{
|
|
123
123
|
platform: "platform";
|
|
124
124
|
"cross-platform": "cross-platform";
|
|
125
125
|
}>>;
|
|
126
|
-
},
|
|
126
|
+
}, z.core.$strip>>;
|
|
127
127
|
metadata: {
|
|
128
128
|
client: boolean;
|
|
129
129
|
openapi: {
|
|
@@ -271,9 +271,9 @@ declare const passkey: (options?: PasskeyOptions) => {
|
|
|
271
271
|
} : _simplewebauthn_server.PublicKeyCredentialRequestOptionsJSON>;
|
|
272
272
|
options: {
|
|
273
273
|
method: "POST";
|
|
274
|
-
body:
|
|
275
|
-
email:
|
|
276
|
-
},
|
|
274
|
+
body: z.ZodOptional<z.ZodObject<{
|
|
275
|
+
email: z.ZodOptional<z.ZodString>;
|
|
276
|
+
}, z.core.$strip>>;
|
|
277
277
|
metadata: {
|
|
278
278
|
openapi: {
|
|
279
279
|
description: string;
|
|
@@ -399,10 +399,10 @@ declare const passkey: (options?: PasskeyOptions) => {
|
|
|
399
399
|
} : Passkey | null>;
|
|
400
400
|
options: {
|
|
401
401
|
method: "POST";
|
|
402
|
-
body:
|
|
403
|
-
response:
|
|
404
|
-
name:
|
|
405
|
-
},
|
|
402
|
+
body: z.ZodObject<{
|
|
403
|
+
response: z.ZodAny;
|
|
404
|
+
name: z.ZodOptional<z.ZodString>;
|
|
405
|
+
}, z.core.$strip>;
|
|
406
406
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
407
407
|
session: {
|
|
408
408
|
session: Record<string, any> & {
|
|
@@ -502,9 +502,9 @@ declare const passkey: (options?: PasskeyOptions) => {
|
|
|
502
502
|
}>;
|
|
503
503
|
options: {
|
|
504
504
|
method: "POST";
|
|
505
|
-
body:
|
|
506
|
-
response:
|
|
507
|
-
},
|
|
505
|
+
body: z.ZodObject<{
|
|
506
|
+
response: z.ZodRecord<z.ZodAny, z.ZodAny>;
|
|
507
|
+
}, z.core.$strip>;
|
|
508
508
|
metadata: {
|
|
509
509
|
openapi: {
|
|
510
510
|
description: string;
|
|
@@ -676,9 +676,9 @@ declare const passkey: (options?: PasskeyOptions) => {
|
|
|
676
676
|
} : null>;
|
|
677
677
|
options: {
|
|
678
678
|
method: "POST";
|
|
679
|
-
body:
|
|
680
|
-
id:
|
|
681
|
-
},
|
|
679
|
+
body: z.ZodObject<{
|
|
680
|
+
id: z.ZodString;
|
|
681
|
+
}, z.core.$strip>;
|
|
682
682
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
683
683
|
session: {
|
|
684
684
|
session: Record<string, any> & {
|
|
@@ -780,10 +780,10 @@ declare const passkey: (options?: PasskeyOptions) => {
|
|
|
780
780
|
}>;
|
|
781
781
|
options: {
|
|
782
782
|
method: "POST";
|
|
783
|
-
body:
|
|
784
|
-
id:
|
|
785
|
-
name:
|
|
786
|
-
},
|
|
783
|
+
body: z.ZodObject<{
|
|
784
|
+
id: z.ZodString;
|
|
785
|
+
name: z.ZodString;
|
|
786
|
+
}, z.core.$strip>;
|
|
787
787
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
788
788
|
session: {
|
|
789
789
|
session: Record<string, any> & {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as _simplewebauthn_server from '@simplewebauthn/server';
|
|
2
2
|
import { CredentialDeviceType, PublicKeyCredentialCreationOptionsJSON, AuthenticationResponseJSON } from '@simplewebauthn/server';
|
|
3
3
|
import * as better_call from 'better-call';
|
|
4
|
-
import * as
|
|
5
|
-
import { I as InferOptionSchema } from '../../shared/better-auth.
|
|
4
|
+
import * as z from 'zod/v4';
|
|
5
|
+
import { I as InferOptionSchema } from '../../shared/better-auth.CePXeKag.mjs';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import '../../shared/better-auth.ZSfSbnQT.mjs';
|
|
8
|
-
import '../../shared/better-auth.
|
|
8
|
+
import '../../shared/better-auth.IegS6fw_.mjs';
|
|
9
9
|
import 'jose';
|
|
10
10
|
import 'zod/v4/core';
|
|
11
11
|
import 'better-sqlite3';
|
|
@@ -118,12 +118,12 @@ declare const passkey: (options?: PasskeyOptions) => {
|
|
|
118
118
|
};
|
|
119
119
|
};
|
|
120
120
|
}>)[];
|
|
121
|
-
query:
|
|
122
|
-
authenticatorAttachment:
|
|
121
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
122
|
+
authenticatorAttachment: z.ZodOptional<z.ZodEnum<{
|
|
123
123
|
platform: "platform";
|
|
124
124
|
"cross-platform": "cross-platform";
|
|
125
125
|
}>>;
|
|
126
|
-
},
|
|
126
|
+
}, z.core.$strip>>;
|
|
127
127
|
metadata: {
|
|
128
128
|
client: boolean;
|
|
129
129
|
openapi: {
|
|
@@ -271,9 +271,9 @@ declare const passkey: (options?: PasskeyOptions) => {
|
|
|
271
271
|
} : _simplewebauthn_server.PublicKeyCredentialRequestOptionsJSON>;
|
|
272
272
|
options: {
|
|
273
273
|
method: "POST";
|
|
274
|
-
body:
|
|
275
|
-
email:
|
|
276
|
-
},
|
|
274
|
+
body: z.ZodOptional<z.ZodObject<{
|
|
275
|
+
email: z.ZodOptional<z.ZodString>;
|
|
276
|
+
}, z.core.$strip>>;
|
|
277
277
|
metadata: {
|
|
278
278
|
openapi: {
|
|
279
279
|
description: string;
|
|
@@ -399,10 +399,10 @@ declare const passkey: (options?: PasskeyOptions) => {
|
|
|
399
399
|
} : Passkey | null>;
|
|
400
400
|
options: {
|
|
401
401
|
method: "POST";
|
|
402
|
-
body:
|
|
403
|
-
response:
|
|
404
|
-
name:
|
|
405
|
-
},
|
|
402
|
+
body: z.ZodObject<{
|
|
403
|
+
response: z.ZodAny;
|
|
404
|
+
name: z.ZodOptional<z.ZodString>;
|
|
405
|
+
}, z.core.$strip>;
|
|
406
406
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
407
407
|
session: {
|
|
408
408
|
session: Record<string, any> & {
|
|
@@ -502,9 +502,9 @@ declare const passkey: (options?: PasskeyOptions) => {
|
|
|
502
502
|
}>;
|
|
503
503
|
options: {
|
|
504
504
|
method: "POST";
|
|
505
|
-
body:
|
|
506
|
-
response:
|
|
507
|
-
},
|
|
505
|
+
body: z.ZodObject<{
|
|
506
|
+
response: z.ZodRecord<z.ZodAny, z.ZodAny>;
|
|
507
|
+
}, z.core.$strip>;
|
|
508
508
|
metadata: {
|
|
509
509
|
openapi: {
|
|
510
510
|
description: string;
|
|
@@ -676,9 +676,9 @@ declare const passkey: (options?: PasskeyOptions) => {
|
|
|
676
676
|
} : null>;
|
|
677
677
|
options: {
|
|
678
678
|
method: "POST";
|
|
679
|
-
body:
|
|
680
|
-
id:
|
|
681
|
-
},
|
|
679
|
+
body: z.ZodObject<{
|
|
680
|
+
id: z.ZodString;
|
|
681
|
+
}, z.core.$strip>;
|
|
682
682
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
683
683
|
session: {
|
|
684
684
|
session: Record<string, any> & {
|
|
@@ -780,10 +780,10 @@ declare const passkey: (options?: PasskeyOptions) => {
|
|
|
780
780
|
}>;
|
|
781
781
|
options: {
|
|
782
782
|
method: "POST";
|
|
783
|
-
body:
|
|
784
|
-
id:
|
|
785
|
-
name:
|
|
786
|
-
},
|
|
783
|
+
body: z.ZodObject<{
|
|
784
|
+
id: z.ZodString;
|
|
785
|
+
name: z.ZodString;
|
|
786
|
+
}, z.core.$strip>;
|
|
787
787
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
788
788
|
session: {
|
|
789
789
|
session: Record<string, any> & {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as _simplewebauthn_server from '@simplewebauthn/server';
|
|
2
2
|
import { CredentialDeviceType, PublicKeyCredentialCreationOptionsJSON, AuthenticationResponseJSON } from '@simplewebauthn/server';
|
|
3
3
|
import * as better_call from 'better-call';
|
|
4
|
-
import * as
|
|
5
|
-
import { I as InferOptionSchema } from '../../shared/better-auth.
|
|
4
|
+
import * as z from 'zod/v4';
|
|
5
|
+
import { I as InferOptionSchema } from '../../shared/better-auth.Dj2HyOmw.js';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import '../../shared/better-auth.ZSfSbnQT.js';
|
|
8
|
-
import '../../shared/better-auth.
|
|
8
|
+
import '../../shared/better-auth.DPa2nz5L.js';
|
|
9
9
|
import 'jose';
|
|
10
10
|
import 'zod/v4/core';
|
|
11
11
|
import 'better-sqlite3';
|
|
@@ -118,12 +118,12 @@ declare const passkey: (options?: PasskeyOptions) => {
|
|
|
118
118
|
};
|
|
119
119
|
};
|
|
120
120
|
}>)[];
|
|
121
|
-
query:
|
|
122
|
-
authenticatorAttachment:
|
|
121
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
122
|
+
authenticatorAttachment: z.ZodOptional<z.ZodEnum<{
|
|
123
123
|
platform: "platform";
|
|
124
124
|
"cross-platform": "cross-platform";
|
|
125
125
|
}>>;
|
|
126
|
-
},
|
|
126
|
+
}, z.core.$strip>>;
|
|
127
127
|
metadata: {
|
|
128
128
|
client: boolean;
|
|
129
129
|
openapi: {
|
|
@@ -271,9 +271,9 @@ declare const passkey: (options?: PasskeyOptions) => {
|
|
|
271
271
|
} : _simplewebauthn_server.PublicKeyCredentialRequestOptionsJSON>;
|
|
272
272
|
options: {
|
|
273
273
|
method: "POST";
|
|
274
|
-
body:
|
|
275
|
-
email:
|
|
276
|
-
},
|
|
274
|
+
body: z.ZodOptional<z.ZodObject<{
|
|
275
|
+
email: z.ZodOptional<z.ZodString>;
|
|
276
|
+
}, z.core.$strip>>;
|
|
277
277
|
metadata: {
|
|
278
278
|
openapi: {
|
|
279
279
|
description: string;
|
|
@@ -399,10 +399,10 @@ declare const passkey: (options?: PasskeyOptions) => {
|
|
|
399
399
|
} : Passkey | null>;
|
|
400
400
|
options: {
|
|
401
401
|
method: "POST";
|
|
402
|
-
body:
|
|
403
|
-
response:
|
|
404
|
-
name:
|
|
405
|
-
},
|
|
402
|
+
body: z.ZodObject<{
|
|
403
|
+
response: z.ZodAny;
|
|
404
|
+
name: z.ZodOptional<z.ZodString>;
|
|
405
|
+
}, z.core.$strip>;
|
|
406
406
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
407
407
|
session: {
|
|
408
408
|
session: Record<string, any> & {
|
|
@@ -502,9 +502,9 @@ declare const passkey: (options?: PasskeyOptions) => {
|
|
|
502
502
|
}>;
|
|
503
503
|
options: {
|
|
504
504
|
method: "POST";
|
|
505
|
-
body:
|
|
506
|
-
response:
|
|
507
|
-
},
|
|
505
|
+
body: z.ZodObject<{
|
|
506
|
+
response: z.ZodRecord<z.ZodAny, z.ZodAny>;
|
|
507
|
+
}, z.core.$strip>;
|
|
508
508
|
metadata: {
|
|
509
509
|
openapi: {
|
|
510
510
|
description: string;
|
|
@@ -676,9 +676,9 @@ declare const passkey: (options?: PasskeyOptions) => {
|
|
|
676
676
|
} : null>;
|
|
677
677
|
options: {
|
|
678
678
|
method: "POST";
|
|
679
|
-
body:
|
|
680
|
-
id:
|
|
681
|
-
},
|
|
679
|
+
body: z.ZodObject<{
|
|
680
|
+
id: z.ZodString;
|
|
681
|
+
}, z.core.$strip>;
|
|
682
682
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
683
683
|
session: {
|
|
684
684
|
session: Record<string, any> & {
|
|
@@ -780,10 +780,10 @@ declare const passkey: (options?: PasskeyOptions) => {
|
|
|
780
780
|
}>;
|
|
781
781
|
options: {
|
|
782
782
|
method: "POST";
|
|
783
|
-
body:
|
|
784
|
-
id:
|
|
785
|
-
name:
|
|
786
|
-
},
|
|
783
|
+
body: z.ZodObject<{
|
|
784
|
+
id: z.ZodString;
|
|
785
|
+
name: z.ZodString;
|
|
786
|
+
}, z.core.$strip>;
|
|
787
787
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
788
788
|
session: {
|
|
789
789
|
session: Record<string, any> & {
|
|
@@ -2,7 +2,7 @@ import { verifyAuthenticationResponse, verifyRegistrationResponse, generateAuthe
|
|
|
2
2
|
import { APIError } from 'better-call';
|
|
3
3
|
import { g as generateRandomString } from '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
4
4
|
import * as z from 'zod/v4';
|
|
5
|
-
import { j as createAuthEndpoint, l as sessionMiddleware, n as freshSessionMiddleware, k as getSessionFromCtx } from '../../shared/better-auth.
|
|
5
|
+
import { j as createAuthEndpoint, l as sessionMiddleware, n as freshSessionMiddleware, k as getSessionFromCtx } from '../../shared/better-auth.D4HhkCZJ.mjs';
|
|
6
6
|
import { setSessionCookie } from '../../cookies/index.mjs';
|
|
7
7
|
import { m as mergeSchema } from '../../shared/better-auth.n2KFGwjY.mjs';
|
|
8
8
|
import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const z = require('zod/v4');
|
|
4
|
-
const socialProviders_index = require('../../shared/better-auth.
|
|
4
|
+
const socialProviders_index = require('../../shared/better-auth.CU2ZnFFo.cjs');
|
|
5
5
|
const betterCall = require('better-call');
|
|
6
6
|
const schema$1 = require('../../shared/better-auth.BIMq4RPW.cjs');
|
|
7
7
|
const random = require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import * as
|
|
3
|
-
import { U as User, I as InferOptionSchema } from '../../shared/better-auth.
|
|
2
|
+
import * as z from 'zod/v4';
|
|
3
|
+
import { U as User, I as InferOptionSchema } from '../../shared/better-auth.CiGummYu.cjs';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import '../../shared/better-auth.ZSfSbnQT.cjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.npEvGVS_.cjs';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'better-sqlite3';
|
|
@@ -170,11 +170,11 @@ declare const phoneNumber: (options?: PhoneNumberOptions) => {
|
|
|
170
170
|
}>;
|
|
171
171
|
options: {
|
|
172
172
|
method: "POST";
|
|
173
|
-
body:
|
|
174
|
-
phoneNumber:
|
|
175
|
-
password:
|
|
176
|
-
rememberMe:
|
|
177
|
-
},
|
|
173
|
+
body: z.ZodObject<{
|
|
174
|
+
phoneNumber: z.ZodString;
|
|
175
|
+
password: z.ZodString;
|
|
176
|
+
rememberMe: z.ZodOptional<z.ZodBoolean>;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
178
|
metadata: {
|
|
179
179
|
openapi: {
|
|
180
180
|
summary: string;
|
|
@@ -257,9 +257,9 @@ declare const phoneNumber: (options?: PhoneNumberOptions) => {
|
|
|
257
257
|
}>;
|
|
258
258
|
options: {
|
|
259
259
|
method: "POST";
|
|
260
|
-
body:
|
|
261
|
-
phoneNumber:
|
|
262
|
-
},
|
|
260
|
+
body: z.ZodObject<{
|
|
261
|
+
phoneNumber: z.ZodString;
|
|
262
|
+
}, z.core.$strip>;
|
|
263
263
|
metadata: {
|
|
264
264
|
openapi: {
|
|
265
265
|
summary: string;
|
|
@@ -351,12 +351,12 @@ declare const phoneNumber: (options?: PhoneNumberOptions) => {
|
|
|
351
351
|
} | null>;
|
|
352
352
|
options: {
|
|
353
353
|
method: "POST";
|
|
354
|
-
body:
|
|
355
|
-
phoneNumber:
|
|
356
|
-
code:
|
|
357
|
-
disableSession:
|
|
358
|
-
updatePhoneNumber:
|
|
359
|
-
},
|
|
354
|
+
body: z.ZodObject<{
|
|
355
|
+
phoneNumber: z.ZodString;
|
|
356
|
+
code: z.ZodString;
|
|
357
|
+
disableSession: z.ZodOptional<z.ZodBoolean>;
|
|
358
|
+
updatePhoneNumber: z.ZodOptional<z.ZodBoolean>;
|
|
359
|
+
}, z.core.$strip>;
|
|
360
360
|
metadata: {
|
|
361
361
|
openapi: {
|
|
362
362
|
summary: string;
|
|
@@ -484,9 +484,9 @@ declare const phoneNumber: (options?: PhoneNumberOptions) => {
|
|
|
484
484
|
}>;
|
|
485
485
|
options: {
|
|
486
486
|
method: "POST";
|
|
487
|
-
body:
|
|
488
|
-
phoneNumber:
|
|
489
|
-
},
|
|
487
|
+
body: z.ZodObject<{
|
|
488
|
+
phoneNumber: z.ZodString;
|
|
489
|
+
}, z.core.$strip>;
|
|
490
490
|
metadata: {
|
|
491
491
|
openapi: {
|
|
492
492
|
description: string;
|
|
@@ -550,9 +550,9 @@ declare const phoneNumber: (options?: PhoneNumberOptions) => {
|
|
|
550
550
|
}>;
|
|
551
551
|
options: {
|
|
552
552
|
method: "POST";
|
|
553
|
-
body:
|
|
554
|
-
phoneNumber:
|
|
555
|
-
},
|
|
553
|
+
body: z.ZodObject<{
|
|
554
|
+
phoneNumber: z.ZodString;
|
|
555
|
+
}, z.core.$strip>;
|
|
556
556
|
metadata: {
|
|
557
557
|
openapi: {
|
|
558
558
|
description: string;
|
|
@@ -618,11 +618,11 @@ declare const phoneNumber: (options?: PhoneNumberOptions) => {
|
|
|
618
618
|
}>;
|
|
619
619
|
options: {
|
|
620
620
|
method: "POST";
|
|
621
|
-
body:
|
|
622
|
-
otp:
|
|
623
|
-
phoneNumber:
|
|
624
|
-
newPassword:
|
|
625
|
-
},
|
|
621
|
+
body: z.ZodObject<{
|
|
622
|
+
otp: z.ZodString;
|
|
623
|
+
phoneNumber: z.ZodString;
|
|
624
|
+
newPassword: z.ZodString;
|
|
625
|
+
}, z.core.$strip>;
|
|
626
626
|
metadata: {
|
|
627
627
|
openapi: {
|
|
628
628
|
description: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import * as
|
|
3
|
-
import { U as User, I as InferOptionSchema } from '../../shared/better-auth.
|
|
2
|
+
import * as z from 'zod/v4';
|
|
3
|
+
import { U as User, I as InferOptionSchema } from '../../shared/better-auth.CePXeKag.mjs';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import '../../shared/better-auth.ZSfSbnQT.mjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.IegS6fw_.mjs';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'better-sqlite3';
|
|
@@ -170,11 +170,11 @@ declare const phoneNumber: (options?: PhoneNumberOptions) => {
|
|
|
170
170
|
}>;
|
|
171
171
|
options: {
|
|
172
172
|
method: "POST";
|
|
173
|
-
body:
|
|
174
|
-
phoneNumber:
|
|
175
|
-
password:
|
|
176
|
-
rememberMe:
|
|
177
|
-
},
|
|
173
|
+
body: z.ZodObject<{
|
|
174
|
+
phoneNumber: z.ZodString;
|
|
175
|
+
password: z.ZodString;
|
|
176
|
+
rememberMe: z.ZodOptional<z.ZodBoolean>;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
178
|
metadata: {
|
|
179
179
|
openapi: {
|
|
180
180
|
summary: string;
|
|
@@ -257,9 +257,9 @@ declare const phoneNumber: (options?: PhoneNumberOptions) => {
|
|
|
257
257
|
}>;
|
|
258
258
|
options: {
|
|
259
259
|
method: "POST";
|
|
260
|
-
body:
|
|
261
|
-
phoneNumber:
|
|
262
|
-
},
|
|
260
|
+
body: z.ZodObject<{
|
|
261
|
+
phoneNumber: z.ZodString;
|
|
262
|
+
}, z.core.$strip>;
|
|
263
263
|
metadata: {
|
|
264
264
|
openapi: {
|
|
265
265
|
summary: string;
|
|
@@ -351,12 +351,12 @@ declare const phoneNumber: (options?: PhoneNumberOptions) => {
|
|
|
351
351
|
} | null>;
|
|
352
352
|
options: {
|
|
353
353
|
method: "POST";
|
|
354
|
-
body:
|
|
355
|
-
phoneNumber:
|
|
356
|
-
code:
|
|
357
|
-
disableSession:
|
|
358
|
-
updatePhoneNumber:
|
|
359
|
-
},
|
|
354
|
+
body: z.ZodObject<{
|
|
355
|
+
phoneNumber: z.ZodString;
|
|
356
|
+
code: z.ZodString;
|
|
357
|
+
disableSession: z.ZodOptional<z.ZodBoolean>;
|
|
358
|
+
updatePhoneNumber: z.ZodOptional<z.ZodBoolean>;
|
|
359
|
+
}, z.core.$strip>;
|
|
360
360
|
metadata: {
|
|
361
361
|
openapi: {
|
|
362
362
|
summary: string;
|
|
@@ -484,9 +484,9 @@ declare const phoneNumber: (options?: PhoneNumberOptions) => {
|
|
|
484
484
|
}>;
|
|
485
485
|
options: {
|
|
486
486
|
method: "POST";
|
|
487
|
-
body:
|
|
488
|
-
phoneNumber:
|
|
489
|
-
},
|
|
487
|
+
body: z.ZodObject<{
|
|
488
|
+
phoneNumber: z.ZodString;
|
|
489
|
+
}, z.core.$strip>;
|
|
490
490
|
metadata: {
|
|
491
491
|
openapi: {
|
|
492
492
|
description: string;
|
|
@@ -550,9 +550,9 @@ declare const phoneNumber: (options?: PhoneNumberOptions) => {
|
|
|
550
550
|
}>;
|
|
551
551
|
options: {
|
|
552
552
|
method: "POST";
|
|
553
|
-
body:
|
|
554
|
-
phoneNumber:
|
|
555
|
-
},
|
|
553
|
+
body: z.ZodObject<{
|
|
554
|
+
phoneNumber: z.ZodString;
|
|
555
|
+
}, z.core.$strip>;
|
|
556
556
|
metadata: {
|
|
557
557
|
openapi: {
|
|
558
558
|
description: string;
|
|
@@ -618,11 +618,11 @@ declare const phoneNumber: (options?: PhoneNumberOptions) => {
|
|
|
618
618
|
}>;
|
|
619
619
|
options: {
|
|
620
620
|
method: "POST";
|
|
621
|
-
body:
|
|
622
|
-
otp:
|
|
623
|
-
phoneNumber:
|
|
624
|
-
newPassword:
|
|
625
|
-
},
|
|
621
|
+
body: z.ZodObject<{
|
|
622
|
+
otp: z.ZodString;
|
|
623
|
+
phoneNumber: z.ZodString;
|
|
624
|
+
newPassword: z.ZodString;
|
|
625
|
+
}, z.core.$strip>;
|
|
626
626
|
metadata: {
|
|
627
627
|
openapi: {
|
|
628
628
|
description: string;
|