better-auth 1.3.20 → 1.3.21
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.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/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 +3 -3
- package/dist/client/index.d.mts +3 -3
- package/dist/client/index.d.ts +3 -3
- package/dist/client/plugins/index.d.cts +3 -3
- package/dist/client/plugins/index.d.mts +3 -3
- package/dist/client/plugins/index.d.ts +3 -3
- package/dist/client/react/index.d.cts +9 -9
- package/dist/client/react/index.d.mts +9 -9
- package/dist/client/react/index.d.ts +9 -9
- package/dist/client/solid/index.d.cts +9 -9
- package/dist/client/solid/index.d.mts +9 -9
- package/dist/client/solid/index.d.ts +9 -9
- package/dist/client/svelte/index.d.cts +3 -3
- package/dist/client/svelte/index.d.mts +3 -3
- package/dist/client/svelte/index.d.ts +3 -3
- package/dist/client/vue/index.d.cts +3 -3
- package/dist/client/vue/index.d.mts +3 -3
- package/dist/client/vue/index.d.ts +3 -3
- 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 +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- 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/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.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/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 +3 -3
- package/dist/plugins/admin/index.d.mts +3 -3
- package/dist/plugins/admin/index.d.ts +3 -3
- 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/device-authorization/index.d.cts +1 -1
- package/dist/plugins/device-authorization/index.d.mts +1 -1
- package/dist/plugins/device-authorization/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.d.cts +3 -3
- package/dist/plugins/index.d.mts +3 -3
- package/dist/plugins/index.d.ts +3 -3
- 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.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/oidc-provider/index.d.cts +1 -1
- package/dist/plugins/oidc-provider/index.d.mts +1 -1
- package/dist/plugins/oidc-provider/index.d.ts +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/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.d.cts +9 -9
- package/dist/plugins/organization/index.d.mts +9 -9
- package/dist/plugins/organization/index.d.ts +9 -9
- 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/siwe/index.d.cts +1 -1
- package/dist/plugins/siwe/index.d.mts +1 -1
- package/dist/plugins/siwe/index.d.ts +1 -1
- package/dist/plugins/sso/index.d.cts +1 -1
- package/dist/plugins/sso/index.d.mts +1 -1
- package/dist/plugins/sso/index.d.ts +1 -1
- package/dist/plugins/two-factor/index.d.cts +1 -1
- package/dist/plugins/two-factor/index.d.mts +1 -1
- package/dist/plugins/two-factor/index.d.ts +1 -1
- package/dist/plugins/username/index.d.cts +1 -1
- package/dist/plugins/username/index.d.mts +1 -1
- package/dist/plugins/username/index.d.ts +1 -1
- package/dist/shared/{better-auth.B5856uzB.d.ts → better-auth.AFdKV9lT.d.ts} +1 -1
- package/dist/shared/{better-auth.DSunxpeH.d.mts → better-auth.B7HelsAr.d.mts} +1 -1
- package/dist/shared/{better-auth.DWn38IuO.d.cts → better-auth.BCkf9FZU.d.cts} +1 -1
- package/dist/shared/{better-auth.BPG3IC7S.d.mts → better-auth.BFegHNjn.d.mts} +5 -5
- package/dist/shared/{better-auth.ygec4quI.d.cts → better-auth.BGDp9pBQ.d.cts} +1 -1
- package/dist/shared/{better-auth.CizJdxGJ.d.cts → better-auth.BkVhzNer.d.cts} +1 -1
- package/dist/shared/{better-auth.C1jXeY7a.d.ts → better-auth.CbhDVqJv.d.ts} +1 -1
- package/dist/shared/{better-auth.cwF98UKL.d.mts → better-auth.DWgVanF-.d.mts} +1 -1
- package/dist/shared/{better-auth.DG-Awdg-.d.mts → better-auth.HsL9NWdo.d.mts} +1 -1
- package/dist/shared/{better-auth.CNLo3Z2s.d.cts → better-auth._WE9Fhqj.d.cts} +5 -5
- package/dist/shared/{better-auth.Bk6kBKst.d.ts → better-auth.nTGSkBy-.d.ts} +5 -5
- package/dist/shared/{better-auth.lzkj-rqy.d.ts → better-auth.p1cIDE6Y.d.ts} +1 -1
- package/dist/test-utils/index.d.cts +2 -2
- package/dist/test-utils/index.d.mts +2 -2
- package/dist/test-utils/index.d.ts +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
|
@@ -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._WE9Fhqj.cjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -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.BFegHNjn.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -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.nTGSkBy-.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter, q as AdapterFactoryOptions, r as AdapterFactoryConfig, t as AdapterFactoryCustomizeAdapterCreator } from '../shared/better-auth.
|
|
2
|
-
export { A as AdapterDebugLogs, u as AdapterTestDebugLogs, C as CustomAdapter } from '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter, q as AdapterFactoryOptions, r as AdapterFactoryConfig, t as AdapterFactoryCustomizeAdapterCreator } from '../shared/better-auth._WE9Fhqj.cjs';
|
|
2
|
+
export { A as AdapterDebugLogs, u as AdapterTestDebugLogs, C as CustomAdapter } from '../shared/better-auth._WE9Fhqj.cjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter, q as AdapterFactoryOptions, r as AdapterFactoryConfig, t as AdapterFactoryCustomizeAdapterCreator } from '../shared/better-auth.
|
|
2
|
-
export { A as AdapterDebugLogs, u as AdapterTestDebugLogs, C as CustomAdapter } from '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter, q as AdapterFactoryOptions, r as AdapterFactoryConfig, t as AdapterFactoryCustomizeAdapterCreator } from '../shared/better-auth.BFegHNjn.mjs';
|
|
2
|
+
export { A as AdapterDebugLogs, u as AdapterTestDebugLogs, C as CustomAdapter } from '../shared/better-auth.BFegHNjn.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
package/dist/adapters/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter, q as AdapterFactoryOptions, r as AdapterFactoryConfig, t as AdapterFactoryCustomizeAdapterCreator } from '../shared/better-auth.
|
|
2
|
-
export { A as AdapterDebugLogs, u as AdapterTestDebugLogs, C as CustomAdapter } from '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter, q as AdapterFactoryOptions, r as AdapterFactoryConfig, t as AdapterFactoryCustomizeAdapterCreator } from '../shared/better-auth.nTGSkBy-.js';
|
|
2
|
+
export { A as AdapterDebugLogs, u as AdapterTestDebugLogs, C as CustomAdapter } from '../shared/better-auth.nTGSkBy-.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
@@ -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._WE9Fhqj.cjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.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.BFegHNjn.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.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.nTGSkBy-.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.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._WE9Fhqj.cjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -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.BFegHNjn.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -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.nTGSkBy-.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MongoClient, Db } from 'mongodb';
|
|
2
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth._WE9Fhqj.cjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MongoClient, Db } from 'mongodb';
|
|
2
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.BFegHNjn.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MongoClient, Db } from 'mongodb';
|
|
2
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.nTGSkBy-.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
@@ -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._WE9Fhqj.cjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -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.BFegHNjn.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -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.nTGSkBy-.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
package/dist/adapters/test.d.cts
CHANGED
package/dist/adapters/test.d.mts
CHANGED
package/dist/adapters/test.d.ts
CHANGED
package/dist/api/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../shared/better-auth.7zTmTxT4.cjs';
|
|
2
|
-
export { z as AuthEndpoint, D as AuthMiddleware, br as accountInfo, aT as callbackOAuth, bi as changeEmail, be as changePassword, aO as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, b9 as createEmailVerificationToken, bg as deleteUser, bh as deleteUserCallback, bj as error, b5 as forgetPassword, b7 as forgetPasswordCallback, a_ as freshSessionMiddleware, bp as getAccessToken, aP as getEndpoints, aV as getSession, aW as getSessionFromCtx, aU as getSessionQuerySchema, bn as linkSocialAccount, a$ as listSessions, bm as listUserAccounts, bk as ok, w as optionsMiddleware, bt as originCheck, bs as originCheckMiddleware, bq as refreshToken, aZ as requestOnlySessionMiddleware, b4 as requestPasswordReset, b6 as requestPasswordResetCallback, b8 as resetPassword, b2 as revokeOtherSessions, b0 as revokeSession, b1 as revokeSessions, aQ as router, bb as sendVerificationEmail, ba as sendVerificationEmailFn, aY as sensitiveSessionMiddleware, aX as sessionMiddleware, bf as setPassword, aS as signInEmail, aR as signInSocial, b3 as signOut, bl as signUpEmail, bo as unlinkAccount, bd as updateUser, bc as verifyEmail } from '../shared/better-auth.
|
|
2
|
+
export { z as AuthEndpoint, D as AuthMiddleware, br as accountInfo, aT as callbackOAuth, bi as changeEmail, be as changePassword, aO as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, b9 as createEmailVerificationToken, bg as deleteUser, bh as deleteUserCallback, bj as error, b5 as forgetPassword, b7 as forgetPasswordCallback, a_ as freshSessionMiddleware, bp as getAccessToken, aP as getEndpoints, aV as getSession, aW as getSessionFromCtx, aU as getSessionQuerySchema, bn as linkSocialAccount, a$ as listSessions, bm as listUserAccounts, bk as ok, w as optionsMiddleware, bt as originCheck, bs as originCheckMiddleware, bq as refreshToken, aZ as requestOnlySessionMiddleware, b4 as requestPasswordReset, b6 as requestPasswordResetCallback, b8 as resetPassword, b2 as revokeOtherSessions, b0 as revokeSession, b1 as revokeSessions, aQ as router, bb as sendVerificationEmail, ba as sendVerificationEmailFn, aY as sensitiveSessionMiddleware, aX as sessionMiddleware, bf as setPassword, aS as signInEmail, aR as signInSocial, b3 as signOut, bl as signUpEmail, bo as unlinkAccount, bd as updateUser, bc as verifyEmail } from '../shared/better-auth._WE9Fhqj.cjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../shared/better-auth.DTtXpZYr.cjs';
|
package/dist/api/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../shared/better-auth.BHPr8J54.mjs';
|
|
2
|
-
export { z as AuthEndpoint, D as AuthMiddleware, br as accountInfo, aT as callbackOAuth, bi as changeEmail, be as changePassword, aO as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, b9 as createEmailVerificationToken, bg as deleteUser, bh as deleteUserCallback, bj as error, b5 as forgetPassword, b7 as forgetPasswordCallback, a_ as freshSessionMiddleware, bp as getAccessToken, aP as getEndpoints, aV as getSession, aW as getSessionFromCtx, aU as getSessionQuerySchema, bn as linkSocialAccount, a$ as listSessions, bm as listUserAccounts, bk as ok, w as optionsMiddleware, bt as originCheck, bs as originCheckMiddleware, bq as refreshToken, aZ as requestOnlySessionMiddleware, b4 as requestPasswordReset, b6 as requestPasswordResetCallback, b8 as resetPassword, b2 as revokeOtherSessions, b0 as revokeSession, b1 as revokeSessions, aQ as router, bb as sendVerificationEmail, ba as sendVerificationEmailFn, aY as sensitiveSessionMiddleware, aX as sessionMiddleware, bf as setPassword, aS as signInEmail, aR as signInSocial, b3 as signOut, bl as signUpEmail, bo as unlinkAccount, bd as updateUser, bc as verifyEmail } from '../shared/better-auth.
|
|
2
|
+
export { z as AuthEndpoint, D as AuthMiddleware, br as accountInfo, aT as callbackOAuth, bi as changeEmail, be as changePassword, aO as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, b9 as createEmailVerificationToken, bg as deleteUser, bh as deleteUserCallback, bj as error, b5 as forgetPassword, b7 as forgetPasswordCallback, a_ as freshSessionMiddleware, bp as getAccessToken, aP as getEndpoints, aV as getSession, aW as getSessionFromCtx, aU as getSessionQuerySchema, bn as linkSocialAccount, a$ as listSessions, bm as listUserAccounts, bk as ok, w as optionsMiddleware, bt as originCheck, bs as originCheckMiddleware, bq as refreshToken, aZ as requestOnlySessionMiddleware, b4 as requestPasswordReset, b6 as requestPasswordResetCallback, b8 as resetPassword, b2 as revokeOtherSessions, b0 as revokeSession, b1 as revokeSessions, aQ as router, bb as sendVerificationEmail, ba as sendVerificationEmailFn, aY as sensitiveSessionMiddleware, aX as sessionMiddleware, bf as setPassword, aS as signInEmail, aR as signInSocial, b3 as signOut, bl as signUpEmail, bo as unlinkAccount, bd as updateUser, bc as verifyEmail } from '../shared/better-auth.BFegHNjn.mjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../shared/better-auth.DTtXpZYr.mjs';
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../shared/better-auth.C6qXK08w.js';
|
|
2
|
-
export { z as AuthEndpoint, D as AuthMiddleware, br as accountInfo, aT as callbackOAuth, bi as changeEmail, be as changePassword, aO as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, b9 as createEmailVerificationToken, bg as deleteUser, bh as deleteUserCallback, bj as error, b5 as forgetPassword, b7 as forgetPasswordCallback, a_ as freshSessionMiddleware, bp as getAccessToken, aP as getEndpoints, aV as getSession, aW as getSessionFromCtx, aU as getSessionQuerySchema, bn as linkSocialAccount, a$ as listSessions, bm as listUserAccounts, bk as ok, w as optionsMiddleware, bt as originCheck, bs as originCheckMiddleware, bq as refreshToken, aZ as requestOnlySessionMiddleware, b4 as requestPasswordReset, b6 as requestPasswordResetCallback, b8 as resetPassword, b2 as revokeOtherSessions, b0 as revokeSession, b1 as revokeSessions, aQ as router, bb as sendVerificationEmail, ba as sendVerificationEmailFn, aY as sensitiveSessionMiddleware, aX as sessionMiddleware, bf as setPassword, aS as signInEmail, aR as signInSocial, b3 as signOut, bl as signUpEmail, bo as unlinkAccount, bd as updateUser, bc as verifyEmail } from '../shared/better-auth.
|
|
2
|
+
export { z as AuthEndpoint, D as AuthMiddleware, br as accountInfo, aT as callbackOAuth, bi as changeEmail, be as changePassword, aO as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, b9 as createEmailVerificationToken, bg as deleteUser, bh as deleteUserCallback, bj as error, b5 as forgetPassword, b7 as forgetPasswordCallback, a_ as freshSessionMiddleware, bp as getAccessToken, aP as getEndpoints, aV as getSession, aW as getSessionFromCtx, aU as getSessionQuerySchema, bn as linkSocialAccount, a$ as listSessions, bm as listUserAccounts, bk as ok, w as optionsMiddleware, bt as originCheck, bs as originCheckMiddleware, bq as refreshToken, aZ as requestOnlySessionMiddleware, b4 as requestPasswordReset, b6 as requestPasswordResetCallback, b8 as resetPassword, b2 as revokeOtherSessions, b0 as revokeSession, b1 as revokeSessions, aQ as router, bb as sendVerificationEmail, ba as sendVerificationEmailFn, aY as sensitiveSessionMiddleware, aX as sessionMiddleware, bf as setPassword, aS as signInEmail, aR as signInSocial, b3 as signOut, bl as signUpEmail, bo as unlinkAccount, bd as updateUser, bc as verifyEmail } from '../shared/better-auth.nTGSkBy-.js';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../shared/better-auth.DTtXpZYr.js';
|
package/dist/client/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { b as BASE_ERROR_CODES, n as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.
|
|
1
|
+
import { b as BASE_ERROR_CODES, n as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth._WE9Fhqj.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';
|
|
5
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes, S as SessionQueryParams } from '../shared/better-auth.
|
|
6
|
-
export { A as AtomListener, i as InferAdditionalFromClient, f as InferPluginsFromClient, g as InferSessionFromClient, h as InferUserFromClient, e as Store } from '../shared/better-auth.
|
|
5
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes, S as SessionQueryParams } from '../shared/better-auth.BGDp9pBQ.cjs';
|
|
6
|
+
export { A as AtomListener, i as InferAdditionalFromClient, f as InferPluginsFromClient, g as InferSessionFromClient, h as InferUserFromClient, e as Store } from '../shared/better-auth.BGDp9pBQ.cjs';
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
package/dist/client/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { b as BASE_ERROR_CODES, n as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.
|
|
1
|
+
import { b as BASE_ERROR_CODES, n as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.BFegHNjn.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';
|
|
5
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes, S as SessionQueryParams } from '../shared/better-auth.
|
|
6
|
-
export { A as AtomListener, i as InferAdditionalFromClient, f as InferPluginsFromClient, g as InferSessionFromClient, h as InferUserFromClient, e as Store } from '../shared/better-auth.
|
|
5
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes, S as SessionQueryParams } from '../shared/better-auth.HsL9NWdo.mjs';
|
|
6
|
+
export { A as AtomListener, i as InferAdditionalFromClient, f as InferPluginsFromClient, g as InferSessionFromClient, h as InferUserFromClient, e as Store } from '../shared/better-auth.HsL9NWdo.mjs';
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { b as BASE_ERROR_CODES, n as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.
|
|
1
|
+
import { b as BASE_ERROR_CODES, n as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.nTGSkBy-.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';
|
|
5
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes, S as SessionQueryParams } from '../shared/better-auth.
|
|
6
|
-
export { A as AtomListener, i as InferAdditionalFromClient, f as InferPluginsFromClient, g as InferSessionFromClient, h as InferUserFromClient, e as Store } from '../shared/better-auth.
|
|
5
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes, S as SessionQueryParams } from '../shared/better-auth.p1cIDE6Y.js';
|
|
6
|
+
export { A as AtomListener, i as InferAdditionalFromClient, f as InferPluginsFromClient, g as InferSessionFromClient, h as InferUserFromClient, e as Store } from '../shared/better-auth.p1cIDE6Y.js';
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
|
@@ -2,9 +2,9 @@ import { OrganizationOptions, organization, InferMember, InferInvitation, Team,
|
|
|
2
2
|
import { AccessControl, Role, Statements } from '../../plugins/access/index.cjs';
|
|
3
3
|
import * as nanostores from 'nanostores';
|
|
4
4
|
import { atom } from 'nanostores';
|
|
5
|
-
import { M as FieldAttribute, B as BetterAuthOptions, U as User, n as BetterAuthPlugin } from '../../shared/better-auth.
|
|
5
|
+
import { M as FieldAttribute, B as BetterAuthOptions, U as User, n as BetterAuthPlugin } from '../../shared/better-auth._WE9Fhqj.cjs';
|
|
6
6
|
import { a as Prettify } from '../../shared/better-auth.DTtXpZYr.cjs';
|
|
7
|
-
import { e as Store, C as ClientOptions, S as SessionQueryParams } from '../../shared/better-auth.
|
|
7
|
+
import { e as Store, C as ClientOptions, S as SessionQueryParams } from '../../shared/better-auth.BGDp9pBQ.cjs';
|
|
8
8
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
9
9
|
import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
10
10
|
import { username } from '../../plugins/username/index.cjs';
|
|
@@ -21,7 +21,7 @@ import { multiSession } from '../../plugins/multi-session/index.cjs';
|
|
|
21
21
|
import { emailOTP } from '../../plugins/email-otp/index.cjs';
|
|
22
22
|
import { sso } from '../../plugins/sso/index.cjs';
|
|
23
23
|
import { oidcProvider } from '../../plugins/oidc-provider/index.cjs';
|
|
24
|
-
import { a as apiKey } from '../../shared/better-auth.
|
|
24
|
+
import { a as apiKey } from '../../shared/better-auth.BkVhzNer.cjs';
|
|
25
25
|
import { oneTimeToken } from '../../plugins/one-time-token/index.cjs';
|
|
26
26
|
import { siwe } from '../../plugins/siwe/index.cjs';
|
|
27
27
|
export { deviceAuthorizationClient } from '../../plugins/device-authorization/index.cjs';
|
|
@@ -2,9 +2,9 @@ import { OrganizationOptions, organization, InferMember, InferInvitation, Team,
|
|
|
2
2
|
import { AccessControl, Role, Statements } from '../../plugins/access/index.mjs';
|
|
3
3
|
import * as nanostores from 'nanostores';
|
|
4
4
|
import { atom } from 'nanostores';
|
|
5
|
-
import { M as FieldAttribute, B as BetterAuthOptions, U as User, n as BetterAuthPlugin } from '../../shared/better-auth.
|
|
5
|
+
import { M as FieldAttribute, B as BetterAuthOptions, U as User, n as BetterAuthPlugin } from '../../shared/better-auth.BFegHNjn.mjs';
|
|
6
6
|
import { a as Prettify } from '../../shared/better-auth.DTtXpZYr.mjs';
|
|
7
|
-
import { e as Store, C as ClientOptions, S as SessionQueryParams } from '../../shared/better-auth.
|
|
7
|
+
import { e as Store, C as ClientOptions, S as SessionQueryParams } from '../../shared/better-auth.HsL9NWdo.mjs';
|
|
8
8
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
9
9
|
import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
10
10
|
import { username } from '../../plugins/username/index.mjs';
|
|
@@ -21,7 +21,7 @@ import { multiSession } from '../../plugins/multi-session/index.mjs';
|
|
|
21
21
|
import { emailOTP } from '../../plugins/email-otp/index.mjs';
|
|
22
22
|
import { sso } from '../../plugins/sso/index.mjs';
|
|
23
23
|
import { oidcProvider } from '../../plugins/oidc-provider/index.mjs';
|
|
24
|
-
import { a as apiKey } from '../../shared/better-auth.
|
|
24
|
+
import { a as apiKey } from '../../shared/better-auth.DWgVanF-.mjs';
|
|
25
25
|
import { oneTimeToken } from '../../plugins/one-time-token/index.mjs';
|
|
26
26
|
import { siwe } from '../../plugins/siwe/index.mjs';
|
|
27
27
|
export { deviceAuthorizationClient } from '../../plugins/device-authorization/index.mjs';
|
|
@@ -2,9 +2,9 @@ import { OrganizationOptions, organization, InferMember, InferInvitation, Team,
|
|
|
2
2
|
import { AccessControl, Role, Statements } from '../../plugins/access/index.js';
|
|
3
3
|
import * as nanostores from 'nanostores';
|
|
4
4
|
import { atom } from 'nanostores';
|
|
5
|
-
import { M as FieldAttribute, B as BetterAuthOptions, U as User, n as BetterAuthPlugin } from '../../shared/better-auth.
|
|
5
|
+
import { M as FieldAttribute, B as BetterAuthOptions, U as User, n as BetterAuthPlugin } from '../../shared/better-auth.nTGSkBy-.js';
|
|
6
6
|
import { a as Prettify } from '../../shared/better-auth.DTtXpZYr.js';
|
|
7
|
-
import { e as Store, C as ClientOptions, S as SessionQueryParams } from '../../shared/better-auth.
|
|
7
|
+
import { e as Store, C as ClientOptions, S as SessionQueryParams } from '../../shared/better-auth.p1cIDE6Y.js';
|
|
8
8
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
9
9
|
import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
10
10
|
import { username } from '../../plugins/username/index.js';
|
|
@@ -21,7 +21,7 @@ import { multiSession } from '../../plugins/multi-session/index.js';
|
|
|
21
21
|
import { emailOTP } from '../../plugins/email-otp/index.js';
|
|
22
22
|
import { sso } from '../../plugins/sso/index.js';
|
|
23
23
|
import { oidcProvider } from '../../plugins/oidc-provider/index.js';
|
|
24
|
-
import { a as apiKey } from '../../shared/better-auth.
|
|
24
|
+
import { a as apiKey } from '../../shared/better-auth.AFdKV9lT.js';
|
|
25
25
|
import { oneTimeToken } from '../../plugins/one-time-token/index.js';
|
|
26
26
|
import { siwe } from '../../plugins/siwe/index.js';
|
|
27
27
|
export { deviceAuthorizationClient } from '../../plugins/device-authorization/index.js';
|
|
@@ -4,10 +4,10 @@ export * from 'nanostores';
|
|
|
4
4
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
5
5
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
6
6
|
export * from '@better-fetch/fetch';
|
|
7
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, S as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.
|
|
7
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, S as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.BGDp9pBQ.cjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.cjs';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { b as BASE_ERROR_CODES } from '../../shared/better-auth._WE9Fhqj.cjs';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod';
|
|
13
13
|
import 'kysely';
|
|
@@ -67,15 +67,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
67
67
|
data: InferClientAPI<Option> extends {
|
|
68
68
|
getSession: () => Promise<infer Res>;
|
|
69
69
|
} ? Res extends {
|
|
70
|
+
data: infer S;
|
|
71
|
+
error: null;
|
|
72
|
+
} | {
|
|
70
73
|
data: null;
|
|
71
74
|
error: {
|
|
72
75
|
message?: string | undefined;
|
|
73
76
|
status: number;
|
|
74
77
|
statusText: string;
|
|
75
78
|
};
|
|
76
|
-
} | {
|
|
77
|
-
data: infer S;
|
|
78
|
-
error: null;
|
|
79
79
|
} ? S : Res : never;
|
|
80
80
|
isPending: boolean;
|
|
81
81
|
error: BetterFetchError | null;
|
|
@@ -87,15 +87,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
87
87
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
88
88
|
getSession: () => Promise<infer Res>;
|
|
89
89
|
} ? Res extends {
|
|
90
|
+
data: infer S;
|
|
91
|
+
error: null;
|
|
92
|
+
} | {
|
|
90
93
|
data: null;
|
|
91
94
|
error: {
|
|
92
95
|
message?: string | undefined;
|
|
93
96
|
status: number;
|
|
94
97
|
statusText: string;
|
|
95
98
|
};
|
|
96
|
-
} | {
|
|
97
|
-
data: infer S;
|
|
98
|
-
error: null;
|
|
99
99
|
} ? S : Res : never>;
|
|
100
100
|
};
|
|
101
101
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -115,13 +115,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
115
115
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
116
116
|
};
|
|
117
117
|
})[];
|
|
118
|
+
redirect?: RequestRedirect | undefined;
|
|
118
119
|
method: string;
|
|
119
120
|
headers?: (HeadersInit & (HeadersInit | {
|
|
120
121
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
121
122
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
122
123
|
authorization: "Bearer" | "Basic";
|
|
123
124
|
})) | undefined;
|
|
124
|
-
redirect?: RequestRedirect | undefined;
|
|
125
125
|
cache?: RequestCache | undefined;
|
|
126
126
|
credentials?: RequestCredentials;
|
|
127
127
|
integrity?: string | undefined;
|
|
@@ -4,10 +4,10 @@ export * from 'nanostores';
|
|
|
4
4
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
5
5
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
6
6
|
export * from '@better-fetch/fetch';
|
|
7
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, S as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.
|
|
7
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, S as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.HsL9NWdo.mjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.mjs';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.BFegHNjn.mjs';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod';
|
|
13
13
|
import 'kysely';
|
|
@@ -67,15 +67,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
67
67
|
data: InferClientAPI<Option> extends {
|
|
68
68
|
getSession: () => Promise<infer Res>;
|
|
69
69
|
} ? Res extends {
|
|
70
|
+
data: infer S;
|
|
71
|
+
error: null;
|
|
72
|
+
} | {
|
|
70
73
|
data: null;
|
|
71
74
|
error: {
|
|
72
75
|
message?: string | undefined;
|
|
73
76
|
status: number;
|
|
74
77
|
statusText: string;
|
|
75
78
|
};
|
|
76
|
-
} | {
|
|
77
|
-
data: infer S;
|
|
78
|
-
error: null;
|
|
79
79
|
} ? S : Res : never;
|
|
80
80
|
isPending: boolean;
|
|
81
81
|
error: BetterFetchError | null;
|
|
@@ -87,15 +87,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
87
87
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
88
88
|
getSession: () => Promise<infer Res>;
|
|
89
89
|
} ? Res extends {
|
|
90
|
+
data: infer S;
|
|
91
|
+
error: null;
|
|
92
|
+
} | {
|
|
90
93
|
data: null;
|
|
91
94
|
error: {
|
|
92
95
|
message?: string | undefined;
|
|
93
96
|
status: number;
|
|
94
97
|
statusText: string;
|
|
95
98
|
};
|
|
96
|
-
} | {
|
|
97
|
-
data: infer S;
|
|
98
|
-
error: null;
|
|
99
99
|
} ? S : Res : never>;
|
|
100
100
|
};
|
|
101
101
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -115,13 +115,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
115
115
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
116
116
|
};
|
|
117
117
|
})[];
|
|
118
|
+
redirect?: RequestRedirect | undefined;
|
|
118
119
|
method: string;
|
|
119
120
|
headers?: (HeadersInit & (HeadersInit | {
|
|
120
121
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
121
122
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
122
123
|
authorization: "Bearer" | "Basic";
|
|
123
124
|
})) | undefined;
|
|
124
|
-
redirect?: RequestRedirect | undefined;
|
|
125
125
|
cache?: RequestCache | undefined;
|
|
126
126
|
credentials?: RequestCredentials;
|
|
127
127
|
integrity?: string | undefined;
|
|
@@ -4,10 +4,10 @@ export * from 'nanostores';
|
|
|
4
4
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
5
5
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
6
6
|
export * from '@better-fetch/fetch';
|
|
7
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, S as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.
|
|
7
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, S as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.p1cIDE6Y.js';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.js';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.nTGSkBy-.js';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod';
|
|
13
13
|
import 'kysely';
|
|
@@ -67,15 +67,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
67
67
|
data: InferClientAPI<Option> extends {
|
|
68
68
|
getSession: () => Promise<infer Res>;
|
|
69
69
|
} ? Res extends {
|
|
70
|
+
data: infer S;
|
|
71
|
+
error: null;
|
|
72
|
+
} | {
|
|
70
73
|
data: null;
|
|
71
74
|
error: {
|
|
72
75
|
message?: string | undefined;
|
|
73
76
|
status: number;
|
|
74
77
|
statusText: string;
|
|
75
78
|
};
|
|
76
|
-
} | {
|
|
77
|
-
data: infer S;
|
|
78
|
-
error: null;
|
|
79
79
|
} ? S : Res : never;
|
|
80
80
|
isPending: boolean;
|
|
81
81
|
error: BetterFetchError | null;
|
|
@@ -87,15 +87,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
87
87
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
88
88
|
getSession: () => Promise<infer Res>;
|
|
89
89
|
} ? Res extends {
|
|
90
|
+
data: infer S;
|
|
91
|
+
error: null;
|
|
92
|
+
} | {
|
|
90
93
|
data: null;
|
|
91
94
|
error: {
|
|
92
95
|
message?: string | undefined;
|
|
93
96
|
status: number;
|
|
94
97
|
statusText: string;
|
|
95
98
|
};
|
|
96
|
-
} | {
|
|
97
|
-
data: infer S;
|
|
98
|
-
error: null;
|
|
99
99
|
} ? S : Res : never>;
|
|
100
100
|
};
|
|
101
101
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -115,13 +115,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
115
115
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
116
116
|
};
|
|
117
117
|
})[];
|
|
118
|
+
redirect?: RequestRedirect | undefined;
|
|
118
119
|
method: string;
|
|
119
120
|
headers?: (HeadersInit & (HeadersInit | {
|
|
120
121
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
121
122
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
122
123
|
authorization: "Bearer" | "Basic";
|
|
123
124
|
})) | undefined;
|
|
124
|
-
redirect?: RequestRedirect | undefined;
|
|
125
125
|
cache?: RequestCache | undefined;
|
|
126
126
|
credentials?: RequestCredentials;
|
|
127
127
|
integrity?: string | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
2
2
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
3
3
|
export * from '@better-fetch/fetch';
|
|
4
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.
|
|
4
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.BGDp9pBQ.cjs';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
6
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.cjs';
|
|
7
|
-
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { b as BASE_ERROR_CODES } from '../../shared/better-auth._WE9Fhqj.cjs';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'zod';
|
|
@@ -23,15 +23,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
23
23
|
data: InferClientAPI<Option> extends {
|
|
24
24
|
getSession: () => Promise<infer Res>;
|
|
25
25
|
} ? Res extends {
|
|
26
|
-
data: infer S;
|
|
27
|
-
error: null;
|
|
28
|
-
} | {
|
|
29
26
|
data: null;
|
|
30
27
|
error: {
|
|
31
28
|
message?: string | undefined;
|
|
32
29
|
status: number;
|
|
33
30
|
statusText: string;
|
|
34
31
|
};
|
|
32
|
+
} | {
|
|
33
|
+
data: infer S;
|
|
34
|
+
error: null;
|
|
35
35
|
} ? S : Res extends Record<string, any> ? Res : never : never;
|
|
36
36
|
isPending: boolean;
|
|
37
37
|
isRefetching: boolean;
|
|
@@ -41,15 +41,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
41
41
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
42
42
|
getSession: () => Promise<infer Res>;
|
|
43
43
|
} ? Res extends {
|
|
44
|
-
data: infer S;
|
|
45
|
-
error: null;
|
|
46
|
-
} | {
|
|
47
44
|
data: null;
|
|
48
45
|
error: {
|
|
49
46
|
message?: string | undefined;
|
|
50
47
|
status: number;
|
|
51
48
|
statusText: string;
|
|
52
49
|
};
|
|
50
|
+
} | {
|
|
51
|
+
data: infer S;
|
|
52
|
+
error: null;
|
|
53
53
|
} ? S : Res extends Record<string, any> ? Res : never : never>;
|
|
54
54
|
};
|
|
55
55
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -69,13 +69,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
69
69
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
70
70
|
};
|
|
71
71
|
})[];
|
|
72
|
+
redirect?: RequestRedirect | undefined;
|
|
72
73
|
method: string;
|
|
73
74
|
headers?: (HeadersInit & (HeadersInit | {
|
|
74
75
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
75
76
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
76
77
|
authorization: "Bearer" | "Basic";
|
|
77
78
|
})) | undefined;
|
|
78
|
-
redirect?: RequestRedirect | undefined;
|
|
79
79
|
cache?: RequestCache | undefined;
|
|
80
80
|
credentials?: RequestCredentials;
|
|
81
81
|
integrity?: string | undefined;
|