better-auth 1.6.28 → 1.6.29
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/api/routes/sign-in.mjs +1 -0
- package/dist/db/internal-adapter.mjs +1 -3
- package/dist/index.mjs +1 -0
- package/dist/package.mjs +1 -1
- package/dist/plugins/generic-oauth/routes.mjs +1 -0
- package/dist/plugins/mcp/index.mjs +1 -0
- package/dist/plugins/oidc-provider/index.mjs +1 -0
- package/dist/plugins/open-api/index.mjs +1 -0
- package/dist/utils/index.mjs +5 -0
- package/package.json +8 -8
|
@@ -7,6 +7,7 @@ import { handleOAuthUserInfo } from "../../oauth2/link-account.mjs";
|
|
|
7
7
|
import { generateState } from "../../oauth2/state.mjs";
|
|
8
8
|
import { safeCloneRequest } from "../../utils/request.mjs";
|
|
9
9
|
import { createEmailVerificationToken } from "./email-verification.mjs";
|
|
10
|
+
import "../../utils/index.mjs";
|
|
10
11
|
import { APIError, BASE_ERROR_CODES } from "@better-auth/core/error";
|
|
11
12
|
import { SocialProviderListEnum } from "@better-auth/core/social-providers";
|
|
12
13
|
import { createAuthEndpoint } from "@better-auth/core/api";
|
|
@@ -419,9 +419,7 @@ const createInternalAdapter = (adapter, ctx) => {
|
|
|
419
419
|
if (databaseStoresSessions && !preservesDatabaseSessions) await deleteDatabaseSessions(userId);
|
|
420
420
|
},
|
|
421
421
|
deleteSessions: async (sessionTokens) => {
|
|
422
|
-
if (secondaryStorage)
|
|
423
|
-
for (const sessionToken of sessionTokens) if (await secondaryStorage.get(sessionToken)) await secondaryStorage.delete(sessionToken);
|
|
424
|
-
}
|
|
422
|
+
if (secondaryStorage) await Promise.all(sessionTokens.map((token) => secondaryStorage.delete(token)));
|
|
425
423
|
if (databaseStoresSessions && !preservesDatabaseSessions) await deleteManyWithHooks([{
|
|
426
424
|
field: "token",
|
|
427
425
|
value: sessionTokens,
|
package/dist/index.mjs
CHANGED
|
@@ -2,6 +2,7 @@ import { getBaseURL, getHost, getHostFromSource, getOrigin, getProtocol, getProt
|
|
|
2
2
|
import { generateGenericState, parseGenericState } from "./state.mjs";
|
|
3
3
|
import { generateState, parseState } from "./oauth2/state.mjs";
|
|
4
4
|
import { HIDE_METADATA } from "./utils/hide-metadata.mjs";
|
|
5
|
+
import "./utils/index.mjs";
|
|
5
6
|
import { APIError } from "./api/index.mjs";
|
|
6
7
|
import { betterAuth } from "./auth/full.mjs";
|
|
7
8
|
import { getCurrentAdapter } from "@better-auth/core/context";
|
package/dist/package.mjs
CHANGED
|
@@ -6,6 +6,7 @@ import { applyUpdateUserInfoOnLink, handleOAuthUserInfo } from "../../oauth2/lin
|
|
|
6
6
|
import { generateState, parseState } from "../../oauth2/state.mjs";
|
|
7
7
|
import { sessionMiddleware } from "../../api/routes/session.mjs";
|
|
8
8
|
import { HIDE_METADATA } from "../../utils/hide-metadata.mjs";
|
|
9
|
+
import "../../utils/index.mjs";
|
|
9
10
|
import { APIError as APIError$1 } from "../../api/index.mjs";
|
|
10
11
|
import { GENERIC_OAUTH_ERROR_CODES } from "./error-codes.mjs";
|
|
11
12
|
import { BASE_ERROR_CODES } from "@better-auth/core/error";
|
|
@@ -6,6 +6,7 @@ import { expireCookie } from "../../cookies/index.mjs";
|
|
|
6
6
|
import { resolveDynamicTrustedProxyHeaders } from "../../context/helpers.mjs";
|
|
7
7
|
import { getSessionFromCtx } from "../../api/routes/session.mjs";
|
|
8
8
|
import { HIDE_METADATA } from "../../utils/hide-metadata.mjs";
|
|
9
|
+
import "../../utils/index.mjs";
|
|
9
10
|
import { APIError } from "../../api/index.mjs";
|
|
10
11
|
import { PACKAGE_VERSION } from "../../version.mjs";
|
|
11
12
|
import { parsePrompt } from "../oidc-provider/utils/prompt.mjs";
|
|
@@ -6,6 +6,7 @@ import { symmetricDecrypt, symmetricEncrypt } from "../../crypto/index.mjs";
|
|
|
6
6
|
import { expireCookie } from "../../cookies/index.mjs";
|
|
7
7
|
import { getSessionFromCtx, sessionMiddleware } from "../../api/routes/session.mjs";
|
|
8
8
|
import { HIDE_METADATA } from "../../utils/hide-metadata.mjs";
|
|
9
|
+
import "../../utils/index.mjs";
|
|
9
10
|
import { APIError } from "../../api/index.mjs";
|
|
10
11
|
import { PACKAGE_VERSION } from "../../version.mjs";
|
|
11
12
|
import { getJwtToken } from "../jwt/sign.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "better-auth",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.29",
|
|
4
4
|
"description": "The most comprehensive authentication framework for TypeScript.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -489,13 +489,13 @@
|
|
|
489
489
|
"kysely": "^0.28.17 || ^0.29.0",
|
|
490
490
|
"nanostores": "^1.1.1",
|
|
491
491
|
"zod": "^4.3.6",
|
|
492
|
-
"@better-auth/core": "1.6.
|
|
493
|
-
"@better-auth/drizzle-adapter": "1.6.
|
|
494
|
-
"@better-auth/kysely-adapter": "1.6.
|
|
495
|
-
"@better-auth/memory-adapter": "1.6.
|
|
496
|
-
"@better-auth/mongo-adapter": "1.6.
|
|
497
|
-
"@better-auth/prisma-adapter": "1.6.
|
|
498
|
-
"@better-auth/telemetry": "1.6.
|
|
492
|
+
"@better-auth/core": "1.6.29",
|
|
493
|
+
"@better-auth/drizzle-adapter": "1.6.29",
|
|
494
|
+
"@better-auth/kysely-adapter": "1.6.29",
|
|
495
|
+
"@better-auth/memory-adapter": "1.6.29",
|
|
496
|
+
"@better-auth/mongo-adapter": "1.6.29",
|
|
497
|
+
"@better-auth/prisma-adapter": "1.6.29",
|
|
498
|
+
"@better-auth/telemetry": "1.6.29"
|
|
499
499
|
},
|
|
500
500
|
"devDependencies": {
|
|
501
501
|
"@lynx-js/react": "^0.116.3",
|