better-auth 1.2.5-beta.9 → 1.2.6-beta.1
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 +3 -3
- package/dist/adapters/drizzle-adapter/index.d.mts +3 -3
- package/dist/adapters/drizzle-adapter/index.d.ts +3 -3
- package/dist/adapters/kysely-adapter/index.d.cts +3 -3
- package/dist/adapters/kysely-adapter/index.d.mts +3 -3
- package/dist/adapters/kysely-adapter/index.d.ts +3 -3
- package/dist/adapters/memory-adapter/index.d.cts +3 -3
- package/dist/adapters/memory-adapter/index.d.mts +3 -3
- package/dist/adapters/memory-adapter/index.d.ts +3 -3
- package/dist/adapters/mongodb-adapter/index.d.cts +3 -3
- package/dist/adapters/mongodb-adapter/index.d.mts +3 -3
- package/dist/adapters/mongodb-adapter/index.d.ts +3 -3
- package/dist/adapters/prisma-adapter/index.d.cts +3 -3
- package/dist/adapters/prisma-adapter/index.d.mts +3 -3
- package/dist/adapters/prisma-adapter/index.d.ts +3 -3
- package/dist/adapters/test.d.cts +3 -3
- package/dist/adapters/test.d.mts +3 -3
- package/dist/adapters/test.d.ts +3 -3
- package/dist/api/index.cjs +77 -75
- package/dist/api/index.d.cts +4 -4
- package/dist/api/index.d.mts +4 -4
- package/dist/api/index.d.ts +4 -4
- package/dist/api/index.mjs +6 -5
- 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 +3 -3
- package/dist/cookies/index.d.mts +3 -3
- package/dist/cookies/index.d.ts +3 -3
- package/dist/db/index.cjs +1 -1
- package/dist/db/index.d.cts +4 -4
- package/dist/db/index.d.mts +4 -4
- package/dist/db/index.d.ts +4 -4
- package/dist/db/index.mjs +1 -1
- package/dist/index.cjs +5 -5
- 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 +4 -4
- package/dist/integrations/next-js.cjs +5 -5
- package/dist/integrations/next-js.d.cts +3 -3
- package/dist/integrations/next-js.d.mts +3 -3
- package/dist/integrations/next-js.d.ts +3 -3
- package/dist/integrations/next-js.mjs +4 -4
- package/dist/integrations/node.d.cts +3 -3
- package/dist/integrations/node.d.mts +3 -3
- package/dist/integrations/node.d.ts +3 -3
- package/dist/integrations/svelte-kit.d.cts +3 -3
- package/dist/integrations/svelte-kit.d.mts +3 -3
- package/dist/integrations/svelte-kit.d.ts +3 -3
- package/dist/oauth2/index.cjs +7 -6
- package/dist/oauth2/index.d.cts +14 -5
- package/dist/oauth2/index.d.mts +14 -5
- package/dist/oauth2/index.d.ts +14 -5
- package/dist/oauth2/index.mjs +1 -1
- package/dist/plugins/admin/index.cjs +3 -3
- package/dist/plugins/admin/index.d.cts +3 -3
- package/dist/plugins/admin/index.d.mts +3 -3
- package/dist/plugins/admin/index.d.ts +3 -3
- package/dist/plugins/admin/index.mjs +3 -3
- package/dist/plugins/anonymous/index.cjs +5 -5
- package/dist/plugins/anonymous/index.d.cts +3 -3
- package/dist/plugins/anonymous/index.d.mts +3 -3
- package/dist/plugins/anonymous/index.d.ts +3 -3
- package/dist/plugins/anonymous/index.mjs +2 -2
- package/dist/plugins/bearer/index.cjs +4 -4
- package/dist/plugins/bearer/index.d.cts +3 -3
- package/dist/plugins/bearer/index.d.mts +3 -3
- package/dist/plugins/bearer/index.d.ts +3 -3
- package/dist/plugins/bearer/index.mjs +2 -2
- package/dist/plugins/custom-session/index.cjs +4 -4
- package/dist/plugins/custom-session/index.d.cts +3 -3
- package/dist/plugins/custom-session/index.d.mts +3 -3
- package/dist/plugins/custom-session/index.d.ts +3 -3
- package/dist/plugins/custom-session/index.mjs +2 -2
- package/dist/plugins/email-otp/index.cjs +10 -10
- package/dist/plugins/email-otp/index.d.cts +3 -3
- package/dist/plugins/email-otp/index.d.mts +3 -3
- package/dist/plugins/email-otp/index.d.ts +3 -3
- package/dist/plugins/email-otp/index.mjs +2 -2
- package/dist/plugins/generic-oauth/index.cjs +43 -19
- package/dist/plugins/generic-oauth/index.d.cts +4 -4
- package/dist/plugins/generic-oauth/index.d.mts +4 -4
- package/dist/plugins/generic-oauth/index.d.ts +4 -4
- package/dist/plugins/generic-oauth/index.mjs +29 -5
- package/dist/plugins/index.cjs +22 -22
- package/dist/plugins/index.d.cts +4 -4
- package/dist/plugins/index.d.mts +4 -4
- package/dist/plugins/index.d.ts +4 -4
- package/dist/plugins/index.mjs +6 -6
- package/dist/plugins/jwt/index.cjs +6 -6
- package/dist/plugins/jwt/index.d.cts +3 -3
- package/dist/plugins/jwt/index.d.mts +3 -3
- package/dist/plugins/jwt/index.d.ts +3 -3
- package/dist/plugins/jwt/index.mjs +2 -2
- package/dist/plugins/magic-link/index.cjs +6 -6
- package/dist/plugins/magic-link/index.mjs +2 -2
- package/dist/plugins/multi-session/index.cjs +9 -9
- package/dist/plugins/multi-session/index.d.cts +3 -3
- package/dist/plugins/multi-session/index.d.mts +3 -3
- package/dist/plugins/multi-session/index.d.ts +3 -3
- package/dist/plugins/multi-session/index.mjs +2 -2
- package/dist/plugins/oauth-proxy/index.cjs +6 -6
- package/dist/plugins/oauth-proxy/index.d.cts +3 -3
- package/dist/plugins/oauth-proxy/index.d.mts +3 -3
- package/dist/plugins/oauth-proxy/index.d.ts +3 -3
- package/dist/plugins/oauth-proxy/index.mjs +2 -2
- package/dist/plugins/oidc-provider/index.cjs +14 -14
- package/dist/plugins/oidc-provider/index.d.cts +3 -3
- package/dist/plugins/oidc-provider/index.d.mts +3 -3
- package/dist/plugins/oidc-provider/index.d.ts +3 -3
- package/dist/plugins/oidc-provider/index.mjs +2 -2
- package/dist/plugins/one-tap/index.cjs +3 -3
- package/dist/plugins/one-tap/index.mjs +2 -2
- package/dist/plugins/open-api/index.cjs +4 -4
- package/dist/plugins/open-api/index.d.cts +3 -3
- package/dist/plugins/open-api/index.d.mts +3 -3
- package/dist/plugins/open-api/index.d.ts +3 -3
- package/dist/plugins/open-api/index.mjs +2 -2
- package/dist/plugins/organization/index.cjs +3 -3
- package/dist/plugins/organization/index.d.cts +3 -3
- package/dist/plugins/organization/index.d.mts +3 -3
- package/dist/plugins/organization/index.d.ts +3 -3
- package/dist/plugins/organization/index.mjs +3 -3
- package/dist/plugins/passkey/index.cjs +15 -15
- package/dist/plugins/passkey/index.d.cts +3 -3
- package/dist/plugins/passkey/index.d.mts +3 -3
- package/dist/plugins/passkey/index.d.ts +3 -3
- package/dist/plugins/passkey/index.mjs +2 -2
- package/dist/plugins/phone-number/index.cjs +13 -13
- package/dist/plugins/phone-number/index.d.cts +3 -3
- package/dist/plugins/phone-number/index.d.mts +3 -3
- package/dist/plugins/phone-number/index.d.ts +3 -3
- package/dist/plugins/phone-number/index.mjs +2 -2
- package/dist/plugins/sso/index.cjs +11 -11
- package/dist/plugins/sso/index.d.cts +2 -2
- package/dist/plugins/sso/index.d.mts +2 -2
- package/dist/plugins/sso/index.d.ts +2 -2
- package/dist/plugins/sso/index.mjs +3 -3
- package/dist/plugins/two-factor/index.cjs +20 -20
- package/dist/plugins/two-factor/index.d.cts +3 -3
- package/dist/plugins/two-factor/index.d.mts +3 -3
- package/dist/plugins/two-factor/index.d.ts +3 -3
- package/dist/plugins/two-factor/index.mjs +3 -3
- package/dist/plugins/username/index.cjs +9 -9
- package/dist/plugins/username/index.d.cts +3 -3
- package/dist/plugins/username/index.d.mts +3 -3
- package/dist/plugins/username/index.d.ts +3 -3
- package/dist/plugins/username/index.mjs +2 -2
- package/dist/shared/{better-auth.oyDBIJLs.mjs → better-auth.2rfXmCNS.mjs} +1 -1
- package/dist/shared/{better-auth.KTt7CS7L.mjs → better-auth.9knM1kR4.mjs} +1 -1
- package/dist/shared/{better-auth.DiMBK1Ep.mjs → better-auth.B2THyVQH.mjs} +54 -1
- package/dist/shared/{better-auth.C8tekzhG.cjs → better-auth.B7irTavj.cjs} +35 -35
- package/dist/shared/{better-auth.Dd96RDNl.d.ts → better-auth.BAfIsot3.d.ts} +41 -2
- package/dist/shared/{better-auth.Dunt9jpN.d.cts → better-auth.BBG0jAhH.d.mts} +2 -2
- package/dist/shared/{better-auth.CxMUffeh.d.cts → better-auth.BDAwKjlL.d.cts} +567 -46
- package/dist/shared/{better-auth.CbBX7Xla.mjs → better-auth.BK4Kh5QZ.mjs} +19 -17
- package/dist/shared/{better-auth.DgXCgiHI.cjs → better-auth.BLV8UOn8.cjs} +54 -0
- package/dist/shared/{better-auth.BjoUuJNr.d.mts → better-auth.BTnAiI8e.d.mts} +41 -2
- package/dist/shared/{better-auth.CzK7QJBv.d.cts → better-auth.CH6fRG6d.d.cts} +41 -2
- package/dist/shared/{better-auth.dzwyqpra.d.mts → better-auth.CTQDLJN7.d.mts} +567 -46
- package/dist/shared/{better-auth.CEuqoYDM.d.mts → better-auth.CtSY9Kmu.d.cts} +2 -2
- package/dist/shared/{better-auth.Cz2saE_0.d.cts → better-auth.DAnkIG1r.d.cts} +1 -1
- package/dist/shared/{better-auth.4ZqMps6Z.d.ts → better-auth.DCxEy-As.d.ts} +1 -1
- package/dist/shared/{better-auth.D7hUw1_Y.d.ts → better-auth.DIOWNBS2.d.ts} +1 -1
- package/dist/shared/{better-auth.ybwxmbrM.mjs → better-auth.DQ-pFMwp.mjs} +118 -5
- package/dist/shared/{better-auth.BxC2ipUB.d.mts → better-auth.DZPJQ81N.d.mts} +1 -1
- package/dist/shared/{better-auth.CL_N_Cfq.cjs → better-auth.DqGx7Ip8.cjs} +20 -20
- package/dist/shared/{better-auth.wspQErD2.cjs → better-auth.TNTVT6jt.cjs} +3 -3
- package/dist/shared/{better-auth.4J4_zAGP.cjs → better-auth.b0MLzqQX.cjs} +118 -4
- package/dist/shared/{better-auth.CdPDif0r.mjs → better-auth.cN4sTcuQ.mjs} +1 -1
- package/dist/shared/{better-auth.X0ynzeu1.cjs → better-auth.q7ChvjiM.cjs} +19 -17
- package/dist/shared/{better-auth.CixnJ90x.d.ts → better-auth.tpz8D0AA.d.ts} +567 -46
- package/dist/social-providers/index.cjs +197 -32
- 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 +166 -1
- package/dist/types/index.d.cts +4 -4
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.
|
|
1
|
+
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.BDAwKjlL.cjs';
|
|
2
2
|
import '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
3
3
|
import 'zod';
|
|
4
|
+
import '../../shared/better-auth.CH6fRG6d.cjs';
|
|
5
|
+
import 'jose';
|
|
4
6
|
import 'kysely';
|
|
5
7
|
import 'better-call';
|
|
6
|
-
import '../../shared/better-auth.CzK7QJBv.cjs';
|
|
7
|
-
import 'jose';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
|
|
10
10
|
interface DB {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.
|
|
1
|
+
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.CTQDLJN7.mjs';
|
|
2
2
|
import '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
3
3
|
import 'zod';
|
|
4
|
+
import '../../shared/better-auth.BTnAiI8e.mjs';
|
|
5
|
+
import 'jose';
|
|
4
6
|
import 'kysely';
|
|
5
7
|
import 'better-call';
|
|
6
|
-
import '../../shared/better-auth.BjoUuJNr.mjs';
|
|
7
|
-
import 'jose';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
|
|
10
10
|
interface DB {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.
|
|
1
|
+
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.tpz8D0AA.js';
|
|
2
2
|
import '../../shared/better-auth.Bi8FQwDD.js';
|
|
3
3
|
import 'zod';
|
|
4
|
+
import '../../shared/better-auth.BAfIsot3.js';
|
|
5
|
+
import 'jose';
|
|
4
6
|
import 'kysely';
|
|
5
7
|
import 'better-call';
|
|
6
|
-
import '../../shared/better-auth.Dd96RDNl.js';
|
|
7
|
-
import 'jose';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
|
|
10
10
|
interface DB {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { f as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../../shared/better-auth.
|
|
2
|
+
import { f as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../../shared/better-auth.BDAwKjlL.cjs';
|
|
3
3
|
import '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import 'better-
|
|
6
|
-
import '../../shared/better-auth.CzK7QJBv.cjs';
|
|
5
|
+
import '../../shared/better-auth.CH6fRG6d.cjs';
|
|
7
6
|
import 'jose';
|
|
7
|
+
import 'better-call';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
|
|
10
10
|
declare const createKyselyAdapter: (config: BetterAuthOptions) => Promise<{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { f as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../../shared/better-auth.
|
|
2
|
+
import { f as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../../shared/better-auth.CTQDLJN7.mjs';
|
|
3
3
|
import '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import 'better-
|
|
6
|
-
import '../../shared/better-auth.BjoUuJNr.mjs';
|
|
5
|
+
import '../../shared/better-auth.BTnAiI8e.mjs';
|
|
7
6
|
import 'jose';
|
|
7
|
+
import 'better-call';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
|
|
10
10
|
declare const createKyselyAdapter: (config: BetterAuthOptions) => Promise<{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { f as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../../shared/better-auth.
|
|
2
|
+
import { f as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../../shared/better-auth.tpz8D0AA.js';
|
|
3
3
|
import '../../shared/better-auth.Bi8FQwDD.js';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import 'better-
|
|
6
|
-
import '../../shared/better-auth.Dd96RDNl.js';
|
|
5
|
+
import '../../shared/better-auth.BAfIsot3.js';
|
|
7
6
|
import 'jose';
|
|
7
|
+
import 'better-call';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
|
|
10
10
|
declare const createKyselyAdapter: (config: BetterAuthOptions) => Promise<{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.
|
|
1
|
+
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.BDAwKjlL.cjs';
|
|
2
2
|
import '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
3
3
|
import 'zod';
|
|
4
|
+
import '../../shared/better-auth.CH6fRG6d.cjs';
|
|
5
|
+
import 'jose';
|
|
4
6
|
import 'kysely';
|
|
5
7
|
import 'better-call';
|
|
6
|
-
import '../../shared/better-auth.CzK7QJBv.cjs';
|
|
7
|
-
import 'jose';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
|
|
10
10
|
interface MemoryDB {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.
|
|
1
|
+
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.CTQDLJN7.mjs';
|
|
2
2
|
import '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
3
3
|
import 'zod';
|
|
4
|
+
import '../../shared/better-auth.BTnAiI8e.mjs';
|
|
5
|
+
import 'jose';
|
|
4
6
|
import 'kysely';
|
|
5
7
|
import 'better-call';
|
|
6
|
-
import '../../shared/better-auth.BjoUuJNr.mjs';
|
|
7
|
-
import 'jose';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
|
|
10
10
|
interface MemoryDB {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.
|
|
1
|
+
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.tpz8D0AA.js';
|
|
2
2
|
import '../../shared/better-auth.Bi8FQwDD.js';
|
|
3
3
|
import 'zod';
|
|
4
|
+
import '../../shared/better-auth.BAfIsot3.js';
|
|
5
|
+
import 'jose';
|
|
4
6
|
import 'kysely';
|
|
5
7
|
import 'better-call';
|
|
6
|
-
import '../../shared/better-auth.Dd96RDNl.js';
|
|
7
|
-
import 'jose';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
|
|
10
10
|
interface MemoryDB {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Db } from 'mongodb';
|
|
2
|
-
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.
|
|
2
|
+
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.BDAwKjlL.cjs';
|
|
3
3
|
import '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
4
4
|
import 'zod';
|
|
5
|
+
import '../../shared/better-auth.CH6fRG6d.cjs';
|
|
6
|
+
import 'jose';
|
|
5
7
|
import 'kysely';
|
|
6
8
|
import 'better-call';
|
|
7
|
-
import '../../shared/better-auth.CzK7QJBv.cjs';
|
|
8
|
-
import 'jose';
|
|
9
9
|
import 'better-sqlite3';
|
|
10
10
|
|
|
11
11
|
declare const mongodbAdapter: (db: Db) => (options: BetterAuthOptions) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Db } from 'mongodb';
|
|
2
|
-
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.
|
|
2
|
+
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.CTQDLJN7.mjs';
|
|
3
3
|
import '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
4
4
|
import 'zod';
|
|
5
|
+
import '../../shared/better-auth.BTnAiI8e.mjs';
|
|
6
|
+
import 'jose';
|
|
5
7
|
import 'kysely';
|
|
6
8
|
import 'better-call';
|
|
7
|
-
import '../../shared/better-auth.BjoUuJNr.mjs';
|
|
8
|
-
import 'jose';
|
|
9
9
|
import 'better-sqlite3';
|
|
10
10
|
|
|
11
11
|
declare const mongodbAdapter: (db: Db) => (options: BetterAuthOptions) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Db } from 'mongodb';
|
|
2
|
-
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.
|
|
2
|
+
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.tpz8D0AA.js';
|
|
3
3
|
import '../../shared/better-auth.Bi8FQwDD.js';
|
|
4
4
|
import 'zod';
|
|
5
|
+
import '../../shared/better-auth.BAfIsot3.js';
|
|
6
|
+
import 'jose';
|
|
5
7
|
import 'kysely';
|
|
6
8
|
import 'better-call';
|
|
7
|
-
import '../../shared/better-auth.Dd96RDNl.js';
|
|
8
|
-
import 'jose';
|
|
9
9
|
import 'better-sqlite3';
|
|
10
10
|
|
|
11
11
|
declare const mongodbAdapter: (db: Db) => (options: BetterAuthOptions) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.
|
|
1
|
+
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.BDAwKjlL.cjs';
|
|
2
2
|
import '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
3
3
|
import 'zod';
|
|
4
|
+
import '../../shared/better-auth.CH6fRG6d.cjs';
|
|
5
|
+
import 'jose';
|
|
4
6
|
import 'kysely';
|
|
5
7
|
import 'better-call';
|
|
6
|
-
import '../../shared/better-auth.CzK7QJBv.cjs';
|
|
7
|
-
import 'jose';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
|
|
10
10
|
interface PrismaConfig {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.
|
|
1
|
+
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.CTQDLJN7.mjs';
|
|
2
2
|
import '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
3
3
|
import 'zod';
|
|
4
|
+
import '../../shared/better-auth.BTnAiI8e.mjs';
|
|
5
|
+
import 'jose';
|
|
4
6
|
import 'kysely';
|
|
5
7
|
import 'better-call';
|
|
6
|
-
import '../../shared/better-auth.BjoUuJNr.mjs';
|
|
7
|
-
import 'jose';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
|
|
10
10
|
interface PrismaConfig {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.
|
|
1
|
+
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.tpz8D0AA.js';
|
|
2
2
|
import '../../shared/better-auth.Bi8FQwDD.js';
|
|
3
3
|
import 'zod';
|
|
4
|
+
import '../../shared/better-auth.BAfIsot3.js';
|
|
5
|
+
import 'jose';
|
|
4
6
|
import 'kysely';
|
|
5
7
|
import 'better-call';
|
|
6
|
-
import '../../shared/better-auth.Dd96RDNl.js';
|
|
7
|
-
import 'jose';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
|
|
10
10
|
interface PrismaConfig {
|
package/dist/adapters/test.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { f as BetterAuthOptions, g as Adapter } from '../shared/better-auth.
|
|
1
|
+
import { f as BetterAuthOptions, g as Adapter } from '../shared/better-auth.BDAwKjlL.cjs';
|
|
2
2
|
import '../shared/better-auth.Bi8FQwDD.cjs';
|
|
3
3
|
import 'zod';
|
|
4
|
+
import '../shared/better-auth.CH6fRG6d.cjs';
|
|
5
|
+
import 'jose';
|
|
4
6
|
import 'kysely';
|
|
5
7
|
import 'better-call';
|
|
6
|
-
import '../shared/better-auth.CzK7QJBv.cjs';
|
|
7
|
-
import 'jose';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
|
|
10
10
|
interface AdapterTestOptions {
|
package/dist/adapters/test.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { f as BetterAuthOptions, g as Adapter } from '../shared/better-auth.
|
|
1
|
+
import { f as BetterAuthOptions, g as Adapter } from '../shared/better-auth.CTQDLJN7.mjs';
|
|
2
2
|
import '../shared/better-auth.Bi8FQwDD.mjs';
|
|
3
3
|
import 'zod';
|
|
4
|
+
import '../shared/better-auth.BTnAiI8e.mjs';
|
|
5
|
+
import 'jose';
|
|
4
6
|
import 'kysely';
|
|
5
7
|
import 'better-call';
|
|
6
|
-
import '../shared/better-auth.BjoUuJNr.mjs';
|
|
7
|
-
import 'jose';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
|
|
10
10
|
interface AdapterTestOptions {
|
package/dist/adapters/test.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { f as BetterAuthOptions, g as Adapter } from '../shared/better-auth.
|
|
1
|
+
import { f as BetterAuthOptions, g as Adapter } from '../shared/better-auth.tpz8D0AA.js';
|
|
2
2
|
import '../shared/better-auth.Bi8FQwDD.js';
|
|
3
3
|
import 'zod';
|
|
4
|
+
import '../shared/better-auth.BAfIsot3.js';
|
|
5
|
+
import 'jose';
|
|
4
6
|
import 'kysely';
|
|
5
7
|
import 'better-call';
|
|
6
|
-
import '../shared/better-auth.Dd96RDNl.js';
|
|
7
|
-
import 'jose';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
|
|
10
10
|
interface AdapterTestOptions {
|
package/dist/api/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const betterCall = require('better-call');
|
|
4
|
-
const
|
|
4
|
+
const refreshToken = require('../shared/better-auth.b0MLzqQX.cjs');
|
|
5
5
|
const zod = require('zod');
|
|
6
6
|
const cookies_index = require('../cookies/index.cjs');
|
|
7
7
|
const schema = require('../shared/better-auth.C5H9XEzZ.cjs');
|
|
@@ -12,7 +12,7 @@ const defu = require('defu');
|
|
|
12
12
|
require('../social-providers/index.cjs');
|
|
13
13
|
require('@better-fetch/fetch');
|
|
14
14
|
require('jose');
|
|
15
|
-
require('../shared/better-auth.
|
|
15
|
+
require('../shared/better-auth.BLV8UOn8.cjs');
|
|
16
16
|
require('../shared/better-auth.C1hdVENX.cjs');
|
|
17
17
|
require('@better-auth/utils/hash');
|
|
18
18
|
require('@better-auth/utils/base64');
|
|
@@ -39,7 +39,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
39
39
|
|
|
40
40
|
const defu__default = /*#__PURE__*/_interopDefaultCompat(defu);
|
|
41
41
|
|
|
42
|
-
const signUpEmail = () =>
|
|
42
|
+
const signUpEmail = () => refreshToken.createAuthEndpoint(
|
|
43
43
|
"/sign-up/email",
|
|
44
44
|
{
|
|
45
45
|
method: "POST",
|
|
@@ -126,28 +126,28 @@ const signUpEmail = () => account.createAuthEndpoint(
|
|
|
126
126
|
const isValidEmail = zod.z.string().email().safeParse(email);
|
|
127
127
|
if (!isValidEmail.success) {
|
|
128
128
|
throw new betterCall.APIError("BAD_REQUEST", {
|
|
129
|
-
message:
|
|
129
|
+
message: refreshToken.BASE_ERROR_CODES.INVALID_EMAIL
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
const minPasswordLength = ctx.context.password.config.minPasswordLength;
|
|
133
133
|
if (password.length < minPasswordLength) {
|
|
134
134
|
ctx.context.logger.error("Password is too short");
|
|
135
135
|
throw new betterCall.APIError("BAD_REQUEST", {
|
|
136
|
-
message:
|
|
136
|
+
message: refreshToken.BASE_ERROR_CODES.PASSWORD_TOO_SHORT
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
139
|
const maxPasswordLength = ctx.context.password.config.maxPasswordLength;
|
|
140
140
|
if (password.length > maxPasswordLength) {
|
|
141
141
|
ctx.context.logger.error("Password is too long");
|
|
142
142
|
throw new betterCall.APIError("BAD_REQUEST", {
|
|
143
|
-
message:
|
|
143
|
+
message: refreshToken.BASE_ERROR_CODES.PASSWORD_TOO_LONG
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
146
|
const dbUser = await ctx.context.internalAdapter.findUserByEmail(email);
|
|
147
147
|
if (dbUser?.user) {
|
|
148
148
|
ctx.context.logger.info(`Sign-up attempt for existing email: ${email}`);
|
|
149
149
|
throw new betterCall.APIError("UNPROCESSABLE_ENTITY", {
|
|
150
|
-
message:
|
|
150
|
+
message: refreshToken.BASE_ERROR_CODES.USER_ALREADY_EXISTS
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
153
|
const additionalData = schema.parseUserInput(
|
|
@@ -168,7 +168,7 @@ const signUpEmail = () => account.createAuthEndpoint(
|
|
|
168
168
|
);
|
|
169
169
|
if (!createdUser) {
|
|
170
170
|
throw new betterCall.APIError("BAD_REQUEST", {
|
|
171
|
-
message:
|
|
171
|
+
message: refreshToken.BASE_ERROR_CODES.FAILED_TO_CREATE_USER
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
174
|
} catch (e) {
|
|
@@ -176,13 +176,13 @@ const signUpEmail = () => account.createAuthEndpoint(
|
|
|
176
176
|
ctx.context.logger.error("Failed to create user", e);
|
|
177
177
|
}
|
|
178
178
|
throw new betterCall.APIError("UNPROCESSABLE_ENTITY", {
|
|
179
|
-
message:
|
|
179
|
+
message: refreshToken.BASE_ERROR_CODES.FAILED_TO_CREATE_USER,
|
|
180
180
|
details: e
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
183
|
if (!createdUser) {
|
|
184
184
|
throw new betterCall.APIError("UNPROCESSABLE_ENTITY", {
|
|
185
|
-
message:
|
|
185
|
+
message: refreshToken.BASE_ERROR_CODES.FAILED_TO_CREATE_USER
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
const hash = await ctx.context.password.hash(password);
|
|
@@ -196,7 +196,7 @@ const signUpEmail = () => account.createAuthEndpoint(
|
|
|
196
196
|
ctx
|
|
197
197
|
);
|
|
198
198
|
if (ctx.context.options.emailVerification?.sendOnSignUp || ctx.context.options.emailAndPassword.requireEmailVerification) {
|
|
199
|
-
const token = await
|
|
199
|
+
const token = await refreshToken.createEmailVerificationToken(
|
|
200
200
|
ctx.context.secret,
|
|
201
201
|
createdUser.email,
|
|
202
202
|
void 0,
|
|
@@ -232,7 +232,7 @@ const signUpEmail = () => account.createAuthEndpoint(
|
|
|
232
232
|
);
|
|
233
233
|
if (!session) {
|
|
234
234
|
throw new betterCall.APIError("BAD_REQUEST", {
|
|
235
|
-
message:
|
|
235
|
+
message: refreshToken.BASE_ERROR_CODES.FAILED_TO_CREATE_SESSION
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
238
|
await cookies_index.setSessionCookie(ctx, {
|
|
@@ -386,7 +386,7 @@ async function onRequestRateLimit(req, ctx) {
|
|
|
386
386
|
if (ctx.rateLimit.customRules) {
|
|
387
387
|
const _path = Object.keys(ctx.rateLimit.customRules).find((p) => {
|
|
388
388
|
if (p.includes("*")) {
|
|
389
|
-
const isMatch =
|
|
389
|
+
const isMatch = refreshToken.wildcardMatch(p)(path);
|
|
390
390
|
return isMatch;
|
|
391
391
|
}
|
|
392
392
|
return p === path;
|
|
@@ -641,36 +641,37 @@ function getEndpoints(ctx, options) {
|
|
|
641
641
|
})
|
|
642
642
|
).filter((plugin) => plugin !== void 0).flat() || [];
|
|
643
643
|
const baseEndpoints = {
|
|
644
|
-
signInSocial:
|
|
645
|
-
callbackOAuth:
|
|
646
|
-
getSession:
|
|
647
|
-
signOut:
|
|
644
|
+
signInSocial: refreshToken.signInSocial,
|
|
645
|
+
callbackOAuth: refreshToken.callbackOAuth,
|
|
646
|
+
getSession: refreshToken.getSession(),
|
|
647
|
+
signOut: refreshToken.signOut,
|
|
648
648
|
signUpEmail: signUpEmail(),
|
|
649
|
-
signInEmail:
|
|
650
|
-
forgetPassword:
|
|
651
|
-
resetPassword:
|
|
652
|
-
verifyEmail:
|
|
653
|
-
sendVerificationEmail:
|
|
654
|
-
changeEmail:
|
|
655
|
-
changePassword:
|
|
656
|
-
setPassword:
|
|
657
|
-
updateUser:
|
|
658
|
-
deleteUser:
|
|
659
|
-
forgetPasswordCallback:
|
|
660
|
-
listSessions:
|
|
661
|
-
revokeSession:
|
|
662
|
-
revokeSessions:
|
|
663
|
-
revokeOtherSessions:
|
|
664
|
-
linkSocialAccount:
|
|
665
|
-
listUserAccounts:
|
|
666
|
-
deleteUserCallback:
|
|
667
|
-
unlinkAccount:
|
|
649
|
+
signInEmail: refreshToken.signInEmail,
|
|
650
|
+
forgetPassword: refreshToken.forgetPassword,
|
|
651
|
+
resetPassword: refreshToken.resetPassword,
|
|
652
|
+
verifyEmail: refreshToken.verifyEmail,
|
|
653
|
+
sendVerificationEmail: refreshToken.sendVerificationEmail,
|
|
654
|
+
changeEmail: refreshToken.changeEmail,
|
|
655
|
+
changePassword: refreshToken.changePassword,
|
|
656
|
+
setPassword: refreshToken.setPassword,
|
|
657
|
+
updateUser: refreshToken.updateUser(),
|
|
658
|
+
deleteUser: refreshToken.deleteUser,
|
|
659
|
+
forgetPasswordCallback: refreshToken.forgetPasswordCallback,
|
|
660
|
+
listSessions: refreshToken.listSessions(),
|
|
661
|
+
revokeSession: refreshToken.revokeSession,
|
|
662
|
+
revokeSessions: refreshToken.revokeSessions,
|
|
663
|
+
revokeOtherSessions: refreshToken.revokeOtherSessions,
|
|
664
|
+
linkSocialAccount: refreshToken.linkSocialAccount,
|
|
665
|
+
listUserAccounts: refreshToken.listUserAccounts,
|
|
666
|
+
deleteUserCallback: refreshToken.deleteUserCallback,
|
|
667
|
+
unlinkAccount: refreshToken.unlinkAccount,
|
|
668
|
+
refreshToken: refreshToken.refreshToken
|
|
668
669
|
};
|
|
669
670
|
const endpoints = {
|
|
670
671
|
...baseEndpoints,
|
|
671
672
|
...pluginEndpoints,
|
|
672
|
-
ok:
|
|
673
|
-
error:
|
|
673
|
+
ok: refreshToken.ok,
|
|
674
|
+
error: refreshToken.error
|
|
674
675
|
};
|
|
675
676
|
const api = toAuthEndpoints(endpoints, ctx);
|
|
676
677
|
return {
|
|
@@ -690,7 +691,7 @@ const router = (ctx, options) => {
|
|
|
690
691
|
routerMiddleware: [
|
|
691
692
|
{
|
|
692
693
|
path: "/**",
|
|
693
|
-
middleware:
|
|
694
|
+
middleware: refreshToken.originCheckMiddleware
|
|
694
695
|
},
|
|
695
696
|
...middlewares
|
|
696
697
|
],
|
|
@@ -758,42 +759,43 @@ const router = (ctx, options) => {
|
|
|
758
759
|
};
|
|
759
760
|
|
|
760
761
|
exports.APIError = betterCall.APIError;
|
|
761
|
-
exports.callbackOAuth =
|
|
762
|
-
exports.changeEmail =
|
|
763
|
-
exports.changePassword =
|
|
764
|
-
exports.createAuthEndpoint =
|
|
765
|
-
exports.createAuthMiddleware =
|
|
766
|
-
exports.createEmailVerificationToken =
|
|
767
|
-
exports.deleteUser =
|
|
768
|
-
exports.deleteUserCallback =
|
|
769
|
-
exports.error =
|
|
770
|
-
exports.forgetPassword =
|
|
771
|
-
exports.forgetPasswordCallback =
|
|
772
|
-
exports.freshSessionMiddleware =
|
|
773
|
-
exports.getSession =
|
|
774
|
-
exports.getSessionFromCtx =
|
|
775
|
-
exports.linkSocialAccount =
|
|
776
|
-
exports.listSessions =
|
|
777
|
-
exports.listUserAccounts =
|
|
778
|
-
exports.ok =
|
|
779
|
-
exports.optionsMiddleware =
|
|
780
|
-
exports.originCheck =
|
|
781
|
-
exports.originCheckMiddleware =
|
|
782
|
-
exports.
|
|
783
|
-
exports.
|
|
784
|
-
exports.
|
|
785
|
-
exports.
|
|
786
|
-
exports.
|
|
787
|
-
exports.
|
|
788
|
-
exports.
|
|
789
|
-
exports.
|
|
790
|
-
exports.
|
|
791
|
-
exports.
|
|
792
|
-
exports.
|
|
793
|
-
exports.
|
|
794
|
-
exports.
|
|
795
|
-
exports.
|
|
796
|
-
exports.
|
|
762
|
+
exports.callbackOAuth = refreshToken.callbackOAuth;
|
|
763
|
+
exports.changeEmail = refreshToken.changeEmail;
|
|
764
|
+
exports.changePassword = refreshToken.changePassword;
|
|
765
|
+
exports.createAuthEndpoint = refreshToken.createAuthEndpoint;
|
|
766
|
+
exports.createAuthMiddleware = refreshToken.createAuthMiddleware;
|
|
767
|
+
exports.createEmailVerificationToken = refreshToken.createEmailVerificationToken;
|
|
768
|
+
exports.deleteUser = refreshToken.deleteUser;
|
|
769
|
+
exports.deleteUserCallback = refreshToken.deleteUserCallback;
|
|
770
|
+
exports.error = refreshToken.error;
|
|
771
|
+
exports.forgetPassword = refreshToken.forgetPassword;
|
|
772
|
+
exports.forgetPasswordCallback = refreshToken.forgetPasswordCallback;
|
|
773
|
+
exports.freshSessionMiddleware = refreshToken.freshSessionMiddleware;
|
|
774
|
+
exports.getSession = refreshToken.getSession;
|
|
775
|
+
exports.getSessionFromCtx = refreshToken.getSessionFromCtx;
|
|
776
|
+
exports.linkSocialAccount = refreshToken.linkSocialAccount;
|
|
777
|
+
exports.listSessions = refreshToken.listSessions;
|
|
778
|
+
exports.listUserAccounts = refreshToken.listUserAccounts;
|
|
779
|
+
exports.ok = refreshToken.ok;
|
|
780
|
+
exports.optionsMiddleware = refreshToken.optionsMiddleware;
|
|
781
|
+
exports.originCheck = refreshToken.originCheck;
|
|
782
|
+
exports.originCheckMiddleware = refreshToken.originCheckMiddleware;
|
|
783
|
+
exports.refreshToken = refreshToken.refreshToken;
|
|
784
|
+
exports.requestOnlySessionMiddleware = refreshToken.requestOnlySessionMiddleware;
|
|
785
|
+
exports.resetPassword = refreshToken.resetPassword;
|
|
786
|
+
exports.revokeOtherSessions = refreshToken.revokeOtherSessions;
|
|
787
|
+
exports.revokeSession = refreshToken.revokeSession;
|
|
788
|
+
exports.revokeSessions = refreshToken.revokeSessions;
|
|
789
|
+
exports.sendVerificationEmail = refreshToken.sendVerificationEmail;
|
|
790
|
+
exports.sendVerificationEmailFn = refreshToken.sendVerificationEmailFn;
|
|
791
|
+
exports.sessionMiddleware = refreshToken.sessionMiddleware;
|
|
792
|
+
exports.setPassword = refreshToken.setPassword;
|
|
793
|
+
exports.signInEmail = refreshToken.signInEmail;
|
|
794
|
+
exports.signInSocial = refreshToken.signInSocial;
|
|
795
|
+
exports.signOut = refreshToken.signOut;
|
|
796
|
+
exports.unlinkAccount = refreshToken.unlinkAccount;
|
|
797
|
+
exports.updateUser = refreshToken.updateUser;
|
|
798
|
+
exports.verifyEmail = refreshToken.verifyEmail;
|
|
797
799
|
exports.getEndpoints = getEndpoints;
|
|
798
800
|
exports.router = router;
|
|
799
801
|
exports.signUpEmail = signUpEmail;
|
package/dist/api/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import '../shared/better-auth.
|
|
2
|
-
export { d as AuthEndpoint, e as AuthMiddleware, aE as callbackOAuth, a$ as changeEmail, aX as changePassword, b as createAuthEndpoint, c as createAuthMiddleware, aS as createEmailVerificationToken, aZ as deleteUser, a_ as deleteUserCallback, b0 as error, aP as forgetPassword, aQ as forgetPasswordCallback, aJ as freshSessionMiddleware, aA as getEndpoints, aF as getSession, aG as getSessionFromCtx, b4 as linkSocialAccount, aK as listSessions, b3 as listUserAccounts, b1 as ok, o as optionsMiddleware,
|
|
1
|
+
import '../shared/better-auth.CH6fRG6d.cjs';
|
|
2
|
+
export { d as AuthEndpoint, e as AuthMiddleware, aE as callbackOAuth, a$ as changeEmail, aX as changePassword, b as createAuthEndpoint, c as createAuthMiddleware, aS as createEmailVerificationToken, aZ as deleteUser, a_ as deleteUserCallback, b0 as error, aP as forgetPassword, aQ as forgetPasswordCallback, aJ as freshSessionMiddleware, aA as getEndpoints, aF as getSession, aG as getSessionFromCtx, b4 as linkSocialAccount, aK as listSessions, b3 as listUserAccounts, b1 as ok, o as optionsMiddleware, b8 as originCheck, b7 as originCheckMiddleware, b6 as refreshToken, aI as requestOnlySessionMiddleware, aR as resetPassword, aN as revokeOtherSessions, aL as revokeSession, aM as revokeSessions, aB as router, aU as sendVerificationEmail, aT as sendVerificationEmailFn, aH as sessionMiddleware, aY as setPassword, aD as signInEmail, aC as signInSocial, aO as signOut, b2 as signUpEmail, b5 as unlinkAccount, aW as updateUser, aV as verifyEmail } from '../shared/better-auth.BDAwKjlL.cjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
|
+
import '../shared/better-auth.Bi8FQwDD.cjs';
|
|
4
5
|
import 'zod';
|
|
5
|
-
import 'kysely';
|
|
6
|
-
import '../shared/better-auth.CzK7QJBv.cjs';
|
|
7
6
|
import 'jose';
|
|
7
|
+
import 'kysely';
|
|
8
8
|
import 'better-sqlite3';
|
package/dist/api/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import '../shared/better-auth.
|
|
2
|
-
export { d as AuthEndpoint, e as AuthMiddleware, aE as callbackOAuth, a$ as changeEmail, aX as changePassword, b as createAuthEndpoint, c as createAuthMiddleware, aS as createEmailVerificationToken, aZ as deleteUser, a_ as deleteUserCallback, b0 as error, aP as forgetPassword, aQ as forgetPasswordCallback, aJ as freshSessionMiddleware, aA as getEndpoints, aF as getSession, aG as getSessionFromCtx, b4 as linkSocialAccount, aK as listSessions, b3 as listUserAccounts, b1 as ok, o as optionsMiddleware,
|
|
1
|
+
import '../shared/better-auth.BTnAiI8e.mjs';
|
|
2
|
+
export { d as AuthEndpoint, e as AuthMiddleware, aE as callbackOAuth, a$ as changeEmail, aX as changePassword, b as createAuthEndpoint, c as createAuthMiddleware, aS as createEmailVerificationToken, aZ as deleteUser, a_ as deleteUserCallback, b0 as error, aP as forgetPassword, aQ as forgetPasswordCallback, aJ as freshSessionMiddleware, aA as getEndpoints, aF as getSession, aG as getSessionFromCtx, b4 as linkSocialAccount, aK as listSessions, b3 as listUserAccounts, b1 as ok, o as optionsMiddleware, b8 as originCheck, b7 as originCheckMiddleware, b6 as refreshToken, aI as requestOnlySessionMiddleware, aR as resetPassword, aN as revokeOtherSessions, aL as revokeSession, aM as revokeSessions, aB as router, aU as sendVerificationEmail, aT as sendVerificationEmailFn, aH as sessionMiddleware, aY as setPassword, aD as signInEmail, aC as signInSocial, aO as signOut, b2 as signUpEmail, b5 as unlinkAccount, aW as updateUser, aV as verifyEmail } from '../shared/better-auth.CTQDLJN7.mjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
|
+
import '../shared/better-auth.Bi8FQwDD.mjs';
|
|
4
5
|
import 'zod';
|
|
5
|
-
import 'kysely';
|
|
6
|
-
import '../shared/better-auth.BjoUuJNr.mjs';
|
|
7
6
|
import 'jose';
|
|
7
|
+
import 'kysely';
|
|
8
8
|
import 'better-sqlite3';
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import '../shared/better-auth.
|
|
2
|
-
export { d as AuthEndpoint, e as AuthMiddleware, aE as callbackOAuth, a$ as changeEmail, aX as changePassword, b as createAuthEndpoint, c as createAuthMiddleware, aS as createEmailVerificationToken, aZ as deleteUser, a_ as deleteUserCallback, b0 as error, aP as forgetPassword, aQ as forgetPasswordCallback, aJ as freshSessionMiddleware, aA as getEndpoints, aF as getSession, aG as getSessionFromCtx, b4 as linkSocialAccount, aK as listSessions, b3 as listUserAccounts, b1 as ok, o as optionsMiddleware,
|
|
1
|
+
import '../shared/better-auth.BAfIsot3.js';
|
|
2
|
+
export { d as AuthEndpoint, e as AuthMiddleware, aE as callbackOAuth, a$ as changeEmail, aX as changePassword, b as createAuthEndpoint, c as createAuthMiddleware, aS as createEmailVerificationToken, aZ as deleteUser, a_ as deleteUserCallback, b0 as error, aP as forgetPassword, aQ as forgetPasswordCallback, aJ as freshSessionMiddleware, aA as getEndpoints, aF as getSession, aG as getSessionFromCtx, b4 as linkSocialAccount, aK as listSessions, b3 as listUserAccounts, b1 as ok, o as optionsMiddleware, b8 as originCheck, b7 as originCheckMiddleware, b6 as refreshToken, aI as requestOnlySessionMiddleware, aR as resetPassword, aN as revokeOtherSessions, aL as revokeSession, aM as revokeSessions, aB as router, aU as sendVerificationEmail, aT as sendVerificationEmailFn, aH as sessionMiddleware, aY as setPassword, aD as signInEmail, aC as signInSocial, aO as signOut, b2 as signUpEmail, b5 as unlinkAccount, aW as updateUser, aV as verifyEmail } from '../shared/better-auth.tpz8D0AA.js';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
|
+
import '../shared/better-auth.Bi8FQwDD.js';
|
|
4
5
|
import 'zod';
|
|
5
|
-
import 'kysely';
|
|
6
|
-
import '../shared/better-auth.Dd96RDNl.js';
|
|
7
6
|
import 'jose';
|
|
7
|
+
import 'kysely';
|
|
8
8
|
import 'better-sqlite3';
|
package/dist/api/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { APIError, toResponse, createRouter } from 'better-call';
|
|
2
2
|
export { APIError } from 'better-call';
|
|
3
|
-
import { a as createAuthEndpoint, B as BASE_ERROR_CODES, d as createEmailVerificationToken, w as wildcardMatch, l as listSessions, u as updateUser, e as getSession, i as originCheckMiddleware, j as error, k as ok, m as unlinkAccount, n as deleteUserCallback, p as listUserAccounts, q as linkSocialAccount,
|
|
4
|
-
export { c as createAuthMiddleware, f as freshSessionMiddleware, g as getSessionFromCtx,
|
|
3
|
+
import { a as createAuthEndpoint, B as BASE_ERROR_CODES, d as createEmailVerificationToken, w as wildcardMatch, l as listSessions, u as updateUser, e as getSession, i as originCheckMiddleware, j as error, k as ok, r as refreshToken, m as unlinkAccount, n as deleteUserCallback, p as listUserAccounts, q as linkSocialAccount, t as revokeOtherSessions, v as revokeSessions, x as revokeSession, y as forgetPasswordCallback, z as deleteUser, A as setPassword, C as changePassword, D as changeEmail, E as sendVerificationEmail, F as verifyEmail, G as resetPassword, I as forgetPassword, J as signInEmail, K as signOut, L as callbackOAuth, M as signInSocial } from '../shared/better-auth.DQ-pFMwp.mjs';
|
|
4
|
+
export { c as createAuthMiddleware, f as freshSessionMiddleware, g as getSessionFromCtx, O as optionsMiddleware, o as originCheck, N as requestOnlySessionMiddleware, b as sendVerificationEmailFn, s as sessionMiddleware } from '../shared/better-auth.DQ-pFMwp.mjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { setSessionCookie } from '../cookies/index.mjs';
|
|
7
7
|
import { f as parseUserInput } from '../shared/better-auth.CepcSj5H.mjs';
|
|
@@ -12,7 +12,7 @@ import defu from 'defu';
|
|
|
12
12
|
import '../social-providers/index.mjs';
|
|
13
13
|
import '@better-fetch/fetch';
|
|
14
14
|
import 'jose';
|
|
15
|
-
import '../shared/better-auth.
|
|
15
|
+
import '../shared/better-auth.B2THyVQH.mjs';
|
|
16
16
|
import '../shared/better-auth.CW6D9eSx.mjs';
|
|
17
17
|
import '@better-auth/utils/hash';
|
|
18
18
|
import '@better-auth/utils/base64';
|
|
@@ -660,7 +660,8 @@ function getEndpoints(ctx, options) {
|
|
|
660
660
|
linkSocialAccount,
|
|
661
661
|
listUserAccounts,
|
|
662
662
|
deleteUserCallback,
|
|
663
|
-
unlinkAccount
|
|
663
|
+
unlinkAccount,
|
|
664
|
+
refreshToken
|
|
664
665
|
};
|
|
665
666
|
const endpoints = {
|
|
666
667
|
...baseEndpoints,
|
|
@@ -753,4 +754,4 @@ const router = (ctx, options) => {
|
|
|
753
754
|
});
|
|
754
755
|
};
|
|
755
756
|
|
|
756
|
-
export { callbackOAuth, changeEmail, changePassword, createAuthEndpoint, createEmailVerificationToken, deleteUser, deleteUserCallback, error, forgetPassword, forgetPasswordCallback, getEndpoints, getSession, linkSocialAccount, listSessions, listUserAccounts, ok, originCheckMiddleware, resetPassword, revokeOtherSessions, revokeSession, revokeSessions, router, sendVerificationEmail, setPassword, signInEmail, signInSocial, signOut, signUpEmail, unlinkAccount, updateUser, verifyEmail };
|
|
757
|
+
export { callbackOAuth, changeEmail, changePassword, createAuthEndpoint, createEmailVerificationToken, deleteUser, deleteUserCallback, error, forgetPassword, forgetPasswordCallback, getEndpoints, getSession, linkSocialAccount, listSessions, listUserAccounts, ok, originCheckMiddleware, refreshToken, resetPassword, revokeOtherSessions, revokeSession, revokeSessions, router, sendVerificationEmail, setPassword, signInEmail, signInSocial, signOut, signUpEmail, unlinkAccount, updateUser, verifyEmail };
|