[{"data":1,"prerenderedAt":332,"buildId":333},["ShallowReactive",2],{"-errors-nuxt-auth-cli-version-mismatch":3,"-errors-nuxt-auth-cli-version-mismatch-surround":115,"navigation_docs":126},{"id":4,"title":5,"body":6,"description":104,"extension":105,"links":106,"meta":107,"navigation":109,"path":111,"seo":112,"stem":113,"__hash__":114},"docs\u002F6.errors\u002Fnuxt-auth-cli-version-mismatch.md","NUXT_AUTH_CLI_VERSION_MISMATCH: Better Auth CLI version does not match better-auth",{"type":7,"value":8,"toc":98},"minimark",[9,27,32,36,40,43,46,70,73,77,80,94],[10,11,17],"pre",{"className":12,"code":13,"filename":14,"language":15,"meta":16,"style":16},"language-txt shiki shiki-themes one-light synthwave-84 synthwave-84","[NUXT_AUTH_CLI_VERSION_MISMATCH] auth@1.7.11 installs better-auth@1.7.11, but this app uses better-auth@1.7.3. Two copies of Better Auth cause conflicting types.\n","Example error","txt","",[18,19,20],"code",{"__ignoreMap":16},[21,22,25],"span",{"class":23,"line":24},"line",1,[21,26,13],{},[28,29,31],"h2",{"id":30},"why-this-happens","Why this happens",[33,34,35],"p",{},"The auth package depends on an exact better-auth version. When it differs from the better-auth version in your app, the package manager installs both, along with two copies of @better-auth\u002Fcore. Better Auth plugins such as @better-auth\u002Foauth-provider can then resolve a different core than better-auth, and TypeScript reports errors such as a string not being assignable to never.",[28,37,39],{"id":38},"how-to-fix-it","How to fix it",[33,41,42],{},"Run pnpm add -D auth@1.7.3 so auth and better-auth use the same version.",[33,44,45],{},"Install auth at the version of better-auth your app uses:",[10,47,51],{"className":48,"code":49,"language":50,"meta":16,"style":16},"language-bash shiki shiki-themes one-light synthwave-84 synthwave-84","pnpm add -D auth@1.7.3\n","bash",[18,52,53],{"__ignoreMap":16},[21,54,55,59,63,67],{"class":23,"line":24},[21,56,58],{"class":57},"siqUp","pnpm",[21,60,62],{"class":61},"sI3kV"," add",[21,64,66],{"class":65},"s3ZNE"," -D",[21,68,69],{"class":61}," auth@1.7.3\n",[33,71,72],{},"Alternatively, upgrade better-auth and auth together to the same newer version.",[28,74,76],{"id":75},"verify-the-fix","Verify the fix",[33,78,79],{},"Run pnpm exec nuxt prepare. The warning should no longer appear, and pnpm why better-auth should list a single version.",[33,81,82,83,88,89,93],{},"See ",[84,85,87],"a",{"href":86},"\u002Fintegrations\u002Fnuxthub","Set up NuxtHub"," or return to the ",[84,90,92],{"href":91},"\u002Ferrors","error reference",".",[95,96,97],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .siqUp, html code.shiki .siqUp{--shiki-light:#4078F2;--shiki-default:#FE4450;--shiki-dark:#FE4450}html pre.shiki code .sI3kV, html code.shiki .sI3kV{--shiki-light:#50A14F;--shiki-default:#BBBBBB;--shiki-dark:#BBBBBB}html pre.shiki code .s3ZNE, html code.shiki .s3ZNE{--shiki-light:#986801;--shiki-default:#F97E72;--shiki-dark:#F97E72}",{"title":16,"searchDepth":99,"depth":99,"links":100},2,[101,102,103],{"id":30,"depth":99,"text":31},{"id":38,"depth":99,"text":39},{"id":75,"depth":99,"text":76},"Align auth and better-auth so the app resolves one copy of Better Auth.","md",null,{"editPath":108},"diagnostics\u002Fpages.ts",{"title":110},"Better Auth CLI version does not match better-auth","\u002Ferrors\u002Fnuxt-auth-cli-version-mismatch",{"title":5,"description":104},"6.errors\u002Fnuxt-auth-cli-version-mismatch","g3syNY4-UIBHTlNgen9Wh0Vb1iGVTxzErX7Sb4vgYSo",[116,121],{"title":117,"path":118,"stem":119,"description":120,"children":-1},"Better Auth CLI is not installed","\u002Ferrors\u002Fnuxt-auth-cli-missing","6.errors\u002Fnuxt-auth-cli-missing","Install the auth package so the module can generate the NuxtHub schema.",{"title":122,"path":123,"stem":124,"description":125,"children":-1},"Auth configuration failed to load","\u002Ferrors\u002Fnuxt-auth-config-load-failed","6.errors\u002Fnuxt-auth-config-load-failed","Resolve missing imports or environment variables that prevent the server auth config from loading.",[127,165,191,238,262,283],{"title":128,"path":129,"stem":130,"children":131,"icon":134},"Getting Started","\u002Fgetting-started","1.getting-started\u002F0.index",[132,135,140,145,150,155,160],{"title":133,"path":129,"stem":130,"icon":134},"Introduction","i-lucide-sparkles",{"title":136,"path":137,"stem":138,"icon":139},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F1.installation","i-lucide-download",{"title":141,"path":142,"stem":143,"icon":144},"Configuration","\u002Fgetting-started\u002Fconfiguration","1.getting-started\u002F2.configuration","i-lucide-settings",{"title":146,"path":147,"stem":148,"icon":149},"Client Setup","\u002Fgetting-started\u002Fclient-setup","1.getting-started\u002F3.client-setup","i-lucide-monitor",{"title":151,"path":152,"stem":153,"icon":154},"Type Augmentation","\u002Fgetting-started\u002Ftype-augmentation","1.getting-started\u002F4.type-augmentation","i-lucide-type",{"title":156,"path":157,"stem":158,"icon":159},"Schema Generation (NuxtHub)","\u002Fgetting-started\u002Fschema-generation","1.getting-started\u002F5.schema-generation","i-lucide-database",{"title":161,"path":162,"stem":163,"icon":164},"How It Works","\u002Fgetting-started\u002Fhow-it-works","1.getting-started\u002F6.how-it-works","i-lucide-workflow",{"title":166,"path":167,"stem":168,"children":169,"page":190},"Core Concepts","\u002Fcore-concepts","2.core-concepts",[170,174,178,182,186],{"title":171,"path":172,"stem":173},"serverAuth()","\u002Fcore-concepts\u002Fserver-auth","2.core-concepts\u002F1.server-auth",{"title":175,"path":176,"stem":177},"Sessions","\u002Fcore-concepts\u002Fsessions","2.core-concepts\u002F2.sessions",{"title":179,"path":180,"stem":181},"Route Protection","\u002Fcore-concepts\u002Froute-protection","2.core-concepts\u002F3.route-protection",{"title":183,"path":184,"stem":185},"Auto‑Imports and Aliases","\u002Fcore-concepts\u002Fauto-imports-aliases","2.core-concepts\u002F4.auto-imports-aliases",{"title":187,"path":188,"stem":189},"Security & Caveats","\u002Fcore-concepts\u002Fsecurity-caveats","2.core-concepts\u002F5.security-caveats",false,{"title":192,"path":193,"stem":194,"children":195,"page":190},"Guides","\u002Fguides","3.guides",[196,200,205,209,213,217,222,226,230,234],{"title":197,"path":198,"stem":199},"Role‑Based Access","\u002Fguides\u002Frole-based-access","3.guides\u002F1.role-based-access",{"title":201,"path":202,"stem":203,"icon":204},"Setup diagnostics","\u002Fguides\u002Fdiagnostics","3.guides\u002F10.diagnostics","i-lucide-circle-alert",{"title":206,"path":207,"stem":208},"OAuth Providers","\u002Fguides\u002Foauth-providers","3.guides\u002F2.oauth-providers",{"title":210,"path":211,"stem":212},"Custom Database","\u002Fguides\u002Fcustom-database","3.guides\u002F3.custom-database",{"title":214,"path":215,"stem":216},"Database-less Mode","\u002Fguides\u002Fdatabase-less-mode","3.guides\u002F4.database-less-mode",{"title":218,"path":219,"stem":220,"icon":221},"External Auth Backend","\u002Fguides\u002Fexternal-auth-backend","3.guides\u002F5.external-auth-backend","i-lucide-server",{"title":223,"path":224,"stem":225},"Migrating from nuxt-auth-utils","\u002Fguides\u002Fmigrate-from-nuxt-auth-utils","3.guides\u002F6.migrate-from-nuxt-auth-utils",{"title":227,"path":228,"stem":229},"Two-Factor Authentication (TOTP + Backup Codes)","\u002Fguides\u002Ftwo-factor-auth","3.guides\u002F7.two-factor-auth",{"title":231,"path":232,"stem":233},"Testing","\u002Fguides\u002Ftesting","3.guides\u002F8.testing",{"title":235,"path":236,"stem":237},"Production Deployment","\u002Fguides\u002Fproduction-deployment","3.guides\u002F9.production-deployment",{"title":239,"path":240,"stem":241,"children":242,"page":190},"Integrations","\u002Fintegrations","4.integrations",[243,246,250,254,258],{"title":244,"path":86,"stem":245},"NuxtHub","4.integrations\u002F1.nuxthub",{"title":247,"path":248,"stem":249},"DevTools","\u002Fintegrations\u002Fdevtools","4.integrations\u002F2.devtools",{"title":251,"path":252,"stem":253},"Convex","\u002Fintegrations\u002Fconvex","4.integrations\u002F3.convex",{"title":255,"path":256,"stem":257},"i18n","\u002Fintegrations\u002Fi18n","4.integrations\u002F4.i18n",{"title":259,"path":260,"stem":261},"MCP","\u002Fintegrations\u002Fmcp","4.integrations\u002F5.mcp",{"title":263,"path":264,"stem":265,"children":266,"page":190},"API Reference","\u002Fapi","5.api",[267,271,275,279],{"title":268,"path":269,"stem":270},"Composables","\u002Fapi\u002Fcomposables","5.api\u002F1.composables",{"title":272,"path":273,"stem":274},"Server Utilities","\u002Fapi\u002Fserver-utils","5.api\u002F2.server-utils",{"title":276,"path":277,"stem":278},"Components","\u002Fapi\u002Fcomponents","5.api\u002F3.components",{"title":280,"path":281,"stem":282},"Types","\u002Fapi\u002Ftypes","5.api\u002F4.types",{"title":284,"path":91,"stem":285,"children":286,"icon":204},"Errors","6.errors\u002F0.index",[287,289,290,291,292,296,300,304,308,312,316,320,324,328],{"title":288,"path":91,"stem":285},"Overview",{"title":117,"path":118,"stem":119},{"title":110,"path":111,"stem":113},{"title":122,"path":123,"stem":124},{"title":293,"path":294,"stem":295},"Schema generator returned no code","\u002Ferrors\u002Fnuxt-auth-empty-schema","6.errors\u002Fnuxt-auth-empty-schema",{"title":297,"path":298,"stem":299},"Invalid server auth config export","\u002Ferrors\u002Fnuxt-auth-invalid-config-export","6.errors\u002Fnuxt-auth-invalid-config-export",{"title":301,"path":302,"stem":303},"Auth plugin path must be absolute","\u002Ferrors\u002Fnuxt-auth-invalid-plugin-source","6.errors\u002Fnuxt-auth-invalid-plugin-source",{"title":305,"path":306,"stem":307},"Missing auth configuration","\u002Ferrors\u002Fnuxt-auth-missing-config","6.errors\u002Fnuxt-auth-missing-config",{"title":309,"path":310,"stem":311},"NuxtHub database alias is missing","\u002Ferrors\u002Fnuxt-auth-missing-hub-db","6.errors\u002Fnuxt-auth-missing-hub-db",{"title":313,"path":314,"stem":315},"No database provider is enabled","\u002Ferrors\u002Fnuxt-auth-no-database-provider","6.errors\u002Fnuxt-auth-no-database-provider",{"title":317,"path":318,"stem":319},"Auth schema generation failed","\u002Ferrors\u002Fnuxt-auth-schema-generation-failed","6.errors\u002Fnuxt-auth-schema-generation-failed",{"title":321,"path":322,"stem":323},"Custom session storage is missing","\u002Ferrors\u002Fnuxt-auth-schema-storage-required","6.errors\u002Fnuxt-auth-schema-storage-required",{"title":325,"path":326,"stem":327},"Secondary storage in client-only mode","\u002Ferrors\u002Fnuxt-auth-storage-client-only","6.errors\u002Fnuxt-auth-storage-client-only",{"title":329,"path":330,"stem":331},"Unsupported database dialect","\u002Ferrors\u002Fnuxt-auth-unsupported-dialect","6.errors\u002Fnuxt-auth-unsupported-dialect",1796419094128,"cdd3bb99-f88e-4453-a877-e51d39d2345d"]