better-auth 0.2.9 → 0.2.11
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/client.js +1 -1
- package/dist/{index-C3owlKu1.d.ts → index-CUD_IG9Z.d.ts} +1 -1
- package/dist/{index-C9S3KShG.d.ts → index-PjYlcsPD.d.ts} +24 -24
- package/dist/index.d.ts +1 -1
- package/dist/next-js.d.ts +1 -1
- package/dist/next-js.js +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/react.js +1 -1
- package/dist/solid-start.d.ts +1 -1
- package/dist/solid.d.ts +1 -1
- package/dist/solid.js +1 -1
- package/dist/svelte-kit.d.ts +1 -1
- package/dist/svelte.d.ts +1 -1
- package/dist/svelte.js +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/vue.d.ts +1 -1
- package/dist/vue.js +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, n as callbackOAuth, L as changePassword, d as createAuthEndpoint, c as createAuthMiddleware, D as createEmailVerificationToken, V as csrfMiddleware, N as deleteUser, Q as error, y as forgetPassword, z as forgetPasswordCallback, O as getCSRFToken, l as getEndpoints, p as getSession, q as getSessionFromCtx, u as listSessions, T as ok, o as optionsMiddleware, C as resetPassword, v as revokeSession, w as revokeSessions, r as router, E as sendVerificationEmail, t as sessionMiddleware, M as setPassword, m as signInEmail, s as signInOAuth, x as signOut, U as signUpEmail, K as updateUser, J as verifyEmail } from './index-
|
|
1
|
+
export { e as AuthEndpoint, f as AuthMiddleware, n as callbackOAuth, L as changePassword, d as createAuthEndpoint, c as createAuthMiddleware, D as createEmailVerificationToken, V as csrfMiddleware, N as deleteUser, Q as error, y as forgetPassword, z as forgetPasswordCallback, O as getCSRFToken, l as getEndpoints, p as getSession, q as getSessionFromCtx, u as listSessions, T as ok, o as optionsMiddleware, C as resetPassword, v as revokeSession, w as revokeSessions, r as router, E as sendVerificationEmail, t as sessionMiddleware, M as setPassword, m as signInEmail, s as signInOAuth, x as signOut, U as signUpEmail, K as updateUser, J as verifyEmail } from './index-PjYlcsPD.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import './helper-DPDj8Nix.js';
|
|
4
4
|
import 'better-call';
|
package/dist/client/plugins.d.ts
CHANGED
|
@@ -2,14 +2,14 @@ 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, e as Organization, M as Member, I as Invitation, u as username, m as magicLink, d as phoneNumber } from '../index-
|
|
6
|
-
export { g as getPasskeyActions, c as passkeyClient, a as twoFactorClient } from '../index-
|
|
5
|
+
import { o as organization, e as Organization, M as Member, I as Invitation, u as username, m as magicLink, d as phoneNumber } from '../index-CUD_IG9Z.js';
|
|
6
|
+
export { g as getPasskeyActions, c as passkeyClient, a as twoFactorClient } from '../index-CUD_IG9Z.js';
|
|
7
7
|
import { P as Prettify } from '../helper-DPDj8Nix.js';
|
|
8
8
|
import '../index-JM-i6hLs.js';
|
|
9
9
|
import 'arctic';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import 'better-call';
|
|
12
|
-
import '../index-
|
|
12
|
+
import '../index-PjYlcsPD.js';
|
|
13
13
|
import 'kysely';
|
|
14
14
|
import 'better-sqlite3';
|
|
15
15
|
import 'mysql2';
|
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-PjYlcsPD.js';
|
|
10
10
|
import 'kysely';
|
|
11
11
|
import './index-JM-i6hLs.js';
|
|
12
12
|
import 'arctic';
|
package/dist/client.js
CHANGED
|
@@ -158,7 +158,7 @@ var getClientConfig = (options) => {
|
|
|
158
158
|
{
|
|
159
159
|
signal: "_sessionSignal",
|
|
160
160
|
matcher(path) {
|
|
161
|
-
return path === "/sign-out" || path === "
|
|
161
|
+
return path === "/sign-out" || path === "/user/update" || path.startsWith("/sign-in") || path.startsWith("/sign-up");
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
];
|
|
@@ -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-PjYlcsPD.js';
|
|
9
9
|
import * as nanostores from 'nanostores';
|
|
10
10
|
import { atom } from 'nanostores';
|
|
11
11
|
import * as _simplewebauthn_types from '@simplewebauthn/types';
|
|
@@ -1243,17 +1243,17 @@ declare const signInOAuth: {
|
|
|
1243
1243
|
/**
|
|
1244
1244
|
* OAuth2 provider to use`
|
|
1245
1245
|
*/
|
|
1246
|
-
provider: z.ZodEnum<["github", ...("
|
|
1246
|
+
provider: z.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
1247
1247
|
/**
|
|
1248
1248
|
* If this is true the session will only be valid for the current browser session
|
|
1249
1249
|
*/
|
|
1250
1250
|
dontRememberMe: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1251
1251
|
}, "strip", z.ZodTypeAny, {
|
|
1252
|
-
provider: "
|
|
1252
|
+
provider: "github" | "apple" | "discord" | "facebook" | "google" | "spotify" | "twitch" | "twitter";
|
|
1253
1253
|
callbackURL?: string | undefined;
|
|
1254
1254
|
dontRememberMe?: boolean | undefined;
|
|
1255
1255
|
}, {
|
|
1256
|
-
provider: "
|
|
1256
|
+
provider: "github" | "apple" | "discord" | "facebook" | "google" | "spotify" | "twitch" | "twitter";
|
|
1257
1257
|
callbackURL?: string | undefined;
|
|
1258
1258
|
dontRememberMe?: boolean | undefined;
|
|
1259
1259
|
}>;
|
|
@@ -1286,17 +1286,17 @@ declare const signInOAuth: {
|
|
|
1286
1286
|
/**
|
|
1287
1287
|
* OAuth2 provider to use`
|
|
1288
1288
|
*/
|
|
1289
|
-
provider: z.ZodEnum<["github", ...("
|
|
1289
|
+
provider: z.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
1290
1290
|
/**
|
|
1291
1291
|
* If this is true the session will only be valid for the current browser session
|
|
1292
1292
|
*/
|
|
1293
1293
|
dontRememberMe: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1294
1294
|
}, "strip", z.ZodTypeAny, {
|
|
1295
|
-
provider: "
|
|
1295
|
+
provider: "github" | "apple" | "discord" | "facebook" | "google" | "spotify" | "twitch" | "twitter";
|
|
1296
1296
|
callbackURL?: string | undefined;
|
|
1297
1297
|
dontRememberMe?: boolean | undefined;
|
|
1298
1298
|
}, {
|
|
1299
|
-
provider: "
|
|
1299
|
+
provider: "github" | "apple" | "discord" | "facebook" | "google" | "spotify" | "twitch" | "twitter";
|
|
1300
1300
|
callbackURL?: string | undefined;
|
|
1301
1301
|
dontRememberMe?: boolean | undefined;
|
|
1302
1302
|
}>;
|
|
@@ -2445,14 +2445,14 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
2445
2445
|
}>>;
|
|
2446
2446
|
body: zod.ZodObject<{
|
|
2447
2447
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
2448
|
-
provider: zod.ZodEnum<["github", ...("
|
|
2448
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
2449
2449
|
dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
2450
2450
|
}, "strip", zod.ZodTypeAny, {
|
|
2451
|
-
provider: "
|
|
2451
|
+
provider: "github" | "apple" | "discord" | "facebook" | "google" | "spotify" | "twitch" | "twitter";
|
|
2452
2452
|
callbackURL?: string | undefined;
|
|
2453
2453
|
dontRememberMe?: boolean | undefined;
|
|
2454
2454
|
}, {
|
|
2455
|
-
provider: "
|
|
2455
|
+
provider: "github" | "apple" | "discord" | "facebook" | "google" | "spotify" | "twitch" | "twitter";
|
|
2456
2456
|
callbackURL?: string | undefined;
|
|
2457
2457
|
dontRememberMe?: boolean | undefined;
|
|
2458
2458
|
}>;
|
|
@@ -2475,14 +2475,14 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
|
|
|
2475
2475
|
}>>;
|
|
2476
2476
|
body: zod.ZodObject<{
|
|
2477
2477
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
2478
|
-
provider: zod.ZodEnum<["github", ...("
|
|
2478
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
2479
2479
|
dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
2480
2480
|
}, "strip", zod.ZodTypeAny, {
|
|
2481
|
-
provider: "
|
|
2481
|
+
provider: "github" | "apple" | "discord" | "facebook" | "google" | "spotify" | "twitch" | "twitter";
|
|
2482
2482
|
callbackURL?: string | undefined;
|
|
2483
2483
|
dontRememberMe?: boolean | undefined;
|
|
2484
2484
|
}, {
|
|
2485
|
-
provider: "
|
|
2485
|
+
provider: "github" | "apple" | "discord" | "facebook" | "google" | "spotify" | "twitch" | "twitter";
|
|
2486
2486
|
callbackURL?: string | undefined;
|
|
2487
2487
|
dontRememberMe?: boolean | undefined;
|
|
2488
2488
|
}>;
|
|
@@ -3507,14 +3507,14 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
3507
3507
|
}>>;
|
|
3508
3508
|
body: zod.ZodObject<{
|
|
3509
3509
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
3510
|
-
provider: zod.ZodEnum<["github", ...("
|
|
3510
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
3511
3511
|
dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
3512
3512
|
}, "strip", zod.ZodTypeAny, {
|
|
3513
|
-
provider: "
|
|
3513
|
+
provider: "github" | "apple" | "discord" | "facebook" | "google" | "spotify" | "twitch" | "twitter";
|
|
3514
3514
|
callbackURL?: string | undefined;
|
|
3515
3515
|
dontRememberMe?: boolean | undefined;
|
|
3516
3516
|
}, {
|
|
3517
|
-
provider: "
|
|
3517
|
+
provider: "github" | "apple" | "discord" | "facebook" | "google" | "spotify" | "twitch" | "twitter";
|
|
3518
3518
|
callbackURL?: string | undefined;
|
|
3519
3519
|
dontRememberMe?: boolean | undefined;
|
|
3520
3520
|
}>;
|
|
@@ -3537,14 +3537,14 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
|
|
|
3537
3537
|
}>>;
|
|
3538
3538
|
body: zod.ZodObject<{
|
|
3539
3539
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
3540
|
-
provider: zod.ZodEnum<["github", ...("
|
|
3540
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
3541
3541
|
dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
3542
3542
|
}, "strip", zod.ZodTypeAny, {
|
|
3543
|
-
provider: "
|
|
3543
|
+
provider: "github" | "apple" | "discord" | "facebook" | "google" | "spotify" | "twitch" | "twitter";
|
|
3544
3544
|
callbackURL?: string | undefined;
|
|
3545
3545
|
dontRememberMe?: boolean | undefined;
|
|
3546
3546
|
}, {
|
|
3547
|
-
provider: "
|
|
3547
|
+
provider: "github" | "apple" | "discord" | "facebook" | "google" | "spotify" | "twitch" | "twitter";
|
|
3548
3548
|
callbackURL?: string | undefined;
|
|
3549
3549
|
dontRememberMe?: boolean | undefined;
|
|
3550
3550
|
}>;
|
|
@@ -4571,14 +4571,14 @@ 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" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
4575
4575
|
dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
4576
4576
|
}, "strip", zod.ZodTypeAny, {
|
|
4577
|
-
provider: "
|
|
4577
|
+
provider: "github" | "apple" | "discord" | "facebook" | "google" | "spotify" | "twitch" | "twitter";
|
|
4578
4578
|
callbackURL?: string | undefined;
|
|
4579
4579
|
dontRememberMe?: boolean | undefined;
|
|
4580
4580
|
}, {
|
|
4581
|
-
provider: "
|
|
4581
|
+
provider: "github" | "apple" | "discord" | "facebook" | "google" | "spotify" | "twitch" | "twitter";
|
|
4582
4582
|
callbackURL?: string | undefined;
|
|
4583
4583
|
dontRememberMe?: boolean | undefined;
|
|
4584
4584
|
}>;
|
|
@@ -4601,14 +4601,14 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
|
|
|
4601
4601
|
}>>;
|
|
4602
4602
|
body: zod.ZodObject<{
|
|
4603
4603
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
4604
|
-
provider: zod.ZodEnum<["github", ...("
|
|
4604
|
+
provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
4605
4605
|
dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
4606
4606
|
}, "strip", zod.ZodTypeAny, {
|
|
4607
|
-
provider: "
|
|
4607
|
+
provider: "github" | "apple" | "discord" | "facebook" | "google" | "spotify" | "twitch" | "twitter";
|
|
4608
4608
|
callbackURL?: string | undefined;
|
|
4609
4609
|
dontRememberMe?: boolean | undefined;
|
|
4610
4610
|
}, {
|
|
4611
|
-
provider: "
|
|
4611
|
+
provider: "github" | "apple" | "discord" | "facebook" | "google" | "spotify" | "twitch" | "twitter";
|
|
4612
4612
|
callbackURL?: string | undefined;
|
|
4613
4613
|
dontRememberMe?: boolean | undefined;
|
|
4614
4614
|
}>;
|
package/dist/index.d.ts
CHANGED
package/dist/next-js.d.ts
CHANGED
package/dist/next-js.js
CHANGED
|
@@ -14,7 +14,7 @@ function authMiddleware(options) {
|
|
|
14
14
|
return async (request) => {
|
|
15
15
|
const url = new URL(request.url).origin;
|
|
16
16
|
const basePath = options?.basePath || "/api/auth";
|
|
17
|
-
const fullURL = `${url}${basePath}/
|
|
17
|
+
const fullURL = `${url}${basePath}/session`;
|
|
18
18
|
const res = await betterFetch(fullURL, {
|
|
19
19
|
headers: {
|
|
20
20
|
cookie: request.headers.get("cookie") || ""
|
package/dist/node.d.ts
CHANGED
package/dist/plugins.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { O as OrganizationOptions, b as Passkey, P as PasskeyOptions, 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 { O as OrganizationOptions, b as Passkey, P as PasskeyOptions, 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-CUD_IG9Z.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-PjYlcsPD.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-PjYlcsPD.js';
|
|
5
5
|
import './index-JM-i6hLs.js';
|
|
6
6
|
import 'arctic';
|
|
7
7
|
import 'zod';
|
package/dist/react.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { U as UnionToIntersection, P as Prettify, S as StripEmptyObjects } from
|
|
|
3
3
|
import { ClientOptions, InferClientAPI, InferActions, InferAdditionalFromClient, BetterAuthClientPlugin, IsSignal } from './types.js';
|
|
4
4
|
import { useStore } from '@nanostores/react';
|
|
5
5
|
import 'zod';
|
|
6
|
-
import './index-
|
|
6
|
+
import './index-PjYlcsPD.js';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import './index-JM-i6hLs.js';
|
|
9
9
|
import 'arctic';
|
package/dist/react.js
CHANGED
|
@@ -161,7 +161,7 @@ var getClientConfig = (options) => {
|
|
|
161
161
|
{
|
|
162
162
|
signal: "_sessionSignal",
|
|
163
163
|
matcher(path) {
|
|
164
|
-
return path === "/sign-out" || path === "
|
|
164
|
+
return path === "/sign-out" || path === "/user/update" || path.startsWith("/sign-in") || path.startsWith("/sign-up");
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
];
|
package/dist/solid-start.d.ts
CHANGED
package/dist/solid.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { U as UnionToIntersection, P as Prettify, S as StripEmptyObjects } from
|
|
|
3
3
|
import { ClientOptions, InferClientAPI, InferActions, InferAdditionalFromClient, BetterAuthClientPlugin, IsSignal } from './types.js';
|
|
4
4
|
import { Accessor } from 'solid-js';
|
|
5
5
|
import 'zod';
|
|
6
|
-
import './index-
|
|
6
|
+
import './index-PjYlcsPD.js';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import './index-JM-i6hLs.js';
|
|
9
9
|
import 'arctic';
|
package/dist/solid.js
CHANGED
|
@@ -161,7 +161,7 @@ var getClientConfig = (options) => {
|
|
|
161
161
|
{
|
|
162
162
|
signal: "_sessionSignal",
|
|
163
163
|
matcher(path) {
|
|
164
|
-
return path === "/sign-out" || path === "
|
|
164
|
+
return path === "/sign-out" || path === "/user/update" || path.startsWith("/sign-in") || path.startsWith("/sign-up");
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
];
|
package/dist/svelte-kit.d.ts
CHANGED
package/dist/svelte.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 'zod';
|
|
6
|
-
import './index-
|
|
6
|
+
import './index-PjYlcsPD.js';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import './index-JM-i6hLs.js';
|
|
9
9
|
import 'arctic';
|
package/dist/svelte.js
CHANGED
|
@@ -158,7 +158,7 @@ var getClientConfig = (options) => {
|
|
|
158
158
|
{
|
|
159
159
|
signal: "_sessionSignal",
|
|
160
160
|
matcher(path) {
|
|
161
|
-
return path === "/sign-out" || path === "
|
|
161
|
+
return path === "/sign-out" || path === "/user/update" || path.startsWith("/sign-in") || path.startsWith("/sign-up");
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
];
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as BetterAuthPlugin, a as Auth, F as FieldAttribute, I as InferFieldOutput } from './index-
|
|
2
|
-
export { A as Adapter, k as AuthContext, B as BetterAuthOptions, G as GenericEndpointContext, H as HookEndpointContext, i as InferPluginTypes, h as InferSession, g as InferUser, P as PluginSchema, R as RateLimit, S as SessionAdapter, W as Where, j as init } from './index-
|
|
1
|
+
import { b as BetterAuthPlugin, a as Auth, F as FieldAttribute, I as InferFieldOutput } from './index-PjYlcsPD.js';
|
|
2
|
+
export { A as Adapter, k as AuthContext, B as BetterAuthOptions, G as GenericEndpointContext, H as HookEndpointContext, i as InferPluginTypes, h as InferSession, g as InferUser, P as PluginSchema, R as RateLimit, S as SessionAdapter, W as Where, j as init } from './index-PjYlcsPD.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-JM-i6hLs.js';
|
package/dist/vue.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { U as UnionToIntersection, P as Prettify, S as StripEmptyObjects } from
|
|
|
3
3
|
import { ClientOptions, InferClientAPI, InferActions, InferAdditionalFromClient, BetterAuthClientPlugin, IsSignal } from './types.js';
|
|
4
4
|
import { Ref, DeepReadonly } from 'vue';
|
|
5
5
|
import 'zod';
|
|
6
|
-
import './index-
|
|
6
|
+
import './index-PjYlcsPD.js';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import './index-JM-i6hLs.js';
|
|
9
9
|
import 'arctic';
|
package/dist/vue.js
CHANGED
|
@@ -161,7 +161,7 @@ var getClientConfig = (options) => {
|
|
|
161
161
|
{
|
|
162
162
|
signal: "_sessionSignal",
|
|
163
163
|
matcher(path) {
|
|
164
|
-
return path === "/sign-out" || path === "
|
|
164
|
+
return path === "/sign-out" || path === "/user/update" || path.startsWith("/sign-in") || path.startsWith("/sign-up");
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
];
|