better-auth 0.4.9-beta.7 → 0.4.9-beta.8
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/client/plugins.d.ts +3 -3
- package/dist/client.d.ts +1 -1
- package/dist/{index-e3_mbU9X.d.ts → index-D9nYnMiJ.d.ts} +1 -1
- package/dist/{index-DLbRYrL5.d.ts → index-DyhG32S0.d.ts} +24 -24
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -21
- package/dist/next-js.d.ts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/plugins.d.ts +3 -3
- 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 +2 -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-DyhG32S0.js';
|
|
2
2
|
import './helper-DPDj8Nix.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
export { APIError } from 'better-call';
|
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, k as Organization, M as Member, I as Invitation, u as username, m as magicLink, d as phoneNumber, e as anonymous, i as admin, j as genericOAuth } from '../index-
|
|
6
|
-
export { g as getPasskeyActions, c as passkeyClient, a as twoFactorClient } from '../index-
|
|
5
|
+
import { o as organization, k as Organization, M as Member, I as Invitation, u as username, m as magicLink, d as phoneNumber, e as anonymous, i as admin, j as genericOAuth } from '../index-D9nYnMiJ.js';
|
|
6
|
+
export { g as getPasskeyActions, c as passkeyClient, a as twoFactorClient } from '../index-D9nYnMiJ.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-DyhG32S0.js';
|
|
9
9
|
import '../types-IzAbV4nB.js';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import 'better-call';
|
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-DyhG32S0.js';
|
|
10
10
|
import 'kysely';
|
|
11
11
|
import './types-IzAbV4nB.js';
|
|
12
12
|
import 'better-call';
|
|
@@ -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, g as AuthContext } from './index-
|
|
8
|
+
import { H as HookEndpointContext, g as AuthContext } from './index-DyhG32S0.js';
|
|
9
9
|
import * as nanostores from 'nanostores';
|
|
10
10
|
import { atom } from 'nanostores';
|
|
11
11
|
import * as _simplewebauthn_types from '@simplewebauthn/types';
|
|
@@ -1120,12 +1120,12 @@ declare const signInOAuth: {
|
|
|
1120
1120
|
/**
|
|
1121
1121
|
* OAuth2 provider to use`
|
|
1122
1122
|
*/
|
|
1123
|
-
provider: z.ZodEnum<["github", ...("
|
|
1123
|
+
provider: z.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
1124
1124
|
}, "strip", z.ZodTypeAny, {
|
|
1125
|
-
provider: "
|
|
1125
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
1126
1126
|
callbackURL?: string | undefined;
|
|
1127
1127
|
}, {
|
|
1128
|
-
provider: "
|
|
1128
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
1129
1129
|
callbackURL?: string | undefined;
|
|
1130
1130
|
}>;
|
|
1131
1131
|
use: better_call.Endpoint<better_call.Handler<string, better_call.EndpointOptions, void>, better_call.EndpointOptions>[];
|
|
@@ -1160,12 +1160,12 @@ declare const signInOAuth: {
|
|
|
1160
1160
|
/**
|
|
1161
1161
|
* OAuth2 provider to use`
|
|
1162
1162
|
*/
|
|
1163
|
-
provider: z.ZodEnum<["github", ...("
|
|
1163
|
+
provider: z.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
1164
1164
|
}, "strip", z.ZodTypeAny, {
|
|
1165
|
-
provider: "
|
|
1165
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
1166
1166
|
callbackURL?: string | undefined;
|
|
1167
1167
|
}, {
|
|
1168
|
-
provider: "
|
|
1168
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
1169
1169
|
callbackURL?: string | undefined;
|
|
1170
1170
|
}>;
|
|
1171
1171
|
use: better_call.Endpoint<better_call.Handler<string, better_call.EndpointOptions, void>, better_call.EndpointOptions>[];
|
|
@@ -2361,12 +2361,12 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
2361
2361
|
}>>;
|
|
2362
2362
|
body: zod.ZodObject<{
|
|
2363
2363
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
2364
|
-
provider: zod.ZodEnum<["github", ...("
|
|
2364
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
2365
2365
|
}, "strip", zod.ZodTypeAny, {
|
|
2366
|
-
provider: "
|
|
2366
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
2367
2367
|
callbackURL?: string | undefined;
|
|
2368
2368
|
}, {
|
|
2369
|
-
provider: "
|
|
2369
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
2370
2370
|
callbackURL?: string | undefined;
|
|
2371
2371
|
}>;
|
|
2372
2372
|
use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, void>, better_call.EndpointOptions>[];
|
|
@@ -2391,12 +2391,12 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
2391
2391
|
}>>;
|
|
2392
2392
|
body: zod.ZodObject<{
|
|
2393
2393
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
2394
|
-
provider: zod.ZodEnum<["github", ...("
|
|
2394
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
2395
2395
|
}, "strip", zod.ZodTypeAny, {
|
|
2396
|
-
provider: "
|
|
2396
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
2397
2397
|
callbackURL?: string | undefined;
|
|
2398
2398
|
}, {
|
|
2399
|
-
provider: "
|
|
2399
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
2400
2400
|
callbackURL?: string | undefined;
|
|
2401
2401
|
}>;
|
|
2402
2402
|
use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, void>, better_call.EndpointOptions>[];
|
|
@@ -3450,12 +3450,12 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
3450
3450
|
}>>;
|
|
3451
3451
|
body: zod.ZodObject<{
|
|
3452
3452
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
3453
|
-
provider: zod.ZodEnum<["github", ...("
|
|
3453
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
3454
3454
|
}, "strip", zod.ZodTypeAny, {
|
|
3455
|
-
provider: "
|
|
3455
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
3456
3456
|
callbackURL?: string | undefined;
|
|
3457
3457
|
}, {
|
|
3458
|
-
provider: "
|
|
3458
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
3459
3459
|
callbackURL?: string | undefined;
|
|
3460
3460
|
}>;
|
|
3461
3461
|
use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, void>, better_call.EndpointOptions>[];
|
|
@@ -3480,12 +3480,12 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
3480
3480
|
}>>;
|
|
3481
3481
|
body: zod.ZodObject<{
|
|
3482
3482
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
3483
|
-
provider: zod.ZodEnum<["github", ...("
|
|
3483
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
3484
3484
|
}, "strip", zod.ZodTypeAny, {
|
|
3485
|
-
provider: "
|
|
3485
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
3486
3486
|
callbackURL?: string | undefined;
|
|
3487
3487
|
}, {
|
|
3488
|
-
provider: "
|
|
3488
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
3489
3489
|
callbackURL?: string | undefined;
|
|
3490
3490
|
}>;
|
|
3491
3491
|
use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, void>, better_call.EndpointOptions>[];
|
|
@@ -4541,12 +4541,12 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
4541
4541
|
}>>;
|
|
4542
4542
|
body: zod.ZodObject<{
|
|
4543
4543
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
4544
|
-
provider: zod.ZodEnum<["github", ...("
|
|
4544
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
4545
4545
|
}, "strip", zod.ZodTypeAny, {
|
|
4546
|
-
provider: "
|
|
4546
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
4547
4547
|
callbackURL?: string | undefined;
|
|
4548
4548
|
}, {
|
|
4549
|
-
provider: "
|
|
4549
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
4550
4550
|
callbackURL?: string | undefined;
|
|
4551
4551
|
}>;
|
|
4552
4552
|
use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, void>, better_call.EndpointOptions>[];
|
|
@@ -4571,12 +4571,12 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
4571
4571
|
}>>;
|
|
4572
4572
|
body: zod.ZodObject<{
|
|
4573
4573
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
4574
|
-
provider: zod.ZodEnum<["github", ...("
|
|
4574
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
4575
4575
|
}, "strip", zod.ZodTypeAny, {
|
|
4576
|
-
provider: "
|
|
4576
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
4577
4577
|
callbackURL?: string | undefined;
|
|
4578
4578
|
}, {
|
|
4579
|
-
provider: "
|
|
4579
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
4580
4580
|
callbackURL?: string | undefined;
|
|
4581
4581
|
}>;
|
|
4582
4582
|
use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, void>, better_call.EndpointOptions>[];
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -3578,7 +3578,6 @@ function convertFromDB(fields, values) {
|
|
|
3578
3578
|
}
|
|
3579
3579
|
|
|
3580
3580
|
// src/crypto/password.ts
|
|
3581
|
-
import { scrypt } from "node:crypto";
|
|
3582
3581
|
import { decodeHex, encodeHex } from "oslo/encoding";
|
|
3583
3582
|
|
|
3584
3583
|
// src/crypto/buffer.ts
|
|
@@ -3596,6 +3595,7 @@ function constantTimeEqual(a, b) {
|
|
|
3596
3595
|
}
|
|
3597
3596
|
|
|
3598
3597
|
// src/crypto/password.ts
|
|
3598
|
+
import { scryptAsync } from "@noble/hashes/scrypt";
|
|
3599
3599
|
var config = {
|
|
3600
3600
|
N: 16384,
|
|
3601
3601
|
r: 16,
|
|
@@ -3603,23 +3603,12 @@ var config = {
|
|
|
3603
3603
|
dkLen: 64
|
|
3604
3604
|
};
|
|
3605
3605
|
async function generateKey(password, salt) {
|
|
3606
|
-
return await
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
N: config.N,
|
|
3613
|
-
p: config.p,
|
|
3614
|
-
r: config.r,
|
|
3615
|
-
// errors when 128 * N * r > `maxmem` (approximately)
|
|
3616
|
-
maxmem: 128 * config.N * config.r * 2
|
|
3617
|
-
},
|
|
3618
|
-
(err, buff) => {
|
|
3619
|
-
if (err) return reject(err);
|
|
3620
|
-
return resolve(buff);
|
|
3621
|
-
}
|
|
3622
|
-
);
|
|
3606
|
+
return await scryptAsync(password.normalize("NFKC"), salt, {
|
|
3607
|
+
N: config.N,
|
|
3608
|
+
p: config.p,
|
|
3609
|
+
r: config.r,
|
|
3610
|
+
dkLen: config.dkLen,
|
|
3611
|
+
maxmem: 128 * config.N * config.r * 2
|
|
3623
3612
|
});
|
|
3624
3613
|
}
|
|
3625
3614
|
var hashPassword = async (password) => {
|
|
@@ -4149,9 +4138,6 @@ var init = async (options) => {
|
|
|
4149
4138
|
"You are using the default secret. Please set `BETTER_AUTH_SECRET` or `AUTH_SECRET` in your environment variables or pass `secret` in your auth config."
|
|
4150
4139
|
);
|
|
4151
4140
|
}
|
|
4152
|
-
logger.warn(
|
|
4153
|
-
"You are using the default secret. This is not recommended. Please set `BETTER_AUTH_SECRET` or `AUTH_SECRET` in your environment variables or pass `secret` in your auth config."
|
|
4154
|
-
);
|
|
4155
4141
|
}
|
|
4156
4142
|
options = {
|
|
4157
4143
|
...options,
|
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, f as UserWithRole, i as admin, h as adminMiddleware, e as anonymous, j as genericOAuth, 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, f as UserWithRole, i as admin, h as adminMiddleware, e as anonymous, j as genericOAuth, 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-D9nYnMiJ.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-DyhG32S0.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-DyhG32S0.js';
|
|
5
5
|
import './types-IzAbV4nB.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import './helper-DPDj8Nix.js';
|
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-DyhG32S0.js';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import './types-IzAbV4nB.js';
|
|
9
9
|
import 'better-call';
|
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-DyhG32S0.js';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import './types-IzAbV4nB.js';
|
|
9
9
|
import 'better-call';
|
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-DyhG32S0.js';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import './types-IzAbV4nB.js';
|
|
9
9
|
import 'better-call';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as BetterAuthPlugin, a as Auth, I as InferFieldsInputClient, h as InferFieldsOutput } from './index-
|
|
2
|
-
export { A as Adapter, k as AdditionalSessionFieldsInput, l as AdditionalSessionFieldsOutput, i as AdditionalUserFieldsInput, j as AdditionalUserFieldsOutput, g as AuthContext, B as BetterAuthOptions, G as GenericEndpointContext, H as HookEndpointContext, p as InferPluginTypes, n as InferSession, m as InferUser, P as PluginSchema, R as RateLimit, S as SecondaryStorage, W as Where, q as init } from './index-
|
|
1
|
+
import { b as BetterAuthPlugin, a as Auth, I as InferFieldsInputClient, h as InferFieldsOutput } from './index-DyhG32S0.js';
|
|
2
|
+
export { A as Adapter, k as AdditionalSessionFieldsInput, l as AdditionalSessionFieldsOutput, i as AdditionalUserFieldsInput, j as AdditionalUserFieldsOutput, g as AuthContext, B as BetterAuthOptions, G as GenericEndpointContext, H as HookEndpointContext, p as InferPluginTypes, n as InferSession, m as InferUser, P as PluginSchema, R as RateLimit, S as SecondaryStorage, W as Where, q as init } from './index-DyhG32S0.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 './types-IzAbV4nB.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-DyhG32S0.js';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import './types-IzAbV4nB.js';
|
|
9
9
|
import 'better-call';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "better-auth",
|
|
3
|
-
"version": "0.4.9-beta.
|
|
3
|
+
"version": "0.4.9-beta.8",
|
|
4
4
|
"description": "The most comprehensive authentication library for TypeScript.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
"@nanostores/solid": "^0.4.2",
|
|
81
81
|
"@nanostores/vue": "^0.10.0",
|
|
82
82
|
"@noble/ciphers": "^0.6.0",
|
|
83
|
+
"@noble/hashes": "^1.5.0",
|
|
83
84
|
"@simplewebauthn/browser": "^10.0.0",
|
|
84
85
|
"@simplewebauthn/server": "^10.0.1",
|
|
85
86
|
"better-call": "0.2.6",
|