From 432ca87eebbfa87608015bb60f6798b747d11fce Mon Sep 17 00:00:00 2001 From: Himanshu Soni Date: Fri, 10 Apr 2026 20:09:51 +0530 Subject: [PATCH] chore: fix cspell error --- packages/better-auth/src/context/create-context.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/better-auth/src/context/create-context.ts b/packages/better-auth/src/context/create-context.ts index 492cde454c..9cd5e6d9d7 100644 --- a/packages/better-auth/src/context/create-context.ts +++ b/packages/better-auth/src/context/create-context.ts @@ -132,12 +132,12 @@ export async function createAuthContext( ]); if (plugins.length > 1) { - const misorderedPlugins = plugins + const outOfOrderPlugins = plugins .slice(0, -1) .filter((p) => COOKIE_INTEGRATION_PLUGIN_IDS.has(p.id)); - if (misorderedPlugins.length > 0) { - const ids = misorderedPlugins.map((p) => `"${p.id}"`).join(", "); + if (outOfOrderPlugins.length > 0) { + const ids = outOfOrderPlugins.map((p) => `"${p.id}"`).join(", "); logger.warn( `[better-auth] Misconfiguration detected: cookie integration plugin(s) ${ids} must be placed last in the plugins[] array. ` + `Any plugin that runs after a cookie integration plugin will have its Set-Cookie headers silently dropped by the framework, ` +