better-auth 0.3.5-beta.1 → 0.3.5-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/drizzle.d.ts +1 -1
- package/dist/adapters/mongodb.d.ts +1 -1
- package/dist/adapters/prisma.d.ts +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +4 -8
- package/dist/client/plugins.d.ts +3 -3
- package/dist/client.d.ts +1 -1
- package/dist/{index-DH24EVRd.d.ts → index-BYsLBcLO.d.ts} +2 -2
- package/dist/{index-UhAAX2O0.d.ts → index-DUQYmBZY.d.ts} +6 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.js +11 -10
- package/dist/next-js.d.ts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/plugins.d.ts +3 -3
- package/dist/plugins.js +7 -12
- package/dist/react.d.ts +1 -1
- package/dist/solid-start.d.ts +1 -1
- package/dist/solid.d.ts +1 -1
- package/dist/svelte-kit.d.ts +1 -1
- package/dist/svelte.d.ts +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/vue.d.ts +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { e as AuthEndpoint, f as AuthMiddleware, v as callbackOAuth, T as changePassword, d as createAuthEndpoint, c as createAuthMiddleware, M as createEmailVerificationToken, $ as csrfMiddleware, V as deleteUser, Y as error, J as forgetPassword, K as forgetPasswordCallback, X as getCSRFToken, r as getEndpoints, w as getSession, x as getSessionFromCtx, z as listSessions, Z as ok, o as optionsMiddleware, L as resetPassword, C as revokeSession, D as revokeSessions, s as router, N as sendVerificationEmail, y as sessionMiddleware, U as setPassword, u as signInEmail, t as signInOAuth, E as signOut, _ as signUpEmail, Q as updateUser, O as verifyEmail } from './index-
|
|
1
|
+
export { e as AuthEndpoint, f as AuthMiddleware, v as callbackOAuth, T as changePassword, d as createAuthEndpoint, c as createAuthMiddleware, M as createEmailVerificationToken, $ as csrfMiddleware, V as deleteUser, Y as error, J as forgetPassword, K as forgetPasswordCallback, X as getCSRFToken, r as getEndpoints, w as getSession, x as getSessionFromCtx, z as listSessions, Z as ok, o as optionsMiddleware, L as resetPassword, C as revokeSession, D as revokeSessions, s as router, N as sendVerificationEmail, y as sessionMiddleware, U as setPassword, u as signInEmail, t as signInOAuth, E as signOut, _ as signUpEmail, Q as updateUser, O as verifyEmail } from './index-DUQYmBZY.js';
|
|
2
2
|
import './helper-DPDj8Nix.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
export { APIError } from 'better-call';
|
package/dist/api.js
CHANGED
|
@@ -1273,10 +1273,10 @@ function generateRandomInteger(max) {
|
|
|
1273
1273
|
}
|
|
1274
1274
|
return result;
|
|
1275
1275
|
}
|
|
1276
|
-
function generateRandomString(length,
|
|
1276
|
+
function generateRandomString(length, alphabet3) {
|
|
1277
1277
|
let result = "";
|
|
1278
1278
|
for (let i = 0; i < length; i++) {
|
|
1279
|
-
result +=
|
|
1279
|
+
result += alphabet3[generateRandomInteger(alphabet3.length)];
|
|
1280
1280
|
}
|
|
1281
1281
|
return result;
|
|
1282
1282
|
}
|
|
@@ -1973,7 +1973,6 @@ var setPassword = createAuthEndpoint(
|
|
|
1973
1973
|
const passwordHash = await ctx.context.password.hash(newPassword);
|
|
1974
1974
|
if (!account) {
|
|
1975
1975
|
await ctx.context.internalAdapter.linkAccount({
|
|
1976
|
-
id: generateRandomString(32, alphabet("a-z", "0-9", "A-Z")),
|
|
1977
1976
|
userId: session.user.id,
|
|
1978
1977
|
providerId: "credential",
|
|
1979
1978
|
accountId: session.user.id,
|
|
@@ -2219,14 +2218,11 @@ var signUpEmail = () => createAuthEndpoint(
|
|
|
2219
2218
|
additionalFields
|
|
2220
2219
|
);
|
|
2221
2220
|
const createdUser = await ctx.context.internalAdapter.createUser({
|
|
2222
|
-
id: generateRandomString(32, alphabet("a-z", "0-9", "A-Z")),
|
|
2223
2221
|
email: email.toLowerCase(),
|
|
2224
2222
|
name,
|
|
2225
2223
|
image,
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
updatedAt: /* @__PURE__ */ new Date(),
|
|
2229
|
-
...additionalData
|
|
2224
|
+
...additionalData,
|
|
2225
|
+
emailVerified: false
|
|
2230
2226
|
});
|
|
2231
2227
|
if (!createdUser) {
|
|
2232
2228
|
throw new APIError9("BAD_REQUEST", {
|
package/dist/client/plugins.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import * as nanostores from 'nanostores';
|
|
|
2
2
|
import { A as AccessControl, S as StatementsPrimitive, R as Role } from '../statement-CfnyN34h.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, f as Organization, M as Member, I as Invitation, u as username, m as magicLink, d as phoneNumber, e as anonymous } from '../index-
|
|
6
|
-
export { g as getPasskeyActions, c as passkeyClient, a as twoFactorClient } from '../index-
|
|
5
|
+
import { o as organization, f as Organization, M as Member, I as Invitation, u as username, m as magicLink, d as phoneNumber, e as anonymous } from '../index-BYsLBcLO.js';
|
|
6
|
+
export { g as getPasskeyActions, c as passkeyClient, a as twoFactorClient } from '../index-BYsLBcLO.js';
|
|
7
7
|
import { P as Prettify } from '../helper-DPDj8Nix.js';
|
|
8
|
-
import { F as FieldAttribute, B as BetterAuthOptions, b as BetterAuthPlugin } from '../index-
|
|
8
|
+
import { F as FieldAttribute, B as BetterAuthOptions, b as BetterAuthPlugin } from '../index-DUQYmBZY.js';
|
|
9
9
|
import '../index-QaO4zgiz.js';
|
|
10
10
|
import 'arctic';
|
|
11
11
|
import 'zod';
|
package/dist/client.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { BetterFetch, BetterFetchError, BetterFetchOption } from '@better-fetch/
|
|
|
6
6
|
import { U as UnionToIntersection, P as Prettify, S as StripEmptyObjects } from './helper-DPDj8Nix.js';
|
|
7
7
|
import { ClientOptions, InferClientAPI, InferActions, InferAdditionalFromClient, InferSessionFromClient, InferUserFromClient, BetterAuthClientPlugin, IsSignal } from './types.js';
|
|
8
8
|
export { AtomListener, InferPluginsFromClient } from './types.js';
|
|
9
|
-
import './index-
|
|
9
|
+
import './index-DUQYmBZY.js';
|
|
10
10
|
import 'kysely';
|
|
11
11
|
import './index-QaO4zgiz.js';
|
|
12
12
|
import 'arctic';
|
|
@@ -5,7 +5,7 @@ import { P as Prettify } from './helper-DPDj8Nix.js';
|
|
|
5
5
|
import { A as AccessControl, R as Role, S as StatementsPrimitive, g as defaultRoles } from './statement-CfnyN34h.js';
|
|
6
6
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
7
7
|
import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
8
|
-
import { H as HookEndpointContext } from './index-
|
|
8
|
+
import { H as HookEndpointContext } from './index-DUQYmBZY.js';
|
|
9
9
|
import * as nanostores from 'nanostores';
|
|
10
10
|
import { atom } from 'nanostores';
|
|
11
11
|
import * as _simplewebauthn_types from '@simplewebauthn/types';
|
|
@@ -4636,7 +4636,7 @@ declare const anonymous: (options?: AnonymousOptions) => {
|
|
|
4636
4636
|
name: string;
|
|
4637
4637
|
image?: string | undefined;
|
|
4638
4638
|
id: string;
|
|
4639
|
-
emailVerified
|
|
4639
|
+
emailVerified?: boolean | undefined;
|
|
4640
4640
|
createdAt: Date;
|
|
4641
4641
|
updatedAt: Date;
|
|
4642
4642
|
};
|
|
@@ -1181,7 +1181,7 @@ declare const createInternalAdapter: (adapter: Adapter, ctx: {
|
|
|
1181
1181
|
name: string;
|
|
1182
1182
|
image?: string | undefined;
|
|
1183
1183
|
id: string;
|
|
1184
|
-
emailVerified
|
|
1184
|
+
emailVerified?: boolean | undefined;
|
|
1185
1185
|
createdAt: Date;
|
|
1186
1186
|
updatedAt: Date;
|
|
1187
1187
|
} | null>;
|
|
@@ -1251,7 +1251,7 @@ declare const createInternalAdapter: (adapter: Adapter, ctx: {
|
|
|
1251
1251
|
updatedAt: Date;
|
|
1252
1252
|
image?: string | undefined;
|
|
1253
1253
|
} | null>;
|
|
1254
|
-
linkAccount: (account: Account) => Promise<{
|
|
1254
|
+
linkAccount: (account: Omit<Account, "id"> & Record<string, any>) => Promise<{
|
|
1255
1255
|
id: string;
|
|
1256
1256
|
providerId: string;
|
|
1257
1257
|
accountId: string;
|
|
@@ -2517,7 +2517,7 @@ declare const signUpEmail: <O extends BetterAuthOptions>() => {
|
|
|
2517
2517
|
name: string;
|
|
2518
2518
|
image?: string | undefined;
|
|
2519
2519
|
id: string;
|
|
2520
|
-
emailVerified
|
|
2520
|
+
emailVerified?: boolean | undefined;
|
|
2521
2521
|
createdAt: Date;
|
|
2522
2522
|
updatedAt: Date;
|
|
2523
2523
|
};
|
|
@@ -2884,7 +2884,7 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
2884
2884
|
name: string;
|
|
2885
2885
|
image?: string | undefined;
|
|
2886
2886
|
id: string;
|
|
2887
|
-
emailVerified
|
|
2887
|
+
emailVerified?: boolean | undefined;
|
|
2888
2888
|
createdAt: Date;
|
|
2889
2889
|
updatedAt: Date;
|
|
2890
2890
|
};
|
|
@@ -3997,7 +3997,7 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
3997
3997
|
name: string;
|
|
3998
3998
|
image?: string | undefined;
|
|
3999
3999
|
id: string;
|
|
4000
|
-
emailVerified
|
|
4000
|
+
emailVerified?: boolean | undefined;
|
|
4001
4001
|
createdAt: Date;
|
|
4002
4002
|
updatedAt: Date;
|
|
4003
4003
|
};
|
|
@@ -5112,7 +5112,7 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
5112
5112
|
name: string;
|
|
5113
5113
|
image?: string | undefined;
|
|
5114
5114
|
id: string;
|
|
5115
|
-
emailVerified
|
|
5115
|
+
emailVerified?: boolean | undefined;
|
|
5116
5116
|
createdAt: Date;
|
|
5117
5117
|
updatedAt: Date;
|
|
5118
5118
|
};
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1363,10 +1363,10 @@ function generateRandomInteger(max) {
|
|
|
1363
1363
|
}
|
|
1364
1364
|
return result;
|
|
1365
1365
|
}
|
|
1366
|
-
function generateRandomString(length,
|
|
1366
|
+
function generateRandomString(length, alphabet3) {
|
|
1367
1367
|
let result = "";
|
|
1368
1368
|
for (let i = 0; i < length; i++) {
|
|
1369
|
-
result +=
|
|
1369
|
+
result += alphabet3[generateRandomInteger(alphabet3.length)];
|
|
1370
1370
|
}
|
|
1371
1371
|
return result;
|
|
1372
1372
|
}
|
|
@@ -2063,7 +2063,6 @@ var setPassword = createAuthEndpoint(
|
|
|
2063
2063
|
const passwordHash = await ctx.context.password.hash(newPassword);
|
|
2064
2064
|
if (!account) {
|
|
2065
2065
|
await ctx.context.internalAdapter.linkAccount({
|
|
2066
|
-
id: generateRandomString(32, alphabet("a-z", "0-9", "A-Z")),
|
|
2067
2066
|
userId: session.user.id,
|
|
2068
2067
|
providerId: "credential",
|
|
2069
2068
|
accountId: session.user.id,
|
|
@@ -2309,14 +2308,11 @@ var signUpEmail = () => createAuthEndpoint(
|
|
|
2309
2308
|
additionalFields
|
|
2310
2309
|
);
|
|
2311
2310
|
const createdUser = await ctx.context.internalAdapter.createUser({
|
|
2312
|
-
id: generateRandomString(32, alphabet("a-z", "0-9", "A-Z")),
|
|
2313
2311
|
email: email.toLowerCase(),
|
|
2314
2312
|
name,
|
|
2315
2313
|
image,
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
updatedAt: /* @__PURE__ */ new Date(),
|
|
2319
|
-
...additionalData
|
|
2314
|
+
...additionalData,
|
|
2315
|
+
emailVerified: false
|
|
2320
2316
|
});
|
|
2321
2317
|
if (!createdUser) {
|
|
2322
2318
|
throw new APIError9("BAD_REQUEST", {
|
|
@@ -3634,7 +3630,6 @@ var createInternalAdapter = (adapter, ctx) => {
|
|
|
3634
3630
|
const createdUser = await createWithHooks(
|
|
3635
3631
|
{
|
|
3636
3632
|
id: generateId(),
|
|
3637
|
-
emailVerified: false,
|
|
3638
3633
|
createdAt: /* @__PURE__ */ new Date(),
|
|
3639
3634
|
updatedAt: /* @__PURE__ */ new Date(),
|
|
3640
3635
|
...user
|
|
@@ -3805,7 +3800,13 @@ var createInternalAdapter = (adapter, ctx) => {
|
|
|
3805
3800
|
return user;
|
|
3806
3801
|
},
|
|
3807
3802
|
linkAccount: async (account) => {
|
|
3808
|
-
const _account = await createWithHooks(
|
|
3803
|
+
const _account = await createWithHooks(
|
|
3804
|
+
{
|
|
3805
|
+
...account,
|
|
3806
|
+
id: generateId()
|
|
3807
|
+
},
|
|
3808
|
+
"account"
|
|
3809
|
+
);
|
|
3809
3810
|
return _account;
|
|
3810
3811
|
},
|
|
3811
3812
|
updateUser: async (userId, data) => {
|
package/dist/next-js.d.ts
CHANGED
package/dist/node.d.ts
CHANGED
package/dist/plugins.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { A as AnonymousOptions, O as OrganizationOptions, b as Passkey, P as PasskeyOptions, U as UserWithPhoneNumber, e as anonymous, g as getPasskeyActions, m as magicLink, o as organization, p as passkey, c as passkeyClient, d as phoneNumber, t as twoFactor, a as twoFactorClient, u as username } from './index-
|
|
1
|
+
export { A as AnonymousOptions, O as OrganizationOptions, b as Passkey, P as PasskeyOptions, U as UserWithPhoneNumber, e as anonymous, g as getPasskeyActions, m as magicLink, o as organization, p as passkey, c as passkeyClient, d as phoneNumber, t as twoFactor, a as twoFactorClient, u as username } from './index-BYsLBcLO.js';
|
|
2
2
|
export { i as ac } from './index-DfAHOgpj.js';
|
|
3
|
-
import { H as HookEndpointContext } from './index-
|
|
4
|
-
export { e as AuthEndpoint, f as AuthMiddleware, b as BetterAuthPlugin, P as PluginSchema, d as createAuthEndpoint, c as createAuthMiddleware, o as optionsMiddleware } from './index-
|
|
3
|
+
import { H as HookEndpointContext } from './index-DUQYmBZY.js';
|
|
4
|
+
export { e as AuthEndpoint, f as AuthMiddleware, b as BetterAuthPlugin, P as PluginSchema, d as createAuthEndpoint, c as createAuthMiddleware, o as optionsMiddleware } from './index-DUQYmBZY.js';
|
|
5
5
|
import './index-QaO4zgiz.js';
|
|
6
6
|
import 'arctic';
|
|
7
7
|
import 'zod';
|
package/dist/plugins.js
CHANGED
|
@@ -1193,10 +1193,10 @@ function generateRandomInteger(max) {
|
|
|
1193
1193
|
}
|
|
1194
1194
|
return result;
|
|
1195
1195
|
}
|
|
1196
|
-
function generateRandomString(length,
|
|
1196
|
+
function generateRandomString(length, alphabet3) {
|
|
1197
1197
|
let result = "";
|
|
1198
1198
|
for (let i = 0; i < length; i++) {
|
|
1199
|
-
result +=
|
|
1199
|
+
result += alphabet3[generateRandomInteger(alphabet3.length)];
|
|
1200
1200
|
}
|
|
1201
1201
|
return result;
|
|
1202
1202
|
}
|
|
@@ -1893,7 +1893,6 @@ var setPassword = createAuthEndpoint(
|
|
|
1893
1893
|
const passwordHash = await ctx.context.password.hash(newPassword);
|
|
1894
1894
|
if (!account) {
|
|
1895
1895
|
await ctx.context.internalAdapter.linkAccount({
|
|
1896
|
-
id: generateRandomString(32, alphabet("a-z", "0-9", "A-Z")),
|
|
1897
1896
|
userId: session.user.id,
|
|
1898
1897
|
providerId: "credential",
|
|
1899
1898
|
accountId: session.user.id,
|
|
@@ -2174,14 +2173,11 @@ var signUpEmail = () => createAuthEndpoint(
|
|
|
2174
2173
|
additionalFields
|
|
2175
2174
|
);
|
|
2176
2175
|
const createdUser = await ctx.context.internalAdapter.createUser({
|
|
2177
|
-
id: generateRandomString(32, alphabet("a-z", "0-9", "A-Z")),
|
|
2178
2176
|
email: email.toLowerCase(),
|
|
2179
2177
|
name,
|
|
2180
2178
|
image,
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
updatedAt: /* @__PURE__ */ new Date(),
|
|
2184
|
-
...additionalData
|
|
2179
|
+
...additionalData,
|
|
2180
|
+
emailVerified: false
|
|
2185
2181
|
});
|
|
2186
2182
|
if (!createdUser) {
|
|
2187
2183
|
throw new APIError8("BAD_REQUEST", {
|
|
@@ -4859,7 +4855,7 @@ var passkey = (options) => {
|
|
|
4859
4855
|
authenticatorAttachment: "platform"
|
|
4860
4856
|
}
|
|
4861
4857
|
});
|
|
4862
|
-
const id =
|
|
4858
|
+
const id = generateId();
|
|
4863
4859
|
await ctx.setSignedCookie(
|
|
4864
4860
|
opts.advanced.webAuthnChallengeCookie,
|
|
4865
4861
|
id,
|
|
@@ -4928,7 +4924,7 @@ var passkey = (options) => {
|
|
|
4928
4924
|
id: session?.user.id || ""
|
|
4929
4925
|
}
|
|
4930
4926
|
};
|
|
4931
|
-
const id =
|
|
4927
|
+
const id = generateId();
|
|
4932
4928
|
await ctx.setSignedCookie(
|
|
4933
4929
|
opts.advanced.webAuthnChallengeCookie,
|
|
4934
4930
|
id,
|
|
@@ -5014,7 +5010,7 @@ var passkey = (options) => {
|
|
|
5014
5010
|
credentialBackedUp
|
|
5015
5011
|
} = registrationInfo;
|
|
5016
5012
|
const pubKey = Buffer.from(credentialPublicKey).toString("base64");
|
|
5017
|
-
const userID =
|
|
5013
|
+
const userID = generateId();
|
|
5018
5014
|
const newPasskey = {
|
|
5019
5015
|
name: ctx.body.name,
|
|
5020
5016
|
userId: userData.id,
|
|
@@ -6035,7 +6031,6 @@ var anonymous = (options) => {
|
|
|
6035
6031
|
}
|
|
6036
6032
|
const hash = await ctx.context.password.hash(password);
|
|
6037
6033
|
const updateUserAccount = await ctx.context.internalAdapter.linkAccount({
|
|
6038
|
-
id: generateRandomString(32, alphabet("a-z", "0-9", "A-Z")),
|
|
6039
6034
|
userId: updatedUser.id,
|
|
6040
6035
|
providerId: "credential",
|
|
6041
6036
|
password: hash,
|
package/dist/react.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
|
3
3
|
import { U as UnionToIntersection, P as Prettify, S as StripEmptyObjects } from './helper-DPDj8Nix.js';
|
|
4
4
|
import { ClientOptions, InferClientAPI, InferActions, InferAdditionalFromClient, BetterAuthClientPlugin, IsSignal } from './types.js';
|
|
5
5
|
import { useStore } from '@nanostores/react';
|
|
6
|
-
import './index-
|
|
6
|
+
import './index-DUQYmBZY.js';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import './index-QaO4zgiz.js';
|
|
9
9
|
import 'arctic';
|
package/dist/solid-start.d.ts
CHANGED
package/dist/solid.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
|
3
3
|
import { U as UnionToIntersection, P as Prettify, S as StripEmptyObjects } from './helper-DPDj8Nix.js';
|
|
4
4
|
import { ClientOptions, InferClientAPI, InferActions, InferAdditionalFromClient, BetterAuthClientPlugin, IsSignal } from './types.js';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
|
-
import './index-
|
|
6
|
+
import './index-DUQYmBZY.js';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import './index-QaO4zgiz.js';
|
|
9
9
|
import 'arctic';
|
package/dist/svelte-kit.d.ts
CHANGED
package/dist/svelte.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as nanostores from 'nanostores';
|
|
|
3
3
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
4
4
|
import { U as UnionToIntersection, P as Prettify, S as StripEmptyObjects } from './helper-DPDj8Nix.js';
|
|
5
5
|
import { ClientOptions, InferClientAPI, InferActions, InferAdditionalFromClient, BetterAuthClientPlugin, IsSignal } from './types.js';
|
|
6
|
-
import './index-
|
|
6
|
+
import './index-DUQYmBZY.js';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import './index-QaO4zgiz.js';
|
|
9
9
|
import 'arctic';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as BetterAuthPlugin, a as Auth, I as InferFieldsInputClient, g as InferFieldsOutput } from './index-
|
|
2
|
-
export { A as Adapter, j as AdditionalSessionFieldsInput, k as AdditionalSessionFieldsOutput, h as AdditionalUserFieldsInput, i as AdditionalUserFieldsOutput, q as AuthContext, B as BetterAuthOptions, G as GenericEndpointContext, H as HookEndpointContext, n as InferPluginTypes, m as InferSession, l as InferUser, P as PluginSchema, R as RateLimit, S as SecondaryStorage, W as Where, p as init } from './index-
|
|
1
|
+
import { b as BetterAuthPlugin, a as Auth, I as InferFieldsInputClient, g as InferFieldsOutput } from './index-DUQYmBZY.js';
|
|
2
|
+
export { A as Adapter, j as AdditionalSessionFieldsInput, k as AdditionalSessionFieldsOutput, h as AdditionalUserFieldsInput, i as AdditionalUserFieldsOutput, q as AuthContext, B as BetterAuthOptions, G as GenericEndpointContext, H as HookEndpointContext, n as InferPluginTypes, m as InferSession, l as InferUser, P as PluginSchema, R as RateLimit, S as SecondaryStorage, W as Where, p as init } from './index-DUQYmBZY.js';
|
|
3
3
|
import { U as UnionToIntersection, H as HasRequiredKeys, P as Prettify, S as StripEmptyObjects, L as LiteralString } from './helper-DPDj8Nix.js';
|
|
4
4
|
export { D as DeepPartial, a as LiteralUnion, R as RequiredKeysOf, W as WithoutEmpty } from './helper-DPDj8Nix.js';
|
|
5
5
|
import { S as Session, U as User } from './index-QaO4zgiz.js';
|
package/dist/vue.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
|
3
3
|
import { U as UnionToIntersection, P as Prettify, S as StripEmptyObjects } from './helper-DPDj8Nix.js';
|
|
4
4
|
import { ClientOptions, InferClientAPI, InferActions, InferAdditionalFromClient, BetterAuthClientPlugin, IsSignal } from './types.js';
|
|
5
5
|
import { Ref, DeepReadonly } from 'vue';
|
|
6
|
-
import './index-
|
|
6
|
+
import './index-DUQYmBZY.js';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import './index-QaO4zgiz.js';
|
|
9
9
|
import 'arctic';
|