better-auth 1.0.12 → 1.0.13
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.d.cts +1 -1
- package/dist/adapters/drizzle.d.ts +1 -1
- package/dist/adapters/kysely.d.cts +1 -1
- package/dist/adapters/kysely.d.ts +1 -1
- package/dist/adapters/memory.d.cts +1 -1
- package/dist/adapters/memory.d.ts +1 -1
- package/dist/adapters/mongodb.d.cts +1 -1
- package/dist/adapters/mongodb.d.ts +1 -1
- package/dist/adapters/prisma.d.cts +1 -1
- package/dist/adapters/prisma.d.ts +1 -1
- package/dist/api.d.cts +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/{auth-CjVX76WQ.d.ts → auth-CD4Xpr3o.d.ts} +2 -2
- package/dist/{auth-DpLtBwtp.d.cts → auth-w3OQlGCL.d.cts} +2 -2
- package/dist/client/plugins.d.cts +3 -3
- package/dist/client/plugins.d.ts +3 -3
- package/dist/client.d.cts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/cookies.d.cts +1 -1
- package/dist/cookies.d.ts +1 -1
- package/dist/db.d.cts +2 -2
- package/dist/db.d.ts +2 -2
- package/dist/{index-CvIjIhxZ.d.cts → index-ByFLkCdM.d.cts} +1 -1
- package/dist/{index-C3MIKKcB.d.ts → index-DVnRCNUh.d.ts} +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/next-js.d.cts +1 -1
- package/dist/next-js.d.ts +1 -1
- package/dist/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/oauth2.d.cts +2 -2
- package/dist/oauth2.d.ts +2 -2
- package/dist/plugins.d.cts +3 -3
- package/dist/plugins.d.ts +3 -3
- package/dist/react.d.cts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/solid-start.d.cts +1 -1
- package/dist/solid-start.d.ts +1 -1
- package/dist/solid.d.cts +1 -1
- package/dist/solid.d.ts +1 -1
- package/dist/{state-CiXYqJFO.d.ts → state-DEuMLZwi.d.ts} +1 -1
- package/dist/{state-DGZa89mt.d.cts → state-DbPLcDa3.d.cts} +1 -1
- package/dist/svelte-kit.d.cts +1 -1
- package/dist/svelte-kit.d.ts +1 -1
- package/dist/svelte.d.cts +1 -1
- package/dist/svelte.d.ts +1 -1
- package/dist/types.d.cts +2 -2
- package/dist/types.d.ts +2 -2
- package/dist/vue.d.cts +1 -1
- package/dist/vue.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../auth-
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../auth-w3OQlGCL.cjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../helper-CbDsvI53.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../auth-
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../auth-CD4Xpr3o.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../helper-CbDsvI53.js';
|
package/dist/api.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a7 as AuthEndpoint, a8 as AuthMiddleware, ad as callbackOAuth, az as changeEmail, av as changePassword, a6 as createAuthEndpoint, a5 as createAuthMiddleware, aq as createEmailVerificationToken, ax as deleteUser, ay as deleteUserCallback, aA as error, an as forgetPassword, ao as forgetPasswordCallback, ah as freshSessionMiddleware, a9 as getEndpoints, ae as getSession, af as getSessionFromCtx, aE as linkSocialAccount, ai as listSessions, aD as listUserAccounts, aB as ok, a4 as optionsMiddleware, aF as originCheckMiddleware, ap as resetPassword, al as revokeOtherSessions, aj as revokeSession, ak as revokeSessions, aa as router, as as sendVerificationEmail, ar as sendVerificationEmailFn, ag as sessionMiddleware, aw as setPassword, ac as signInEmail, ab as signInSocial, am as signOut, aC as signUpEmail, au as updateUser, at as verifyEmail } from './auth-
|
|
1
|
+
export { a7 as AuthEndpoint, a8 as AuthMiddleware, ad as callbackOAuth, az as changeEmail, av as changePassword, a6 as createAuthEndpoint, a5 as createAuthMiddleware, aq as createEmailVerificationToken, ax as deleteUser, ay as deleteUserCallback, aA as error, an as forgetPassword, ao as forgetPasswordCallback, ah as freshSessionMiddleware, a9 as getEndpoints, ae as getSession, af as getSessionFromCtx, aE as linkSocialAccount, ai as listSessions, aD as listUserAccounts, aB as ok, a4 as optionsMiddleware, aF as originCheckMiddleware, ap as resetPassword, al as revokeOtherSessions, aj as revokeSession, ak as revokeSessions, aa as router, as as sendVerificationEmail, ar as sendVerificationEmailFn, ag as sessionMiddleware, aw as setPassword, ac as signInEmail, ab as signInSocial, am as signOut, aC as signUpEmail, au as updateUser, at as verifyEmail } from './auth-w3OQlGCL.cjs';
|
|
2
2
|
import './helper-CbDsvI53.cjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
package/dist/api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a7 as AuthEndpoint, a8 as AuthMiddleware, ad as callbackOAuth, az as changeEmail, av as changePassword, a6 as createAuthEndpoint, a5 as createAuthMiddleware, aq as createEmailVerificationToken, ax as deleteUser, ay as deleteUserCallback, aA as error, an as forgetPassword, ao as forgetPasswordCallback, ah as freshSessionMiddleware, a9 as getEndpoints, ae as getSession, af as getSessionFromCtx, aE as linkSocialAccount, ai as listSessions, aD as listUserAccounts, aB as ok, a4 as optionsMiddleware, aF as originCheckMiddleware, ap as resetPassword, al as revokeOtherSessions, aj as revokeSession, ak as revokeSessions, aa as router, as as sendVerificationEmail, ar as sendVerificationEmailFn, ag as sessionMiddleware, aw as setPassword, ac as signInEmail, ab as signInSocial, am as signOut, aC as signUpEmail, au as updateUser, at as verifyEmail } from './auth-
|
|
1
|
+
export { a7 as AuthEndpoint, a8 as AuthMiddleware, ad as callbackOAuth, az as changeEmail, av as changePassword, a6 as createAuthEndpoint, a5 as createAuthMiddleware, aq as createEmailVerificationToken, ax as deleteUser, ay as deleteUserCallback, aA as error, an as forgetPassword, ao as forgetPasswordCallback, ah as freshSessionMiddleware, a9 as getEndpoints, ae as getSession, af as getSessionFromCtx, aE as linkSocialAccount, ai as listSessions, aD as listUserAccounts, aB as ok, a4 as optionsMiddleware, aF as originCheckMiddleware, ap as resetPassword, al as revokeOtherSessions, aj as revokeSession, ak as revokeSessions, aa as router, as as sendVerificationEmail, ar as sendVerificationEmailFn, ag as sessionMiddleware, aw as setPassword, ac as signInEmail, ab as signInSocial, am as signOut, aC as signUpEmail, au as updateUser, at as verifyEmail } from './auth-CD4Xpr3o.js';
|
|
2
2
|
import './helper-CbDsvI53.js';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
|
@@ -11216,10 +11216,10 @@ type InferSessionAPI<API> = API extends {
|
|
|
11216
11216
|
disableCookieCache?: boolean;
|
|
11217
11217
|
};
|
|
11218
11218
|
asResponse?: R;
|
|
11219
|
-
}) =>
|
|
11219
|
+
}) => false extends R ? Promise<PrettifyDeep<Awaited<ReturnType<E>>>> & {
|
|
11220
11220
|
options: E["options"];
|
|
11221
11221
|
path: E["path"];
|
|
11222
|
-
}
|
|
11222
|
+
} : Promise<Response>;
|
|
11223
11223
|
} : never : never> : never;
|
|
11224
11224
|
type InferAPI<API> = InferSessionAPI<API> & FilteredAPI<API>;
|
|
11225
11225
|
|
|
@@ -11216,10 +11216,10 @@ type InferSessionAPI<API> = API extends {
|
|
|
11216
11216
|
disableCookieCache?: boolean;
|
|
11217
11217
|
};
|
|
11218
11218
|
asResponse?: R;
|
|
11219
|
-
}) =>
|
|
11219
|
+
}) => false extends R ? Promise<PrettifyDeep<Awaited<ReturnType<E>>>> & {
|
|
11220
11220
|
options: E["options"];
|
|
11221
11221
|
path: E["path"];
|
|
11222
|
-
}
|
|
11222
|
+
} : Promise<Response>;
|
|
11223
11223
|
} : never : never> : never;
|
|
11224
11224
|
type InferAPI<API> = InferSessionAPI<API> & FilteredAPI<API>;
|
|
11225
11225
|
|
|
@@ -2,10 +2,10 @@ import * as nanostores from 'nanostores';
|
|
|
2
2
|
import { AccessControl, StatementsPrimitive, Role } from '../plugins/access.cjs';
|
|
3
3
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
4
4
|
import { BetterFetchOption } from '@better-fetch/fetch';
|
|
5
|
-
import { o as organization, q as Organization, M as Member, I as Invitation, u as username, m as magicLink, d as phoneNumber, f as anonymous, i as admin, j as genericOAuth, k as jwt, l as multiSession, n as emailOTP } from '../index-
|
|
6
|
-
export { g as getPasskeyActions, c as passkeyClient, a as twoFactorClient } from '../index-
|
|
5
|
+
import { o as organization, q as Organization, M as Member, I as Invitation, u as username, m as magicLink, d as phoneNumber, f as anonymous, i as admin, j as genericOAuth, k as jwt, l as multiSession, n as emailOTP } from '../index-ByFLkCdM.cjs';
|
|
6
|
+
export { g as getPasskeyActions, c as passkeyClient, a as twoFactorClient } from '../index-ByFLkCdM.cjs';
|
|
7
7
|
import { b as Prettify } from '../helper-CbDsvI53.cjs';
|
|
8
|
-
import { J as FieldAttribute, B as BetterAuthOptions, k as BetterAuthPlugin } from '../auth-
|
|
8
|
+
import { J as FieldAttribute, B as BetterAuthOptions, k as BetterAuthPlugin } from '../auth-w3OQlGCL.cjs';
|
|
9
9
|
import { Store } from '../types.cjs';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import 'better-call';
|
package/dist/client/plugins.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import * as nanostores from 'nanostores';
|
|
|
2
2
|
import { AccessControl, StatementsPrimitive, Role } from '../plugins/access.js';
|
|
3
3
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
4
4
|
import { BetterFetchOption } from '@better-fetch/fetch';
|
|
5
|
-
import { o as organization, q as Organization, M as Member, I as Invitation, u as username, m as magicLink, d as phoneNumber, f as anonymous, i as admin, j as genericOAuth, k as jwt, l as multiSession, n as emailOTP } from '../index-
|
|
6
|
-
export { g as getPasskeyActions, c as passkeyClient, a as twoFactorClient } from '../index-
|
|
5
|
+
import { o as organization, q as Organization, M as Member, I as Invitation, u as username, m as magicLink, d as phoneNumber, f as anonymous, i as admin, j as genericOAuth, k as jwt, l as multiSession, n as emailOTP } from '../index-DVnRCNUh.js';
|
|
6
|
+
export { g as getPasskeyActions, c as passkeyClient, a as twoFactorClient } from '../index-DVnRCNUh.js';
|
|
7
7
|
import { b as Prettify } from '../helper-CbDsvI53.js';
|
|
8
|
-
import { J as FieldAttribute, B as BetterAuthOptions, k as BetterAuthPlugin } from '../auth-
|
|
8
|
+
import { J as FieldAttribute, B as BetterAuthOptions, k as BetterAuthPlugin } from '../auth-CD4Xpr3o.js';
|
|
9
9
|
import { Store } from '../types.js';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import 'better-call';
|
package/dist/client.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as BASE_ERROR_CODES, k as BetterAuthPlugin } from './auth-
|
|
1
|
+
import { a as BASE_ERROR_CODES, k as BetterAuthPlugin } from './auth-w3OQlGCL.cjs';
|
|
2
2
|
import { ClientOptions, InferClientAPI, InferActions, InferErrorCodes, BetterAuthClientPlugin, IsSignal } from './types.cjs';
|
|
3
3
|
export { AtomListener, InferAdditionalFromClient, InferPluginsFromClient, InferSessionFromClient, InferUserFromClient, Store } from './types.cjs';
|
|
4
4
|
import * as nanostores from 'nanostores';
|
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as BASE_ERROR_CODES, k as BetterAuthPlugin } from './auth-
|
|
1
|
+
import { a as BASE_ERROR_CODES, k as BetterAuthPlugin } from './auth-CD4Xpr3o.js';
|
|
2
2
|
import { ClientOptions, InferClientAPI, InferActions, InferErrorCodes, BetterAuthClientPlugin, IsSignal } from './types.js';
|
|
3
3
|
export { AtomListener, InferAdditionalFromClient, InferPluginsFromClient, InferSessionFromClient, InferUserFromClient, Store } from './types.js';
|
|
4
4
|
import * as nanostores from 'nanostores';
|
package/dist/cookies.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export { s as BetterAuthCookies, E as EligibleCookies, q as createCookieGetter, u as deleteSessionCookie, r as getCookies, v as parseCookies, w as parseSetCookieHeader, t as setSessionCookie } from './auth-
|
|
2
|
+
export { s as BetterAuthCookies, E as EligibleCookies, q as createCookieGetter, u as deleteSessionCookie, r as getCookies, v as parseCookies, w as parseSetCookieHeader, t as setSessionCookie } from './auth-w3OQlGCL.cjs';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import './helper-CbDsvI53.cjs';
|
package/dist/cookies.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export { s as BetterAuthCookies, E as EligibleCookies, q as createCookieGetter, u as deleteSessionCookie, r as getCookies, v as parseCookies, w as parseSetCookieHeader, t as setSessionCookie } from './auth-
|
|
2
|
+
export { s as BetterAuthCookies, E as EligibleCookies, q as createCookieGetter, u as deleteSessionCookie, r as getCookies, v as parseCookies, w as parseSetCookieHeader, t as setSessionCookie } from './auth-CD4Xpr3o.js';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import './helper-CbDsvI53.js';
|
package/dist/db.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as Adapter, B as BetterAuthOptions, W as Where, J as FieldAttribute, N as FieldType, K as KyselyDatabaseType } from './auth-
|
|
2
|
-
export { a2 as BetterAuthDbSchema, T as FieldAttributeConfig, a1 as InferFieldsFromOptions, a0 as InferFieldsFromPlugins, Z as InferFieldsInput, _ as InferFieldsInputClient, Y as InferFieldsOutput, X as InferValueType, Q as InternalAdapter, $ as PluginFieldAttribute, V as createFieldAttribute, O as createInternalAdapter, a3 as getAuthTables } from './auth-
|
|
1
|
+
import { n as Adapter, B as BetterAuthOptions, W as Where, J as FieldAttribute, N as FieldType, K as KyselyDatabaseType } from './auth-w3OQlGCL.cjs';
|
|
2
|
+
export { a2 as BetterAuthDbSchema, T as FieldAttributeConfig, a1 as InferFieldsFromOptions, a0 as InferFieldsFromPlugins, Z as InferFieldsInput, _ as InferFieldsInputClient, Y as InferFieldsOutput, X as InferValueType, Q as InternalAdapter, $ as PluginFieldAttribute, V as createFieldAttribute, O as createInternalAdapter, a3 as getAuthTables } from './auth-w3OQlGCL.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
package/dist/db.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as Adapter, B as BetterAuthOptions, W as Where, J as FieldAttribute, N as FieldType, K as KyselyDatabaseType } from './auth-
|
|
2
|
-
export { a2 as BetterAuthDbSchema, T as FieldAttributeConfig, a1 as InferFieldsFromOptions, a0 as InferFieldsFromPlugins, Z as InferFieldsInput, _ as InferFieldsInputClient, Y as InferFieldsOutput, X as InferValueType, Q as InternalAdapter, $ as PluginFieldAttribute, V as createFieldAttribute, O as createInternalAdapter, a3 as getAuthTables } from './auth-
|
|
1
|
+
import { n as Adapter, B as BetterAuthOptions, W as Where, J as FieldAttribute, N as FieldType, K as KyselyDatabaseType } from './auth-CD4Xpr3o.js';
|
|
2
|
+
export { a2 as BetterAuthDbSchema, T as FieldAttributeConfig, a1 as InferFieldsFromOptions, a0 as InferFieldsFromPlugins, Z as InferFieldsInput, _ as InferFieldsInputClient, Y as InferFieldsOutput, X as InferValueType, Q as InternalAdapter, $ as PluginFieldAttribute, V as createFieldAttribute, O as createInternalAdapter, a3 as getAuthTables } from './auth-CD4Xpr3o.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z, ZodLiteral, ZodObject, ZodOptional, ZodArray } from 'zod';
|
|
2
|
-
import { U as User, S as Session, l as InferOptionSchema, H as HookEndpointContext, j as AuthContext } from './auth-
|
|
2
|
+
import { U as User, S as Session, l as InferOptionSchema, H as HookEndpointContext, j as AuthContext } from './auth-w3OQlGCL.cjs';
|
|
3
3
|
import * as better_call from 'better-call';
|
|
4
4
|
import { APIError } from 'better-call';
|
|
5
5
|
import { b as Prettify } from './helper-CbDsvI53.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z, ZodLiteral, ZodObject, ZodOptional, ZodArray } from 'zod';
|
|
2
|
-
import { U as User, S as Session, l as InferOptionSchema, H as HookEndpointContext, j as AuthContext } from './auth-
|
|
2
|
+
import { U as User, S as Session, l as InferOptionSchema, H as HookEndpointContext, j as AuthContext } from './auth-CD4Xpr3o.js';
|
|
3
3
|
import * as better_call from 'better-call';
|
|
4
4
|
import { APIError } from 'better-call';
|
|
5
5
|
import { b as Prettify } from './helper-CbDsvI53.js';
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { n as Adapter, o as AdapterInstance, e as AdditionalSessionFieldsInput, f as AdditionalSessionFieldsOutput, c as AdditionalUserFieldsInput, d as AdditionalUserFieldsOutput, A as Auth, j as AuthContext, s as BetterAuthCookies, B as BetterAuthOptions, k as BetterAuthPlugin, E as EligibleCookies, G as GenericEndpointContext, H as HookEndpointContext, l as InferOptionSchema, m as InferPluginErrorCodes, h as InferPluginTypes, g as InferSession, I as InferUser, C as LogHandlerParams, L as LogLevel, z as Logger, M as Models, P as PluginSchema, R as RateLimit, p as SecondaryStorage, S as Session, U as User, W as Where, b as betterAuth, q as createCookieGetter, D as createLogger, u as deleteSessionCookie, r as getCookies, i as init, x as levels, F as logger, v as parseCookies, w as parseSetCookieHeader, t as setSessionCookie, y as shouldPublishLog } from './auth-
|
|
1
|
+
export { n as Adapter, o as AdapterInstance, e as AdditionalSessionFieldsInput, f as AdditionalSessionFieldsOutput, c as AdditionalUserFieldsInput, d as AdditionalUserFieldsOutput, A as Auth, j as AuthContext, s as BetterAuthCookies, B as BetterAuthOptions, k as BetterAuthPlugin, E as EligibleCookies, G as GenericEndpointContext, H as HookEndpointContext, l as InferOptionSchema, m as InferPluginErrorCodes, h as InferPluginTypes, g as InferSession, I as InferUser, C as LogHandlerParams, L as LogLevel, z as Logger, M as Models, P as PluginSchema, R as RateLimit, p as SecondaryStorage, S as Session, U as User, W as Where, b as betterAuth, q as createCookieGetter, D as createLogger, u as deleteSessionCookie, r as getCookies, i as init, x as levels, F as logger, v as parseCookies, w as parseSetCookieHeader, t as setSessionCookie, y as shouldPublishLog } from './auth-w3OQlGCL.cjs';
|
|
2
2
|
export { D as DeepPartial, H as HasRequiredKeys, a as LiteralNumber, L as LiteralString, c as LiteralUnion, O as OmitId, b as Prettify, P as PrettifyDeep, R as RequiredKeysOf, S as StripEmptyObjects, U as UnionToIntersection, W as WithoutEmpty } from './helper-CbDsvI53.cjs';
|
|
3
3
|
export { AtomListener, BetterAuthClientPlugin, ClientOptions, InferActions, InferAdditionalFromClient, InferClientAPI, InferErrorCodes, InferPluginsFromClient, InferSessionFromClient, InferUserFromClient, IsSignal, Store } from './types.cjs';
|
|
4
4
|
export { H as HIDE_METADATA } from './hide-metadata-DEHJp1rk.cjs';
|
|
5
|
-
export { g as generateState, p as parseState } from './state-
|
|
5
|
+
export { g as generateState, p as parseState } from './state-DbPLcDa3.cjs';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import 'better-call';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { n as Adapter, o as AdapterInstance, e as AdditionalSessionFieldsInput, f as AdditionalSessionFieldsOutput, c as AdditionalUserFieldsInput, d as AdditionalUserFieldsOutput, A as Auth, j as AuthContext, s as BetterAuthCookies, B as BetterAuthOptions, k as BetterAuthPlugin, E as EligibleCookies, G as GenericEndpointContext, H as HookEndpointContext, l as InferOptionSchema, m as InferPluginErrorCodes, h as InferPluginTypes, g as InferSession, I as InferUser, C as LogHandlerParams, L as LogLevel, z as Logger, M as Models, P as PluginSchema, R as RateLimit, p as SecondaryStorage, S as Session, U as User, W as Where, b as betterAuth, q as createCookieGetter, D as createLogger, u as deleteSessionCookie, r as getCookies, i as init, x as levels, F as logger, v as parseCookies, w as parseSetCookieHeader, t as setSessionCookie, y as shouldPublishLog } from './auth-
|
|
1
|
+
export { n as Adapter, o as AdapterInstance, e as AdditionalSessionFieldsInput, f as AdditionalSessionFieldsOutput, c as AdditionalUserFieldsInput, d as AdditionalUserFieldsOutput, A as Auth, j as AuthContext, s as BetterAuthCookies, B as BetterAuthOptions, k as BetterAuthPlugin, E as EligibleCookies, G as GenericEndpointContext, H as HookEndpointContext, l as InferOptionSchema, m as InferPluginErrorCodes, h as InferPluginTypes, g as InferSession, I as InferUser, C as LogHandlerParams, L as LogLevel, z as Logger, M as Models, P as PluginSchema, R as RateLimit, p as SecondaryStorage, S as Session, U as User, W as Where, b as betterAuth, q as createCookieGetter, D as createLogger, u as deleteSessionCookie, r as getCookies, i as init, x as levels, F as logger, v as parseCookies, w as parseSetCookieHeader, t as setSessionCookie, y as shouldPublishLog } from './auth-CD4Xpr3o.js';
|
|
2
2
|
export { D as DeepPartial, H as HasRequiredKeys, a as LiteralNumber, L as LiteralString, c as LiteralUnion, O as OmitId, b as Prettify, P as PrettifyDeep, R as RequiredKeysOf, S as StripEmptyObjects, U as UnionToIntersection, W as WithoutEmpty } from './helper-CbDsvI53.js';
|
|
3
3
|
export { AtomListener, BetterAuthClientPlugin, ClientOptions, InferActions, InferAdditionalFromClient, InferClientAPI, InferErrorCodes, InferPluginsFromClient, InferSessionFromClient, InferUserFromClient, IsSignal, Store } from './types.js';
|
|
4
4
|
export { H as HIDE_METADATA } from './hide-metadata-DEHJp1rk.js';
|
|
5
|
-
export { g as generateState, p as parseState } from './state-
|
|
5
|
+
export { g as generateState, p as parseState } from './state-DEuMLZwi.js';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import 'better-call';
|
package/dist/next-js.d.cts
CHANGED
package/dist/next-js.d.ts
CHANGED
package/dist/node.d.cts
CHANGED
package/dist/node.d.ts
CHANGED
package/dist/oauth2.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { P as ProviderOptions, O as OAuth2Tokens } from './index-DPqpIwKX.cjs';
|
|
2
2
|
export { a as OAuthProvider } from './index-DPqpIwKX.cjs';
|
|
3
|
-
export { g as generateState, p as parseState } from './state-
|
|
3
|
+
export { g as generateState, p as parseState } from './state-DbPLcDa3.cjs';
|
|
4
4
|
import './helper-CbDsvI53.cjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'jose';
|
|
7
|
-
import './auth-
|
|
7
|
+
import './auth-w3OQlGCL.cjs';
|
|
8
8
|
import 'kysely';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'better-sqlite3';
|
package/dist/oauth2.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { P as ProviderOptions, O as OAuth2Tokens } from './index-DF4xhhKM.js';
|
|
2
2
|
export { a as OAuthProvider } from './index-DF4xhhKM.js';
|
|
3
|
-
export { g as generateState, p as parseState } from './state-
|
|
3
|
+
export { g as generateState, p as parseState } from './state-DEuMLZwi.js';
|
|
4
4
|
import './helper-CbDsvI53.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'jose';
|
|
7
|
-
import './auth-
|
|
7
|
+
import './auth-CD4Xpr3o.js';
|
|
8
8
|
import 'kysely';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'better-sqlite3';
|
package/dist/plugins.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { A as AnonymousOptions, J as JwtOptions, O as OrganizationOptions, b as Passkey, P as PasskeyOptions, S as SessionWithImpersonatedBy, e as UserWithAnonymous, U as UserWithPhoneNumber, h as UserWithRole, i as admin, f as anonymous, n as emailOTP, j as genericOAuth, g as getPasskeyActions, k as jwt, m as magicLink, l as multiSession, o as organization, p as passkey, c as passkeyClient, d as phoneNumber, t as twoFactor, a as twoFactorClient, u as username } from './index-
|
|
2
|
-
import { H as HookEndpointContext, B as BetterAuthOptions, I as InferUser, g as InferSession } from './auth-
|
|
3
|
-
export { a7 as AuthEndpoint, a8 as AuthMiddleware, k as BetterAuthPlugin, l as InferOptionSchema, m as InferPluginErrorCodes, P as PluginSchema, a6 as createAuthEndpoint, a5 as createAuthMiddleware, a4 as optionsMiddleware } from './auth-
|
|
1
|
+
export { A as AnonymousOptions, J as JwtOptions, O as OrganizationOptions, b as Passkey, P as PasskeyOptions, S as SessionWithImpersonatedBy, e as UserWithAnonymous, U as UserWithPhoneNumber, h as UserWithRole, i as admin, f as anonymous, n as emailOTP, j as genericOAuth, g as getPasskeyActions, k as jwt, m as magicLink, l as multiSession, o as organization, p as passkey, c as passkeyClient, d as phoneNumber, t as twoFactor, a as twoFactorClient, u as username } from './index-ByFLkCdM.cjs';
|
|
2
|
+
import { H as HookEndpointContext, B as BetterAuthOptions, I as InferUser, g as InferSession } from './auth-w3OQlGCL.cjs';
|
|
3
|
+
export { a7 as AuthEndpoint, a8 as AuthMiddleware, k as BetterAuthPlugin, l as InferOptionSchema, m as InferPluginErrorCodes, P as PluginSchema, a6 as createAuthEndpoint, a5 as createAuthMiddleware, a4 as optionsMiddleware } from './auth-w3OQlGCL.cjs';
|
|
4
4
|
export { H as HIDE_METADATA } from './hide-metadata-DEHJp1rk.cjs';
|
|
5
5
|
import * as better_call from 'better-call';
|
|
6
6
|
import { APIError, OpenAPIParameter, OpenAPISchemaType } from 'better-call';
|
package/dist/plugins.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { A as AnonymousOptions, J as JwtOptions, O as OrganizationOptions, b as Passkey, P as PasskeyOptions, S as SessionWithImpersonatedBy, e as UserWithAnonymous, U as UserWithPhoneNumber, h as UserWithRole, i as admin, f as anonymous, n as emailOTP, j as genericOAuth, g as getPasskeyActions, k as jwt, m as magicLink, l as multiSession, o as organization, p as passkey, c as passkeyClient, d as phoneNumber, t as twoFactor, a as twoFactorClient, u as username } from './index-
|
|
2
|
-
import { H as HookEndpointContext, B as BetterAuthOptions, I as InferUser, g as InferSession } from './auth-
|
|
3
|
-
export { a7 as AuthEndpoint, a8 as AuthMiddleware, k as BetterAuthPlugin, l as InferOptionSchema, m as InferPluginErrorCodes, P as PluginSchema, a6 as createAuthEndpoint, a5 as createAuthMiddleware, a4 as optionsMiddleware } from './auth-
|
|
1
|
+
export { A as AnonymousOptions, J as JwtOptions, O as OrganizationOptions, b as Passkey, P as PasskeyOptions, S as SessionWithImpersonatedBy, e as UserWithAnonymous, U as UserWithPhoneNumber, h as UserWithRole, i as admin, f as anonymous, n as emailOTP, j as genericOAuth, g as getPasskeyActions, k as jwt, m as magicLink, l as multiSession, o as organization, p as passkey, c as passkeyClient, d as phoneNumber, t as twoFactor, a as twoFactorClient, u as username } from './index-DVnRCNUh.js';
|
|
2
|
+
import { H as HookEndpointContext, B as BetterAuthOptions, I as InferUser, g as InferSession } from './auth-CD4Xpr3o.js';
|
|
3
|
+
export { a7 as AuthEndpoint, a8 as AuthMiddleware, k as BetterAuthPlugin, l as InferOptionSchema, m as InferPluginErrorCodes, P as PluginSchema, a6 as createAuthEndpoint, a5 as createAuthMiddleware, a4 as optionsMiddleware } from './auth-CD4Xpr3o.js';
|
|
4
4
|
export { H as HIDE_METADATA } from './hide-metadata-DEHJp1rk.js';
|
|
5
5
|
import * as better_call from 'better-call';
|
|
6
6
|
import { APIError, OpenAPIParameter, OpenAPISchemaType } from 'better-call';
|
package/dist/react.d.cts
CHANGED
|
@@ -6,7 +6,7 @@ import { BetterFetchResponse, BetterFetchError } from '@better-fetch/fetch';
|
|
|
6
6
|
import { ClientOptions, InferClientAPI, InferActions, InferErrorCodes, BetterAuthClientPlugin, IsSignal } from './types.cjs';
|
|
7
7
|
import { U as UnionToIntersection, P as PrettifyDeep } from './helper-CbDsvI53.cjs';
|
|
8
8
|
import { DependencyList } from 'react';
|
|
9
|
-
import { a as BASE_ERROR_CODES } from './auth-
|
|
9
|
+
import { a as BASE_ERROR_CODES } from './auth-w3OQlGCL.cjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import './index-DPqpIwKX.cjs';
|
package/dist/react.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { BetterFetchResponse, BetterFetchError } from '@better-fetch/fetch';
|
|
|
6
6
|
import { ClientOptions, InferClientAPI, InferActions, InferErrorCodes, BetterAuthClientPlugin, IsSignal } from './types.js';
|
|
7
7
|
import { U as UnionToIntersection, P as PrettifyDeep } from './helper-CbDsvI53.js';
|
|
8
8
|
import { DependencyList } from 'react';
|
|
9
|
-
import { a as BASE_ERROR_CODES } from './auth-
|
|
9
|
+
import { a as BASE_ERROR_CODES } from './auth-CD4Xpr3o.js';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import './index-DF4xhhKM.js';
|
package/dist/solid-start.d.cts
CHANGED
package/dist/solid-start.d.ts
CHANGED
package/dist/solid.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ import { BetterFetchResponse, BetterFetchError } from '@better-fetch/fetch';
|
|
|
4
4
|
import { ClientOptions, InferClientAPI, InferActions, InferErrorCodes, BetterAuthClientPlugin, IsSignal } from './types.cjs';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
6
|
import { U as UnionToIntersection, P as PrettifyDeep } from './helper-CbDsvI53.cjs';
|
|
7
|
-
import { a as BASE_ERROR_CODES } from './auth-
|
|
7
|
+
import { a as BASE_ERROR_CODES } from './auth-w3OQlGCL.cjs';
|
|
8
8
|
import 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'kysely';
|
package/dist/solid.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { BetterFetchResponse, BetterFetchError } from '@better-fetch/fetch';
|
|
|
4
4
|
import { ClientOptions, InferClientAPI, InferActions, InferErrorCodes, BetterAuthClientPlugin, IsSignal } from './types.js';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
6
|
import { U as UnionToIntersection, P as PrettifyDeep } from './helper-CbDsvI53.js';
|
|
7
|
-
import { a as BASE_ERROR_CODES } from './auth-
|
|
7
|
+
import { a as BASE_ERROR_CODES } from './auth-CD4Xpr3o.js';
|
|
8
8
|
import 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'kysely';
|
package/dist/svelte-kit.d.cts
CHANGED
package/dist/svelte-kit.d.ts
CHANGED
package/dist/svelte.d.cts
CHANGED
|
@@ -5,7 +5,7 @@ import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
|
5
5
|
import { BetterFetchResponse, BetterFetchError } from '@better-fetch/fetch';
|
|
6
6
|
import { ClientOptions, InferClientAPI, InferActions, InferErrorCodes, BetterAuthClientPlugin, IsSignal } from './types.cjs';
|
|
7
7
|
import { U as UnionToIntersection, P as PrettifyDeep } from './helper-CbDsvI53.cjs';
|
|
8
|
-
import { a as BASE_ERROR_CODES } from './auth-
|
|
8
|
+
import { a as BASE_ERROR_CODES } from './auth-w3OQlGCL.cjs';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'kysely';
|
|
11
11
|
import './index-DPqpIwKX.cjs';
|
package/dist/svelte.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
|
5
5
|
import { BetterFetchResponse, BetterFetchError } from '@better-fetch/fetch';
|
|
6
6
|
import { ClientOptions, InferClientAPI, InferActions, InferErrorCodes, BetterAuthClientPlugin, IsSignal } from './types.js';
|
|
7
7
|
import { U as UnionToIntersection, P as PrettifyDeep } from './helper-CbDsvI53.js';
|
|
8
|
-
import { a as BASE_ERROR_CODES } from './auth-
|
|
8
|
+
import { a as BASE_ERROR_CODES } from './auth-CD4Xpr3o.js';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'kysely';
|
|
11
11
|
import './index-DF4xhhKM.js';
|
package/dist/types.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as BetterAuthPlugin, A as Auth, S as Session, U as User, _ as InferFieldsInputClient, Y as InferFieldsOutput } from './auth-
|
|
2
|
-
export { n as Adapter, o as AdapterInstance, e as AdditionalSessionFieldsInput, f as AdditionalSessionFieldsOutput, c as AdditionalUserFieldsInput, d as AdditionalUserFieldsOutput, j as AuthContext, B as BetterAuthOptions, G as GenericEndpointContext, H as HookEndpointContext, l as InferOptionSchema, m as InferPluginErrorCodes, h as InferPluginTypes, g as InferSession, I as InferUser, M as Models, P as PluginSchema, R as RateLimit, p as SecondaryStorage, W as Where, i as init } from './auth-
|
|
1
|
+
import { k as BetterAuthPlugin, A as Auth, S as Session, U as User, _ as InferFieldsInputClient, Y as InferFieldsOutput } from './auth-w3OQlGCL.cjs';
|
|
2
|
+
export { n as Adapter, o as AdapterInstance, e as AdditionalSessionFieldsInput, f as AdditionalSessionFieldsOutput, c as AdditionalUserFieldsInput, d as AdditionalUserFieldsOutput, j as AuthContext, B as BetterAuthOptions, G as GenericEndpointContext, H as HookEndpointContext, l as InferOptionSchema, m as InferPluginErrorCodes, h as InferPluginTypes, g as InferSession, I as InferUser, M as Models, P as PluginSchema, R as RateLimit, p as SecondaryStorage, W as Where, i as init } from './auth-w3OQlGCL.cjs';
|
|
3
3
|
import { U as UnionToIntersection, H as HasRequiredKeys, b as Prettify, S as StripEmptyObjects, L as LiteralString } from './helper-CbDsvI53.cjs';
|
|
4
4
|
export { D as DeepPartial, a as LiteralNumber, c as LiteralUnion, O as OmitId, P as PrettifyDeep, R as RequiredKeysOf, W as WithoutEmpty } from './helper-CbDsvI53.cjs';
|
|
5
5
|
import { BetterFetchOption, BetterFetchResponse, BetterFetch, BetterFetchPlugin } from '@better-fetch/fetch';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as BetterAuthPlugin, A as Auth, S as Session, U as User, _ as InferFieldsInputClient, Y as InferFieldsOutput } from './auth-
|
|
2
|
-
export { n as Adapter, o as AdapterInstance, e as AdditionalSessionFieldsInput, f as AdditionalSessionFieldsOutput, c as AdditionalUserFieldsInput, d as AdditionalUserFieldsOutput, j as AuthContext, B as BetterAuthOptions, G as GenericEndpointContext, H as HookEndpointContext, l as InferOptionSchema, m as InferPluginErrorCodes, h as InferPluginTypes, g as InferSession, I as InferUser, M as Models, P as PluginSchema, R as RateLimit, p as SecondaryStorage, W as Where, i as init } from './auth-
|
|
1
|
+
import { k as BetterAuthPlugin, A as Auth, S as Session, U as User, _ as InferFieldsInputClient, Y as InferFieldsOutput } from './auth-CD4Xpr3o.js';
|
|
2
|
+
export { n as Adapter, o as AdapterInstance, e as AdditionalSessionFieldsInput, f as AdditionalSessionFieldsOutput, c as AdditionalUserFieldsInput, d as AdditionalUserFieldsOutput, j as AuthContext, B as BetterAuthOptions, G as GenericEndpointContext, H as HookEndpointContext, l as InferOptionSchema, m as InferPluginErrorCodes, h as InferPluginTypes, g as InferSession, I as InferUser, M as Models, P as PluginSchema, R as RateLimit, p as SecondaryStorage, W as Where, i as init } from './auth-CD4Xpr3o.js';
|
|
3
3
|
import { U as UnionToIntersection, H as HasRequiredKeys, b as Prettify, S as StripEmptyObjects, L as LiteralString } from './helper-CbDsvI53.js';
|
|
4
4
|
export { D as DeepPartial, a as LiteralNumber, c as LiteralUnion, O as OmitId, P as PrettifyDeep, R as RequiredKeysOf, W as WithoutEmpty } from './helper-CbDsvI53.js';
|
|
5
5
|
import { BetterFetchOption, BetterFetchResponse, BetterFetch, BetterFetchPlugin } from '@better-fetch/fetch';
|
package/dist/vue.d.cts
CHANGED
|
@@ -5,7 +5,7 @@ import { BetterFetchResponse, BetterFetchError } from '@better-fetch/fetch';
|
|
|
5
5
|
import { DeepReadonly, Ref } from 'vue';
|
|
6
6
|
import { ClientOptions, InferClientAPI, InferActions, InferErrorCodes, BetterAuthClientPlugin, IsSignal } from './types.cjs';
|
|
7
7
|
import { U as UnionToIntersection, P as PrettifyDeep } from './helper-CbDsvI53.cjs';
|
|
8
|
-
import { a as BASE_ERROR_CODES } from './auth-
|
|
8
|
+
import { a as BASE_ERROR_CODES } from './auth-w3OQlGCL.cjs';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'kysely';
|
|
11
11
|
import './index-DPqpIwKX.cjs';
|
package/dist/vue.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { BetterFetchResponse, BetterFetchError } from '@better-fetch/fetch';
|
|
|
5
5
|
import { DeepReadonly, Ref } from 'vue';
|
|
6
6
|
import { ClientOptions, InferClientAPI, InferActions, InferErrorCodes, BetterAuthClientPlugin, IsSignal } from './types.js';
|
|
7
7
|
import { U as UnionToIntersection, P as PrettifyDeep } from './helper-CbDsvI53.js';
|
|
8
|
-
import { a as BASE_ERROR_CODES } from './auth-
|
|
8
|
+
import { a as BASE_ERROR_CODES } from './auth-CD4Xpr3o.js';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'kysely';
|
|
11
11
|
import './index-DF4xhhKM.js';
|