better-auth 1.2.9 → 1.2.10-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 +1 -1
- package/dist/adapters/drizzle-adapter/index.d.mts +1 -1
- package/dist/adapters/drizzle-adapter/index.d.ts +1 -1
- package/dist/adapters/index.d.cts +2 -2
- package/dist/adapters/index.d.mts +2 -2
- package/dist/adapters/index.d.ts +2 -2
- package/dist/adapters/kysely-adapter/index.d.cts +1 -1
- package/dist/adapters/kysely-adapter/index.d.mts +1 -1
- package/dist/adapters/kysely-adapter/index.d.ts +1 -1
- package/dist/adapters/memory-adapter/index.d.cts +1 -1
- package/dist/adapters/memory-adapter/index.d.mts +1 -1
- package/dist/adapters/memory-adapter/index.d.ts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.cts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.mts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.ts +1 -1
- package/dist/adapters/prisma-adapter/index.cjs +2 -0
- package/dist/adapters/prisma-adapter/index.d.cts +1 -1
- package/dist/adapters/prisma-adapter/index.d.mts +1 -1
- package/dist/adapters/prisma-adapter/index.d.ts +1 -1
- package/dist/adapters/prisma-adapter/index.mjs +2 -0
- package/dist/adapters/test.d.cts +1 -1
- package/dist/adapters/test.d.mts +1 -1
- package/dist/adapters/test.d.ts +1 -1
- package/dist/api/index.d.cts +1 -1
- package/dist/api/index.d.mts +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/client/index.d.cts +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/plugins/index.d.cts +6 -6
- package/dist/client/plugins/index.d.mts +6 -6
- package/dist/client/plugins/index.d.ts +6 -6
- package/dist/client/react/index.d.cts +7 -7
- package/dist/client/react/index.d.mts +7 -7
- package/dist/client/react/index.d.ts +7 -7
- package/dist/client/solid/index.d.cts +1 -1
- package/dist/client/solid/index.d.mts +1 -1
- package/dist/client/solid/index.d.ts +1 -1
- package/dist/client/svelte/index.d.cts +7 -7
- package/dist/client/svelte/index.d.mts +7 -7
- package/dist/client/svelte/index.d.ts +7 -7
- package/dist/client/vue/index.d.cts +1 -1
- package/dist/client/vue/index.d.mts +1 -1
- package/dist/client/vue/index.d.ts +1 -1
- package/dist/cookies/index.d.cts +1 -1
- package/dist/cookies/index.d.mts +1 -1
- package/dist/cookies/index.d.ts +1 -1
- package/dist/db/index.d.cts +2 -2
- package/dist/db/index.d.mts +2 -2
- package/dist/db/index.d.ts +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/integrations/next-js.cjs +1 -1
- package/dist/integrations/next-js.d.cts +1 -1
- package/dist/integrations/next-js.d.mts +1 -1
- package/dist/integrations/next-js.d.ts +1 -1
- package/dist/integrations/next-js.mjs +1 -1
- package/dist/integrations/node.d.cts +1 -1
- package/dist/integrations/node.d.mts +1 -1
- package/dist/integrations/node.d.ts +1 -1
- package/dist/integrations/react-start.cjs +1 -1
- package/dist/integrations/react-start.d.cts +1 -1
- package/dist/integrations/react-start.d.mts +1 -1
- package/dist/integrations/react-start.d.ts +1 -1
- package/dist/integrations/react-start.mjs +1 -1
- package/dist/integrations/svelte-kit.d.cts +1 -1
- package/dist/integrations/svelte-kit.d.mts +1 -1
- package/dist/integrations/svelte-kit.d.ts +1 -1
- package/dist/oauth2/index.d.cts +2 -2
- package/dist/oauth2/index.d.mts +2 -2
- package/dist/oauth2/index.d.ts +2 -2
- package/dist/plugins/admin/index.d.cts +29 -29
- package/dist/plugins/admin/index.d.mts +29 -29
- package/dist/plugins/admin/index.d.ts +29 -29
- package/dist/plugins/anonymous/index.d.cts +1 -1
- package/dist/plugins/anonymous/index.d.mts +1 -1
- package/dist/plugins/anonymous/index.d.ts +1 -1
- package/dist/plugins/bearer/index.d.cts +1 -1
- package/dist/plugins/bearer/index.d.mts +1 -1
- package/dist/plugins/bearer/index.d.ts +1 -1
- package/dist/plugins/captcha/index.d.cts +1 -1
- package/dist/plugins/captcha/index.d.mts +1 -1
- package/dist/plugins/captcha/index.d.ts +1 -1
- package/dist/plugins/custom-session/index.d.cts +1 -1
- package/dist/plugins/custom-session/index.d.mts +1 -1
- package/dist/plugins/custom-session/index.d.ts +1 -1
- package/dist/plugins/email-otp/index.d.cts +1 -1
- package/dist/plugins/email-otp/index.d.mts +1 -1
- package/dist/plugins/email-otp/index.d.ts +1 -1
- package/dist/plugins/generic-oauth/index.d.cts +1 -1
- package/dist/plugins/generic-oauth/index.d.mts +1 -1
- package/dist/plugins/generic-oauth/index.d.ts +1 -1
- package/dist/plugins/haveibeenpwned/index.d.cts +1 -1
- package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
- package/dist/plugins/haveibeenpwned/index.d.ts +1 -1
- package/dist/plugins/index.cjs +1 -1
- package/dist/plugins/index.d.cts +6 -6
- package/dist/plugins/index.d.mts +6 -6
- package/dist/plugins/index.d.ts +6 -6
- package/dist/plugins/index.mjs +1 -1
- package/dist/plugins/jwt/index.d.cts +1 -1
- package/dist/plugins/jwt/index.d.mts +1 -1
- package/dist/plugins/jwt/index.d.ts +1 -1
- package/dist/plugins/multi-session/index.d.cts +1 -1
- package/dist/plugins/multi-session/index.d.mts +1 -1
- package/dist/plugins/multi-session/index.d.ts +1 -1
- package/dist/plugins/oauth-proxy/index.cjs +7 -4
- package/dist/plugins/oauth-proxy/index.d.cts +1 -1
- package/dist/plugins/oauth-proxy/index.d.mts +1 -1
- package/dist/plugins/oauth-proxy/index.d.ts +1 -1
- package/dist/plugins/oauth-proxy/index.mjs +7 -4
- package/dist/plugins/oidc-provider/index.d.cts +6 -6
- package/dist/plugins/oidc-provider/index.d.mts +6 -6
- package/dist/plugins/oidc-provider/index.d.ts +6 -6
- package/dist/plugins/one-time-token/index.cjs +1 -1
- package/dist/plugins/one-time-token/index.d.cts +1 -1
- package/dist/plugins/one-time-token/index.d.mts +1 -1
- package/dist/plugins/one-time-token/index.d.ts +1 -1
- package/dist/plugins/one-time-token/index.mjs +1 -1
- package/dist/plugins/open-api/index.d.cts +1 -1
- package/dist/plugins/open-api/index.d.mts +1 -1
- package/dist/plugins/open-api/index.d.ts +1 -1
- package/dist/plugins/organization/index.cjs +1 -1
- package/dist/plugins/organization/index.d.cts +245 -245
- package/dist/plugins/organization/index.d.mts +245 -245
- package/dist/plugins/organization/index.d.ts +245 -245
- package/dist/plugins/organization/index.mjs +1 -1
- package/dist/plugins/passkey/index.d.cts +1 -1
- package/dist/plugins/passkey/index.d.mts +1 -1
- package/dist/plugins/passkey/index.d.ts +1 -1
- package/dist/plugins/phone-number/index.d.cts +1 -1
- package/dist/plugins/phone-number/index.d.mts +1 -1
- package/dist/plugins/phone-number/index.d.ts +1 -1
- package/dist/plugins/sso/index.d.cts +4 -4
- package/dist/plugins/sso/index.d.mts +4 -4
- package/dist/plugins/sso/index.d.ts +4 -4
- package/dist/plugins/two-factor/index.d.cts +4 -4
- package/dist/plugins/two-factor/index.d.mts +4 -4
- package/dist/plugins/two-factor/index.d.ts +4 -4
- 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/shared/{better-auth.CLe9TlPM.d.cts → better-auth.BGVh5dCV.d.ts} +27 -27
- package/dist/shared/{better-auth.C2KQ-9_J.d.ts → better-auth.BLiVNw53.d.ts} +3 -3
- package/dist/shared/{better-auth.BZads9rH.mjs → better-auth.BPCs2cGZ.mjs} +2 -2
- package/dist/shared/{better-auth.CFzvB930.d.cts → better-auth.CyquqyNV.d.cts} +3 -3
- package/dist/shared/{better-auth.MZ4VOBA0.d.ts → better-auth.D8QAnh5N.d.cts} +27 -27
- package/dist/shared/{better-auth.BkxxyEIY.d.mts → better-auth.DdG8dNMj.d.mts} +26 -26
- package/dist/shared/{better-auth.CIsYZXbK.d.mts → better-auth.EhB1UPrB.d.mts} +3 -3
- package/dist/shared/{better-auth.B6zCUmP6.cjs → better-auth._D1MVF6U.cjs} +2 -2
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +1 -1
- package/dist/shared/{better-auth.SKjGCdIB.d.ts → better-auth.BHEt8_1S.d.ts} +208 -208
- package/dist/shared/{better-auth.BYzIQdrU.d.cts → better-auth.D-gNQoXM.d.cts} +208 -208
- package/dist/shared/{better-auth.Bs_C2zap.d.mts → better-auth.M87YR-oR.d.mts} +208 -208
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.D-gNQoXM.cjs';
|
|
2
2
|
import '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../../shared/better-auth.Dz9w_OUB.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.M87YR-oR.mjs';
|
|
2
2
|
import '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../../shared/better-auth.DNEJbRnE.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.BHEt8_1S.js';
|
|
2
2
|
import '../../shared/better-auth.Bi8FQwDD.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../../shared/better-auth.BTuiucL9.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as AdapterConfig, C as CreateCustomAdapter, B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.
|
|
2
|
-
export { A as AdapterDebugLogs, e as AdapterTestDebugLogs, d as CleanedWhere, c as CustomAdapter } from '../shared/better-auth.
|
|
1
|
+
import { b as AdapterConfig, C as CreateCustomAdapter, B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.D-gNQoXM.cjs';
|
|
2
|
+
export { A as AdapterDebugLogs, e as AdapterTestDebugLogs, d as CleanedWhere, c as CustomAdapter } from '../shared/better-auth.D-gNQoXM.cjs';
|
|
3
3
|
import '../shared/better-auth.Bi8FQwDD.cjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../shared/better-auth.Dz9w_OUB.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as AdapterConfig, C as CreateCustomAdapter, B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.
|
|
2
|
-
export { A as AdapterDebugLogs, e as AdapterTestDebugLogs, d as CleanedWhere, c as CustomAdapter } from '../shared/better-auth.
|
|
1
|
+
import { b as AdapterConfig, C as CreateCustomAdapter, B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.M87YR-oR.mjs';
|
|
2
|
+
export { A as AdapterDebugLogs, e as AdapterTestDebugLogs, d as CleanedWhere, c as CustomAdapter } from '../shared/better-auth.M87YR-oR.mjs';
|
|
3
3
|
import '../shared/better-auth.Bi8FQwDD.mjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../shared/better-auth.DNEJbRnE.mjs';
|
package/dist/adapters/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as AdapterConfig, C as CreateCustomAdapter, B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.
|
|
2
|
-
export { A as AdapterDebugLogs, e as AdapterTestDebugLogs, d as CleanedWhere, c as CustomAdapter } from '../shared/better-auth.
|
|
1
|
+
import { b as AdapterConfig, C as CreateCustomAdapter, B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.BHEt8_1S.js';
|
|
2
|
+
export { A as AdapterDebugLogs, e as AdapterTestDebugLogs, d as CleanedWhere, c as CustomAdapter } from '../shared/better-auth.BHEt8_1S.js';
|
|
3
3
|
import '../shared/better-auth.Bi8FQwDD.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../shared/better-auth.BTuiucL9.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.D-gNQoXM.cjs';
|
|
3
3
|
import '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../../shared/better-auth.Dz9w_OUB.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.M87YR-oR.mjs';
|
|
3
3
|
import '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../../shared/better-auth.DNEJbRnE.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.BHEt8_1S.js';
|
|
3
3
|
import '../../shared/better-auth.Bi8FQwDD.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../../shared/better-auth.BTuiucL9.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.D-gNQoXM.cjs';
|
|
2
2
|
import '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../../shared/better-auth.Dz9w_OUB.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.M87YR-oR.mjs';
|
|
2
2
|
import '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../../shared/better-auth.DNEJbRnE.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.BHEt8_1S.js';
|
|
2
2
|
import '../../shared/better-auth.Bi8FQwDD.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../../shared/better-auth.BTuiucL9.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Db } from 'mongodb';
|
|
2
|
-
import { B as BetterAuthOptions, W as Where } from '../../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions, W as Where } from '../../shared/better-auth.D-gNQoXM.cjs';
|
|
3
3
|
import '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../../shared/better-auth.Dz9w_OUB.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Db } from 'mongodb';
|
|
2
|
-
import { B as BetterAuthOptions, W as Where } from '../../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions, W as Where } from '../../shared/better-auth.M87YR-oR.mjs';
|
|
3
3
|
import '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../../shared/better-auth.DNEJbRnE.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Db } from 'mongodb';
|
|
2
|
-
import { B as BetterAuthOptions, W as Where } from '../../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions, W as Where } from '../../shared/better-auth.BHEt8_1S.js';
|
|
3
3
|
import '../../shared/better-auth.Bi8FQwDD.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../../shared/better-auth.BTuiucL9.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.D-gNQoXM.cjs';
|
|
2
2
|
import '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../../shared/better-auth.Dz9w_OUB.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.M87YR-oR.mjs';
|
|
2
2
|
import '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../../shared/better-auth.DNEJbRnE.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.BHEt8_1S.js';
|
|
2
2
|
import '../../shared/better-auth.Bi8FQwDD.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../../shared/better-auth.BTuiucL9.js';
|
package/dist/adapters/test.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.D-gNQoXM.cjs';
|
|
2
2
|
import '../shared/better-auth.Bi8FQwDD.cjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../shared/better-auth.Dz9w_OUB.cjs';
|
package/dist/adapters/test.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.M87YR-oR.mjs';
|
|
2
2
|
import '../shared/better-auth.Bi8FQwDD.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../shared/better-auth.DNEJbRnE.mjs';
|
package/dist/adapters/test.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.BHEt8_1S.js';
|
|
2
2
|
import '../shared/better-auth.Bi8FQwDD.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../shared/better-auth.BTuiucL9.js';
|
package/dist/api/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../shared/better-auth.Dz9w_OUB.cjs';
|
|
2
|
-
export { l as AuthEndpoint, m as AuthMiddleware, bh as accountInfo, aL as callbackOAuth, b8 as changeEmail, b4 as changePassword, k as createAuthEndpoint, j as createAuthMiddleware, a$ as createEmailVerificationToken, b6 as deleteUser, b7 as deleteUserCallback, b9 as error, aX as forgetPassword, aZ as forgetPasswordCallback, aQ as freshSessionMiddleware, bf as getAccessToken, aH as getEndpoints, aM as getSession, aN as getSessionFromCtx, bd as linkSocialAccount, aR as listSessions, bc as listUserAccounts, ba as ok, o as optionsMiddleware, bj as originCheck, bi as originCheckMiddleware, bg as refreshToken, aP as requestOnlySessionMiddleware, aW as requestPasswordReset, aY as requestPasswordResetCallback, a_ as resetPassword, aU as revokeOtherSessions, aS as revokeSession, aT as revokeSessions, aI as router, b1 as sendVerificationEmail, b0 as sendVerificationEmailFn, aO as sessionMiddleware, b5 as setPassword, aK as signInEmail, aJ as signInSocial, aV as signOut, bb as signUpEmail, be as unlinkAccount, b3 as updateUser, b2 as verifyEmail } from '../shared/better-auth.
|
|
2
|
+
export { l as AuthEndpoint, m as AuthMiddleware, bh as accountInfo, aL as callbackOAuth, b8 as changeEmail, b4 as changePassword, k as createAuthEndpoint, j as createAuthMiddleware, a$ as createEmailVerificationToken, b6 as deleteUser, b7 as deleteUserCallback, b9 as error, aX as forgetPassword, aZ as forgetPasswordCallback, aQ as freshSessionMiddleware, bf as getAccessToken, aH as getEndpoints, aM as getSession, aN as getSessionFromCtx, bd as linkSocialAccount, aR as listSessions, bc as listUserAccounts, ba as ok, o as optionsMiddleware, bj as originCheck, bi as originCheckMiddleware, bg as refreshToken, aP as requestOnlySessionMiddleware, aW as requestPasswordReset, aY as requestPasswordResetCallback, a_ as resetPassword, aU as revokeOtherSessions, aS as revokeSession, aT as revokeSessions, aI as router, b1 as sendVerificationEmail, b0 as sendVerificationEmailFn, aO as sessionMiddleware, b5 as setPassword, aK as signInEmail, aJ as signInSocial, aV as signOut, bb as signUpEmail, be as unlinkAccount, b3 as updateUser, b2 as verifyEmail } from '../shared/better-auth.D-gNQoXM.cjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import '../shared/better-auth.Bi8FQwDD.cjs';
|
|
5
5
|
import 'zod';
|
package/dist/api/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../shared/better-auth.DNEJbRnE.mjs';
|
|
2
|
-
export { l as AuthEndpoint, m as AuthMiddleware, bh as accountInfo, aL as callbackOAuth, b8 as changeEmail, b4 as changePassword, k as createAuthEndpoint, j as createAuthMiddleware, a$ as createEmailVerificationToken, b6 as deleteUser, b7 as deleteUserCallback, b9 as error, aX as forgetPassword, aZ as forgetPasswordCallback, aQ as freshSessionMiddleware, bf as getAccessToken, aH as getEndpoints, aM as getSession, aN as getSessionFromCtx, bd as linkSocialAccount, aR as listSessions, bc as listUserAccounts, ba as ok, o as optionsMiddleware, bj as originCheck, bi as originCheckMiddleware, bg as refreshToken, aP as requestOnlySessionMiddleware, aW as requestPasswordReset, aY as requestPasswordResetCallback, a_ as resetPassword, aU as revokeOtherSessions, aS as revokeSession, aT as revokeSessions, aI as router, b1 as sendVerificationEmail, b0 as sendVerificationEmailFn, aO as sessionMiddleware, b5 as setPassword, aK as signInEmail, aJ as signInSocial, aV as signOut, bb as signUpEmail, be as unlinkAccount, b3 as updateUser, b2 as verifyEmail } from '../shared/better-auth.
|
|
2
|
+
export { l as AuthEndpoint, m as AuthMiddleware, bh as accountInfo, aL as callbackOAuth, b8 as changeEmail, b4 as changePassword, k as createAuthEndpoint, j as createAuthMiddleware, a$ as createEmailVerificationToken, b6 as deleteUser, b7 as deleteUserCallback, b9 as error, aX as forgetPassword, aZ as forgetPasswordCallback, aQ as freshSessionMiddleware, bf as getAccessToken, aH as getEndpoints, aM as getSession, aN as getSessionFromCtx, bd as linkSocialAccount, aR as listSessions, bc as listUserAccounts, ba as ok, o as optionsMiddleware, bj as originCheck, bi as originCheckMiddleware, bg as refreshToken, aP as requestOnlySessionMiddleware, aW as requestPasswordReset, aY as requestPasswordResetCallback, a_ as resetPassword, aU as revokeOtherSessions, aS as revokeSession, aT as revokeSessions, aI as router, b1 as sendVerificationEmail, b0 as sendVerificationEmailFn, aO as sessionMiddleware, b5 as setPassword, aK as signInEmail, aJ as signInSocial, aV as signOut, bb as signUpEmail, be as unlinkAccount, b3 as updateUser, b2 as verifyEmail } from '../shared/better-auth.M87YR-oR.mjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import '../shared/better-auth.Bi8FQwDD.mjs';
|
|
5
5
|
import 'zod';
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../shared/better-auth.BTuiucL9.js';
|
|
2
|
-
export { l as AuthEndpoint, m as AuthMiddleware, bh as accountInfo, aL as callbackOAuth, b8 as changeEmail, b4 as changePassword, k as createAuthEndpoint, j as createAuthMiddleware, a$ as createEmailVerificationToken, b6 as deleteUser, b7 as deleteUserCallback, b9 as error, aX as forgetPassword, aZ as forgetPasswordCallback, aQ as freshSessionMiddleware, bf as getAccessToken, aH as getEndpoints, aM as getSession, aN as getSessionFromCtx, bd as linkSocialAccount, aR as listSessions, bc as listUserAccounts, ba as ok, o as optionsMiddleware, bj as originCheck, bi as originCheckMiddleware, bg as refreshToken, aP as requestOnlySessionMiddleware, aW as requestPasswordReset, aY as requestPasswordResetCallback, a_ as resetPassword, aU as revokeOtherSessions, aS as revokeSession, aT as revokeSessions, aI as router, b1 as sendVerificationEmail, b0 as sendVerificationEmailFn, aO as sessionMiddleware, b5 as setPassword, aK as signInEmail, aJ as signInSocial, aV as signOut, bb as signUpEmail, be as unlinkAccount, b3 as updateUser, b2 as verifyEmail } from '../shared/better-auth.
|
|
2
|
+
export { l as AuthEndpoint, m as AuthMiddleware, bh as accountInfo, aL as callbackOAuth, b8 as changeEmail, b4 as changePassword, k as createAuthEndpoint, j as createAuthMiddleware, a$ as createEmailVerificationToken, b6 as deleteUser, b7 as deleteUserCallback, b9 as error, aX as forgetPassword, aZ as forgetPasswordCallback, aQ as freshSessionMiddleware, bf as getAccessToken, aH as getEndpoints, aM as getSession, aN as getSessionFromCtx, bd as linkSocialAccount, aR as listSessions, bc as listUserAccounts, ba as ok, o as optionsMiddleware, bj as originCheck, bi as originCheckMiddleware, bg as refreshToken, aP as requestOnlySessionMiddleware, aW as requestPasswordReset, aY as requestPasswordResetCallback, a_ as resetPassword, aU as revokeOtherSessions, aS as revokeSession, aT as revokeSessions, aI as router, b1 as sendVerificationEmail, b0 as sendVerificationEmailFn, aO as sessionMiddleware, b5 as setPassword, aK as signInEmail, aJ as signInSocial, aV as signOut, bb as signUpEmail, be as unlinkAccount, b3 as updateUser, b2 as verifyEmail } from '../shared/better-auth.BHEt8_1S.js';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import '../shared/better-auth.Bi8FQwDD.js';
|
|
5
5
|
import 'zod';
|
package/dist/client/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin } from '../shared/better-auth.
|
|
1
|
+
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin } from '../shared/better-auth.D-gNQoXM.cjs';
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
3
|
import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
4
4
|
export * from '@better-fetch/fetch';
|
package/dist/client/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin } from '../shared/better-auth.
|
|
1
|
+
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin } from '../shared/better-auth.M87YR-oR.mjs';
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
3
|
import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
4
4
|
export * from '@better-fetch/fetch';
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin } from '../shared/better-auth.
|
|
1
|
+
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin } from '../shared/better-auth.BHEt8_1S.js';
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
3
|
import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
4
4
|
export * from '@better-fetch/fetch';
|
|
@@ -11,7 +11,7 @@ export { twoFactorClient } from '../../plugins/two-factor/index.cjs';
|
|
|
11
11
|
import { magicLink } from '../../plugins/magic-link/index.cjs';
|
|
12
12
|
import { phoneNumber } from '../../plugins/phone-number/index.cjs';
|
|
13
13
|
import { anonymous } from '../../plugins/anonymous/index.cjs';
|
|
14
|
-
import { a1 as FieldAttribute, B as BetterAuthOptions, h as BetterAuthPlugin } from '../../shared/better-auth.
|
|
14
|
+
import { a1 as FieldAttribute, B as BetterAuthOptions, h as BetterAuthPlugin } from '../../shared/better-auth.D-gNQoXM.cjs';
|
|
15
15
|
import { admin } from '../../plugins/admin/index.cjs';
|
|
16
16
|
import { genericOAuth } from '../../plugins/generic-oauth/index.cjs';
|
|
17
17
|
import { jwt } from '../../plugins/jwt/index.cjs';
|
|
@@ -20,7 +20,7 @@ import { emailOTP } from '../../plugins/email-otp/index.cjs';
|
|
|
20
20
|
import { Store } from '../../types/index.cjs';
|
|
21
21
|
import { sso } from '../../plugins/sso/index.cjs';
|
|
22
22
|
import { oidcProvider } from '../../plugins/oidc-provider/index.cjs';
|
|
23
|
-
import { a as apiKey } from '../../shared/better-auth.
|
|
23
|
+
import { a as apiKey } from '../../shared/better-auth.D8QAnh5N.cjs';
|
|
24
24
|
import { oneTimeToken } from '../../plugins/one-time-token/index.cjs';
|
|
25
25
|
export * from '@simplewebauthn/server';
|
|
26
26
|
export { global } from '@simplewebauthn/server';
|
|
@@ -72,8 +72,8 @@ declare const organizationClient: <O extends OrganizationClientOptions>(options?
|
|
|
72
72
|
teams: Team[];
|
|
73
73
|
} & {
|
|
74
74
|
id: string;
|
|
75
|
-
name: string;
|
|
76
75
|
createdAt: Date;
|
|
76
|
+
name: string;
|
|
77
77
|
slug: string;
|
|
78
78
|
metadata?: any;
|
|
79
79
|
logo?: string | null | undefined;
|
|
@@ -82,8 +82,8 @@ declare const organizationClient: <O extends OrganizationClientOptions>(options?
|
|
|
82
82
|
invitations: InferInvitation<O>[];
|
|
83
83
|
} & {
|
|
84
84
|
id: string;
|
|
85
|
-
name: string;
|
|
86
85
|
createdAt: Date;
|
|
86
|
+
name: string;
|
|
87
87
|
slug: string;
|
|
88
88
|
metadata?: any;
|
|
89
89
|
logo?: string | null | undefined;
|
|
@@ -147,8 +147,8 @@ declare const organizationClient: <O extends OrganizationClientOptions>(options?
|
|
|
147
147
|
activeOrganization: nanostores.PreinitializedWritableAtom<{
|
|
148
148
|
data: Prettify<{
|
|
149
149
|
id: string;
|
|
150
|
-
name: string;
|
|
151
150
|
createdAt: Date;
|
|
151
|
+
name: string;
|
|
152
152
|
slug: string;
|
|
153
153
|
metadata?: any;
|
|
154
154
|
logo?: string | null | undefined;
|
|
@@ -171,8 +171,8 @@ declare const organizationClient: <O extends OrganizationClientOptions>(options?
|
|
|
171
171
|
listOrganizations: nanostores.PreinitializedWritableAtom<{
|
|
172
172
|
data: {
|
|
173
173
|
id: string;
|
|
174
|
-
name: string;
|
|
175
174
|
createdAt: Date;
|
|
175
|
+
name: string;
|
|
176
176
|
slug: string;
|
|
177
177
|
metadata?: any;
|
|
178
178
|
logo?: string | null | undefined;
|
|
@@ -11,7 +11,7 @@ export { twoFactorClient } from '../../plugins/two-factor/index.mjs';
|
|
|
11
11
|
import { magicLink } from '../../plugins/magic-link/index.mjs';
|
|
12
12
|
import { phoneNumber } from '../../plugins/phone-number/index.mjs';
|
|
13
13
|
import { anonymous } from '../../plugins/anonymous/index.mjs';
|
|
14
|
-
import { a1 as FieldAttribute, B as BetterAuthOptions, h as BetterAuthPlugin } from '../../shared/better-auth.
|
|
14
|
+
import { a1 as FieldAttribute, B as BetterAuthOptions, h as BetterAuthPlugin } from '../../shared/better-auth.M87YR-oR.mjs';
|
|
15
15
|
import { admin } from '../../plugins/admin/index.mjs';
|
|
16
16
|
import { genericOAuth } from '../../plugins/generic-oauth/index.mjs';
|
|
17
17
|
import { jwt } from '../../plugins/jwt/index.mjs';
|
|
@@ -20,7 +20,7 @@ import { emailOTP } from '../../plugins/email-otp/index.mjs';
|
|
|
20
20
|
import { Store } from '../../types/index.mjs';
|
|
21
21
|
import { sso } from '../../plugins/sso/index.mjs';
|
|
22
22
|
import { oidcProvider } from '../../plugins/oidc-provider/index.mjs';
|
|
23
|
-
import { a as apiKey } from '../../shared/better-auth.
|
|
23
|
+
import { a as apiKey } from '../../shared/better-auth.DdG8dNMj.mjs';
|
|
24
24
|
import { oneTimeToken } from '../../plugins/one-time-token/index.mjs';
|
|
25
25
|
export * from '@simplewebauthn/server';
|
|
26
26
|
export { global } from '@simplewebauthn/server';
|
|
@@ -72,8 +72,8 @@ declare const organizationClient: <O extends OrganizationClientOptions>(options?
|
|
|
72
72
|
teams: Team[];
|
|
73
73
|
} & {
|
|
74
74
|
id: string;
|
|
75
|
-
name: string;
|
|
76
75
|
createdAt: Date;
|
|
76
|
+
name: string;
|
|
77
77
|
slug: string;
|
|
78
78
|
metadata?: any;
|
|
79
79
|
logo?: string | null | undefined;
|
|
@@ -82,8 +82,8 @@ declare const organizationClient: <O extends OrganizationClientOptions>(options?
|
|
|
82
82
|
invitations: InferInvitation<O>[];
|
|
83
83
|
} & {
|
|
84
84
|
id: string;
|
|
85
|
-
name: string;
|
|
86
85
|
createdAt: Date;
|
|
86
|
+
name: string;
|
|
87
87
|
slug: string;
|
|
88
88
|
metadata?: any;
|
|
89
89
|
logo?: string | null | undefined;
|
|
@@ -147,8 +147,8 @@ declare const organizationClient: <O extends OrganizationClientOptions>(options?
|
|
|
147
147
|
activeOrganization: nanostores.PreinitializedWritableAtom<{
|
|
148
148
|
data: Prettify<{
|
|
149
149
|
id: string;
|
|
150
|
-
name: string;
|
|
151
150
|
createdAt: Date;
|
|
151
|
+
name: string;
|
|
152
152
|
slug: string;
|
|
153
153
|
metadata?: any;
|
|
154
154
|
logo?: string | null | undefined;
|
|
@@ -171,8 +171,8 @@ declare const organizationClient: <O extends OrganizationClientOptions>(options?
|
|
|
171
171
|
listOrganizations: nanostores.PreinitializedWritableAtom<{
|
|
172
172
|
data: {
|
|
173
173
|
id: string;
|
|
174
|
-
name: string;
|
|
175
174
|
createdAt: Date;
|
|
175
|
+
name: string;
|
|
176
176
|
slug: string;
|
|
177
177
|
metadata?: any;
|
|
178
178
|
logo?: string | null | undefined;
|
|
@@ -11,7 +11,7 @@ export { twoFactorClient } from '../../plugins/two-factor/index.js';
|
|
|
11
11
|
import { magicLink } from '../../plugins/magic-link/index.js';
|
|
12
12
|
import { phoneNumber } from '../../plugins/phone-number/index.js';
|
|
13
13
|
import { anonymous } from '../../plugins/anonymous/index.js';
|
|
14
|
-
import { a1 as FieldAttribute, B as BetterAuthOptions, h as BetterAuthPlugin } from '../../shared/better-auth.
|
|
14
|
+
import { a1 as FieldAttribute, B as BetterAuthOptions, h as BetterAuthPlugin } from '../../shared/better-auth.BHEt8_1S.js';
|
|
15
15
|
import { admin } from '../../plugins/admin/index.js';
|
|
16
16
|
import { genericOAuth } from '../../plugins/generic-oauth/index.js';
|
|
17
17
|
import { jwt } from '../../plugins/jwt/index.js';
|
|
@@ -20,7 +20,7 @@ import { emailOTP } from '../../plugins/email-otp/index.js';
|
|
|
20
20
|
import { Store } from '../../types/index.js';
|
|
21
21
|
import { sso } from '../../plugins/sso/index.js';
|
|
22
22
|
import { oidcProvider } from '../../plugins/oidc-provider/index.js';
|
|
23
|
-
import { a as apiKey } from '../../shared/better-auth.
|
|
23
|
+
import { a as apiKey } from '../../shared/better-auth.BGVh5dCV.js';
|
|
24
24
|
import { oneTimeToken } from '../../plugins/one-time-token/index.js';
|
|
25
25
|
export * from '@simplewebauthn/server';
|
|
26
26
|
export { global } from '@simplewebauthn/server';
|
|
@@ -72,8 +72,8 @@ declare const organizationClient: <O extends OrganizationClientOptions>(options?
|
|
|
72
72
|
teams: Team[];
|
|
73
73
|
} & {
|
|
74
74
|
id: string;
|
|
75
|
-
name: string;
|
|
76
75
|
createdAt: Date;
|
|
76
|
+
name: string;
|
|
77
77
|
slug: string;
|
|
78
78
|
metadata?: any;
|
|
79
79
|
logo?: string | null | undefined;
|
|
@@ -82,8 +82,8 @@ declare const organizationClient: <O extends OrganizationClientOptions>(options?
|
|
|
82
82
|
invitations: InferInvitation<O>[];
|
|
83
83
|
} & {
|
|
84
84
|
id: string;
|
|
85
|
-
name: string;
|
|
86
85
|
createdAt: Date;
|
|
86
|
+
name: string;
|
|
87
87
|
slug: string;
|
|
88
88
|
metadata?: any;
|
|
89
89
|
logo?: string | null | undefined;
|
|
@@ -147,8 +147,8 @@ declare const organizationClient: <O extends OrganizationClientOptions>(options?
|
|
|
147
147
|
activeOrganization: nanostores.PreinitializedWritableAtom<{
|
|
148
148
|
data: Prettify<{
|
|
149
149
|
id: string;
|
|
150
|
-
name: string;
|
|
151
150
|
createdAt: Date;
|
|
151
|
+
name: string;
|
|
152
152
|
slug: string;
|
|
153
153
|
metadata?: any;
|
|
154
154
|
logo?: string | null | undefined;
|
|
@@ -171,8 +171,8 @@ declare const organizationClient: <O extends OrganizationClientOptions>(options?
|
|
|
171
171
|
listOrganizations: nanostores.PreinitializedWritableAtom<{
|
|
172
172
|
data: {
|
|
173
173
|
id: string;
|
|
174
|
-
name: string;
|
|
175
174
|
createdAt: Date;
|
|
175
|
+
name: string;
|
|
176
176
|
slug: string;
|
|
177
177
|
metadata?: any;
|
|
178
178
|
logo?: string | null | undefined;
|
|
@@ -7,7 +7,7 @@ export * from '@better-fetch/fetch';
|
|
|
7
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.cjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.D-gNQoXM.cjs';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod';
|
|
13
13
|
import '../../shared/better-auth.Dz9w_OUB.cjs';
|
|
@@ -66,15 +66,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
66
66
|
data: InferClientAPI<Option> extends {
|
|
67
67
|
getSession: () => Promise<infer Res>;
|
|
68
68
|
} ? Res extends {
|
|
69
|
-
data: infer S;
|
|
70
|
-
error: null;
|
|
71
|
-
} | {
|
|
72
69
|
data: null;
|
|
73
70
|
error: {
|
|
74
71
|
message?: string | undefined;
|
|
75
72
|
status: number;
|
|
76
73
|
statusText: string;
|
|
77
74
|
};
|
|
75
|
+
} | {
|
|
76
|
+
data: infer S;
|
|
77
|
+
error: null;
|
|
78
78
|
} ? S : Res : never;
|
|
79
79
|
isPending: boolean;
|
|
80
80
|
error: BetterFetchError | null;
|
|
@@ -84,15 +84,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
84
84
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
85
85
|
getSession: () => Promise<infer Res>;
|
|
86
86
|
} ? Res extends {
|
|
87
|
-
data: infer S;
|
|
88
|
-
error: null;
|
|
89
|
-
} | {
|
|
90
87
|
data: null;
|
|
91
88
|
error: {
|
|
92
89
|
message?: string | undefined;
|
|
93
90
|
status: number;
|
|
94
91
|
statusText: string;
|
|
95
92
|
};
|
|
93
|
+
} | {
|
|
94
|
+
data: infer S;
|
|
95
|
+
error: null;
|
|
96
96
|
} ? S : Res : never>;
|
|
97
97
|
};
|
|
98
98
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -7,7 +7,7 @@ export * from '@better-fetch/fetch';
|
|
|
7
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.mjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.M87YR-oR.mjs';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod';
|
|
13
13
|
import '../../shared/better-auth.DNEJbRnE.mjs';
|
|
@@ -66,15 +66,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
66
66
|
data: InferClientAPI<Option> extends {
|
|
67
67
|
getSession: () => Promise<infer Res>;
|
|
68
68
|
} ? Res extends {
|
|
69
|
-
data: infer S;
|
|
70
|
-
error: null;
|
|
71
|
-
} | {
|
|
72
69
|
data: null;
|
|
73
70
|
error: {
|
|
74
71
|
message?: string | undefined;
|
|
75
72
|
status: number;
|
|
76
73
|
statusText: string;
|
|
77
74
|
};
|
|
75
|
+
} | {
|
|
76
|
+
data: infer S;
|
|
77
|
+
error: null;
|
|
78
78
|
} ? S : Res : never;
|
|
79
79
|
isPending: boolean;
|
|
80
80
|
error: BetterFetchError | null;
|
|
@@ -84,15 +84,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
84
84
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
85
85
|
getSession: () => Promise<infer Res>;
|
|
86
86
|
} ? Res extends {
|
|
87
|
-
data: infer S;
|
|
88
|
-
error: null;
|
|
89
|
-
} | {
|
|
90
87
|
data: null;
|
|
91
88
|
error: {
|
|
92
89
|
message?: string | undefined;
|
|
93
90
|
status: number;
|
|
94
91
|
statusText: string;
|
|
95
92
|
};
|
|
93
|
+
} | {
|
|
94
|
+
data: infer S;
|
|
95
|
+
error: null;
|
|
96
96
|
} ? S : Res : never>;
|
|
97
97
|
};
|
|
98
98
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -7,7 +7,7 @@ export * from '@better-fetch/fetch';
|
|
|
7
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.js';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.js';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.BHEt8_1S.js';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod';
|
|
13
13
|
import '../../shared/better-auth.BTuiucL9.js';
|
|
@@ -66,15 +66,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
66
66
|
data: InferClientAPI<Option> extends {
|
|
67
67
|
getSession: () => Promise<infer Res>;
|
|
68
68
|
} ? Res extends {
|
|
69
|
-
data: infer S;
|
|
70
|
-
error: null;
|
|
71
|
-
} | {
|
|
72
69
|
data: null;
|
|
73
70
|
error: {
|
|
74
71
|
message?: string | undefined;
|
|
75
72
|
status: number;
|
|
76
73
|
statusText: string;
|
|
77
74
|
};
|
|
75
|
+
} | {
|
|
76
|
+
data: infer S;
|
|
77
|
+
error: null;
|
|
78
78
|
} ? S : Res : never;
|
|
79
79
|
isPending: boolean;
|
|
80
80
|
error: BetterFetchError | null;
|
|
@@ -84,15 +84,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
84
84
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
85
85
|
getSession: () => Promise<infer Res>;
|
|
86
86
|
} ? Res extends {
|
|
87
|
-
data: infer S;
|
|
88
|
-
error: null;
|
|
89
|
-
} | {
|
|
90
87
|
data: null;
|
|
91
88
|
error: {
|
|
92
89
|
message?: string | undefined;
|
|
93
90
|
status: number;
|
|
94
91
|
statusText: string;
|
|
95
92
|
};
|
|
93
|
+
} | {
|
|
94
|
+
data: infer S;
|
|
95
|
+
error: null;
|
|
96
96
|
} ? S : Res : never>;
|
|
97
97
|
};
|
|
98
98
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -4,7 +4,7 @@ export * from '@better-fetch/fetch';
|
|
|
4
4
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.cjs';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
6
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
7
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.D-gNQoXM.cjs';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'zod';
|
|
@@ -4,7 +4,7 @@ export * from '@better-fetch/fetch';
|
|
|
4
4
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.mjs';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
6
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
7
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.M87YR-oR.mjs';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'zod';
|
|
@@ -4,7 +4,7 @@ export * from '@better-fetch/fetch';
|
|
|
4
4
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.js';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
6
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.js';
|
|
7
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.BHEt8_1S.js';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'zod';
|