better-auth 0.3.5-beta.3 → 0.3.5-beta.4
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-BTx_8-C3.d.ts → index-DUQYmBZY.d.ts} +24 -24
- package/dist/{index-C1eG8iz9.d.ts → index-DrWKVr9E.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- 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 +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 -2
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/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-DrWKVr9E.js';
|
|
6
|
+
export { g as getPasskeyActions, c as passkeyClient, a as twoFactorClient } from '../index-DrWKVr9E.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';
|
|
@@ -1357,17 +1357,17 @@ declare const signInOAuth: {
|
|
|
1357
1357
|
/**
|
|
1358
1358
|
* OAuth2 provider to use`
|
|
1359
1359
|
*/
|
|
1360
|
-
provider: z.ZodEnum<["github", ...("
|
|
1360
|
+
provider: z.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
1361
1361
|
/**
|
|
1362
1362
|
* If this is true the session will only be valid for the current browser session
|
|
1363
1363
|
*/
|
|
1364
1364
|
dontRememberMe: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1365
1365
|
}, "strip", z.ZodTypeAny, {
|
|
1366
|
-
provider: "
|
|
1366
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
1367
1367
|
callbackURL?: string | undefined;
|
|
1368
1368
|
dontRememberMe?: boolean | undefined;
|
|
1369
1369
|
}, {
|
|
1370
|
-
provider: "
|
|
1370
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
1371
1371
|
callbackURL?: string | undefined;
|
|
1372
1372
|
dontRememberMe?: boolean | undefined;
|
|
1373
1373
|
}>;
|
|
@@ -1402,17 +1402,17 @@ declare const signInOAuth: {
|
|
|
1402
1402
|
/**
|
|
1403
1403
|
* OAuth2 provider to use`
|
|
1404
1404
|
*/
|
|
1405
|
-
provider: z.ZodEnum<["github", ...("
|
|
1405
|
+
provider: z.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
1406
1406
|
/**
|
|
1407
1407
|
* If this is true the session will only be valid for the current browser session
|
|
1408
1408
|
*/
|
|
1409
1409
|
dontRememberMe: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1410
1410
|
}, "strip", z.ZodTypeAny, {
|
|
1411
|
-
provider: "
|
|
1411
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
1412
1412
|
callbackURL?: string | undefined;
|
|
1413
1413
|
dontRememberMe?: boolean | undefined;
|
|
1414
1414
|
}, {
|
|
1415
|
-
provider: "
|
|
1415
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
1416
1416
|
callbackURL?: string | undefined;
|
|
1417
1417
|
dontRememberMe?: boolean | undefined;
|
|
1418
1418
|
}>;
|
|
@@ -2628,14 +2628,14 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
2628
2628
|
}>>;
|
|
2629
2629
|
body: zod.ZodObject<{
|
|
2630
2630
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
2631
|
-
provider: zod.ZodEnum<["github", ...("
|
|
2631
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
2632
2632
|
dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
2633
2633
|
}, "strip", zod.ZodTypeAny, {
|
|
2634
|
-
provider: "
|
|
2634
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
2635
2635
|
callbackURL?: string | undefined;
|
|
2636
2636
|
dontRememberMe?: boolean | undefined;
|
|
2637
2637
|
}, {
|
|
2638
|
-
provider: "
|
|
2638
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
2639
2639
|
callbackURL?: string | undefined;
|
|
2640
2640
|
dontRememberMe?: boolean | undefined;
|
|
2641
2641
|
}>;
|
|
@@ -2660,14 +2660,14 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
2660
2660
|
}>>;
|
|
2661
2661
|
body: zod.ZodObject<{
|
|
2662
2662
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
2663
|
-
provider: zod.ZodEnum<["github", ...("
|
|
2663
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
2664
2664
|
dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
2665
2665
|
}, "strip", zod.ZodTypeAny, {
|
|
2666
|
-
provider: "
|
|
2666
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
2667
2667
|
callbackURL?: string | undefined;
|
|
2668
2668
|
dontRememberMe?: boolean | undefined;
|
|
2669
2669
|
}, {
|
|
2670
|
-
provider: "
|
|
2670
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
2671
2671
|
callbackURL?: string | undefined;
|
|
2672
2672
|
dontRememberMe?: boolean | undefined;
|
|
2673
2673
|
}>;
|
|
@@ -3741,14 +3741,14 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
3741
3741
|
}>>;
|
|
3742
3742
|
body: zod.ZodObject<{
|
|
3743
3743
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
3744
|
-
provider: zod.ZodEnum<["github", ...("
|
|
3744
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
3745
3745
|
dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
3746
3746
|
}, "strip", zod.ZodTypeAny, {
|
|
3747
|
-
provider: "
|
|
3747
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
3748
3748
|
callbackURL?: string | undefined;
|
|
3749
3749
|
dontRememberMe?: boolean | undefined;
|
|
3750
3750
|
}, {
|
|
3751
|
-
provider: "
|
|
3751
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
3752
3752
|
callbackURL?: string | undefined;
|
|
3753
3753
|
dontRememberMe?: boolean | undefined;
|
|
3754
3754
|
}>;
|
|
@@ -3773,14 +3773,14 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
3773
3773
|
}>>;
|
|
3774
3774
|
body: zod.ZodObject<{
|
|
3775
3775
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
3776
|
-
provider: zod.ZodEnum<["github", ...("
|
|
3776
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
3777
3777
|
dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
3778
3778
|
}, "strip", zod.ZodTypeAny, {
|
|
3779
|
-
provider: "
|
|
3779
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
3780
3780
|
callbackURL?: string | undefined;
|
|
3781
3781
|
dontRememberMe?: boolean | undefined;
|
|
3782
3782
|
}, {
|
|
3783
|
-
provider: "
|
|
3783
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
3784
3784
|
callbackURL?: string | undefined;
|
|
3785
3785
|
dontRememberMe?: boolean | undefined;
|
|
3786
3786
|
}>;
|
|
@@ -4856,14 +4856,14 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
4856
4856
|
}>>;
|
|
4857
4857
|
body: zod.ZodObject<{
|
|
4858
4858
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
4859
|
-
provider: zod.ZodEnum<["github", ...("
|
|
4859
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
4860
4860
|
dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
4861
4861
|
}, "strip", zod.ZodTypeAny, {
|
|
4862
|
-
provider: "
|
|
4862
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
4863
4863
|
callbackURL?: string | undefined;
|
|
4864
4864
|
dontRememberMe?: boolean | undefined;
|
|
4865
4865
|
}, {
|
|
4866
|
-
provider: "
|
|
4866
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
4867
4867
|
callbackURL?: string | undefined;
|
|
4868
4868
|
dontRememberMe?: boolean | undefined;
|
|
4869
4869
|
}>;
|
|
@@ -4888,14 +4888,14 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
4888
4888
|
}>>;
|
|
4889
4889
|
body: zod.ZodObject<{
|
|
4890
4890
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
4891
|
-
provider: zod.ZodEnum<["github", ...("
|
|
4891
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
4892
4892
|
dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
4893
4893
|
}, "strip", zod.ZodTypeAny, {
|
|
4894
|
-
provider: "
|
|
4894
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
4895
4895
|
callbackURL?: string | undefined;
|
|
4896
4896
|
dontRememberMe?: boolean | undefined;
|
|
4897
4897
|
}, {
|
|
4898
|
-
provider: "
|
|
4898
|
+
provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter";
|
|
4899
4899
|
callbackURL?: string | undefined;
|
|
4900
4900
|
dontRememberMe?: boolean | undefined;
|
|
4901
4901
|
}>;
|
|
@@ -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';
|
package/dist/index.d.ts
CHANGED
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-DrWKVr9E.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
|
@@ -5278,7 +5278,7 @@ var username = () => {
|
|
|
5278
5278
|
await ctx.context.password.hash(ctx.body.password);
|
|
5279
5279
|
ctx.context.logger.error("User not found", { username });
|
|
5280
5280
|
throw new APIError23("UNAUTHORIZED", {
|
|
5281
|
-
message: "Invalid
|
|
5281
|
+
message: "Invalid username or password"
|
|
5282
5282
|
});
|
|
5283
5283
|
}
|
|
5284
5284
|
const account = await ctx.context.adapter.findOne({
|
|
@@ -5296,7 +5296,7 @@ var username = () => {
|
|
|
5296
5296
|
});
|
|
5297
5297
|
if (!account) {
|
|
5298
5298
|
throw new APIError23("UNAUTHORIZED", {
|
|
5299
|
-
message: "Invalid
|
|
5299
|
+
message: "Invalid username or password"
|
|
5300
5300
|
});
|
|
5301
5301
|
}
|
|
5302
5302
|
const currentPassword = account?.password;
|
|
@@ -5313,7 +5313,7 @@ var username = () => {
|
|
|
5313
5313
|
if (!validPassword) {
|
|
5314
5314
|
ctx.context.logger.error("Invalid password");
|
|
5315
5315
|
throw new APIError23("UNAUTHORIZED", {
|
|
5316
|
-
message: "Invalid
|
|
5316
|
+
message: "Invalid username or password"
|
|
5317
5317
|
});
|
|
5318
5318
|
}
|
|
5319
5319
|
const session = await ctx.context.internalAdapter.createSession(
|
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';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "better-auth",
|
|
3
|
-
"version": "0.3.5-beta.
|
|
3
|
+
"version": "0.3.5-beta.4",
|
|
4
4
|
"description": "The most comprehensive authentication library for TypeScript.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@simplewebauthn/browser": "^10.0.0",
|
|
84
84
|
"@simplewebauthn/server": "^10.0.1",
|
|
85
85
|
"arctic": "2.0.0-next.9",
|
|
86
|
-
"better-call": "0.2.5-beta.
|
|
86
|
+
"better-call": "0.2.5-beta.5",
|
|
87
87
|
"c12": "^1.11.2",
|
|
88
88
|
"chalk": "^5.3.0",
|
|
89
89
|
"commander": "^12.1.0",
|