[{"data":1,"prerenderedAt":375,"buildId":376},["ShallowReactive",2],{"-errors-nuxt-auth-missing-config":3,"-errors-nuxt-auth-missing-config-surround":158,"navigation_docs":169},{"id":4,"title":5,"body":6,"description":147,"extension":148,"links":149,"meta":150,"navigation":152,"path":154,"seo":155,"stem":156,"__hash__":157},"docs\u002F6.errors\u002Fnuxt-auth-missing-config.md","NUXT_AUTH_MISSING_CONFIG: Missing auth configuration",{"type":7,"value":8,"toc":142},"minimark",[9,27,32,36,40,43,46,102,117,121,124,138],[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_MISSING_CONFIG] Missing server\u002Fauth.config.ts\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 module could not find the configured server or client auth file. This can happen after renaming a file, changing auth.serverConfig or auth.clientConfig, or moving configuration into a Nuxt layer. In clientOnly mode, only the client config is required.",[28,37,39],{"id":38},"how-to-fix-it","How to fix it",[33,41,42],{},"Create server\u002Fauth.config.ts with export default defineServerAuth(...).",[33,44,45],{},"For the server configuration in this example, create:",[10,47,52],{"className":48,"code":49,"filename":50,"language":51,"meta":16,"style":16},"language-ts shiki shiki-themes one-light synthwave-84 synthwave-84","import { defineServerAuth } from '@nuxtjs\u002Fbetter-auth\u002Fconfig'\n\nexport default defineServerAuth({})\n","server\u002Fauth.config.ts","ts",[18,53,54,78,85],{"__ignoreMap":16},[21,55,56,60,64,68,71,74],{"class":23,"line":24},[21,57,59],{"class":58},"sqe1H","import",[21,61,63],{"class":62},"s17Py"," { ",[21,65,67],{"class":66},"sYvLG","defineServerAuth",[21,69,70],{"class":62}," } ",[21,72,73],{"class":58},"from",[21,75,77],{"class":76},"sPAZv"," '@nuxtjs\u002Fbetter-auth\u002Fconfig'\n",[21,79,81],{"class":23,"line":80},2,[21,82,84],{"emptyLinePlaceholder":83},true,"\n",[21,86,88,91,95,99],{"class":23,"line":87},3,[21,89,90],{"class":58},"export",[21,92,94],{"class":93},"sKg8T"," default",[21,96,98],{"class":97},"sfT9l"," defineServerAuth",[21,100,101],{"class":62},"({})\n",[33,103,104,105,108,109,112,113,116],{},"If the error names a client file, use ",[18,106,107],{},"defineClientAuth({})"," from the same package export instead. Check any custom ",[18,110,111],{},"auth.serverConfig"," and ",[18,114,115],{},"auth.clientConfig"," paths against the file's actual location.",[28,118,120],{"id":119},"verify-the-fix","Verify the fix",[33,122,123],{},"Run pnpm exec nuxt prepare. The named config should resolve without NUXT_AUTH_MISSING_CONFIG.",[33,125,126,127,132,133,137],{},"See ",[128,129,131],"a",{"href":130},"\u002Fgetting-started\u002Finstallation","Install and configure the module"," or return to the ",[128,134,136],{"href":135},"\u002Ferrors","error reference",".",[139,140,141],"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 .sqe1H, html code.shiki .sqe1H{--shiki-light:#A626A4;--shiki-default:#FEDE5D;--shiki-dark:#FEDE5D}html pre.shiki code .s17Py, html code.shiki .s17Py{--shiki-light:#383A42;--shiki-default:#BBBBBB;--shiki-dark:#BBBBBB}html pre.shiki code .sYvLG, html code.shiki .sYvLG{--shiki-light:#E45649;--shiki-default:#FF7EDB;--shiki-dark:#FF7EDB}html pre.shiki code .sPAZv, html code.shiki .sPAZv{--shiki-light:#50A14F;--shiki-default:#FF8B39;--shiki-dark:#FF8B39}html pre.shiki code .sKg8T, html code.shiki .sKg8T{--shiki-light:#E45649;--shiki-default:#FEDE5D;--shiki-dark:#FEDE5D}html pre.shiki code .sfT9l, html code.shiki .sfT9l{--shiki-light:#4078F2;--shiki-default:#36F9F6;--shiki-dark:#36F9F6}",{"title":16,"searchDepth":80,"depth":80,"links":143},[144,145,146],{"id":30,"depth":80,"text":31},{"id":38,"depth":80,"text":39},{"id":119,"depth":80,"text":120},"Create the server or client auth config file that Nuxt Better Auth could not find.","md",null,{"editPath":151},"diagnostics\u002Fpages.ts",{"title":153},"Missing auth configuration","\u002Ferrors\u002Fnuxt-auth-missing-config",{"title":5,"description":147},"6.errors\u002Fnuxt-auth-missing-config","Y5KqTEnn5G_XOiMbC2CXEa_YfZ9XGqzHKnq9ahCI2mw",[159,164],{"title":160,"path":161,"stem":162,"description":163,"children":-1},"Auth plugin path must be absolute","\u002Ferrors\u002Fnuxt-auth-invalid-plugin-source","6.errors\u002Fnuxt-auth-invalid-plugin-source","Resolve plugin file paths before registering them with better-auth:plugins:extend.",{"title":165,"path":166,"stem":167,"description":168,"children":-1},"NuxtHub database alias is missing","\u002Ferrors\u002Fnuxt-auth-missing-hub-db","6.errors\u002Fnuxt-auth-missing-hub-db","Configure NuxtHub before Nuxt Better Auth so the hub:db alias is available.",[170,207,233,280,305,326],{"title":171,"path":172,"stem":173,"children":174,"icon":177},"Getting Started","\u002Fgetting-started","1.getting-started\u002F0.index",[175,178,182,187,192,197,202],{"title":176,"path":172,"stem":173,"icon":177},"Introduction","i-lucide-sparkles",{"title":179,"path":130,"stem":180,"icon":181},"Installation","1.getting-started\u002F1.installation","i-lucide-download",{"title":183,"path":184,"stem":185,"icon":186},"Configuration","\u002Fgetting-started\u002Fconfiguration","1.getting-started\u002F2.configuration","i-lucide-settings",{"title":188,"path":189,"stem":190,"icon":191},"Client Setup","\u002Fgetting-started\u002Fclient-setup","1.getting-started\u002F3.client-setup","i-lucide-monitor",{"title":193,"path":194,"stem":195,"icon":196},"Type Augmentation","\u002Fgetting-started\u002Ftype-augmentation","1.getting-started\u002F4.type-augmentation","i-lucide-type",{"title":198,"path":199,"stem":200,"icon":201},"Schema Generation (NuxtHub)","\u002Fgetting-started\u002Fschema-generation","1.getting-started\u002F5.schema-generation","i-lucide-database",{"title":203,"path":204,"stem":205,"icon":206},"How It Works","\u002Fgetting-started\u002Fhow-it-works","1.getting-started\u002F6.how-it-works","i-lucide-workflow",{"title":208,"path":209,"stem":210,"children":211,"page":232},"Core Concepts","\u002Fcore-concepts","2.core-concepts",[212,216,220,224,228],{"title":213,"path":214,"stem":215},"serverAuth()","\u002Fcore-concepts\u002Fserver-auth","2.core-concepts\u002F1.server-auth",{"title":217,"path":218,"stem":219},"Sessions","\u002Fcore-concepts\u002Fsessions","2.core-concepts\u002F2.sessions",{"title":221,"path":222,"stem":223},"Route Protection","\u002Fcore-concepts\u002Froute-protection","2.core-concepts\u002F3.route-protection",{"title":225,"path":226,"stem":227},"Auto‑Imports and Aliases","\u002Fcore-concepts\u002Fauto-imports-aliases","2.core-concepts\u002F4.auto-imports-aliases",{"title":229,"path":230,"stem":231},"Security & Caveats","\u002Fcore-concepts\u002Fsecurity-caveats","2.core-concepts\u002F5.security-caveats",false,{"title":234,"path":235,"stem":236,"children":237,"page":232},"Guides","\u002Fguides","3.guides",[238,242,247,251,255,259,264,268,272,276],{"title":239,"path":240,"stem":241},"Role‑Based Access","\u002Fguides\u002Frole-based-access","3.guides\u002F1.role-based-access",{"title":243,"path":244,"stem":245,"icon":246},"Setup diagnostics","\u002Fguides\u002Fdiagnostics","3.guides\u002F10.diagnostics","i-lucide-circle-alert",{"title":248,"path":249,"stem":250},"OAuth Providers","\u002Fguides\u002Foauth-providers","3.guides\u002F2.oauth-providers",{"title":252,"path":253,"stem":254},"Custom Database","\u002Fguides\u002Fcustom-database","3.guides\u002F3.custom-database",{"title":256,"path":257,"stem":258},"Database-less Mode","\u002Fguides\u002Fdatabase-less-mode","3.guides\u002F4.database-less-mode",{"title":260,"path":261,"stem":262,"icon":263},"External Auth Backend","\u002Fguides\u002Fexternal-auth-backend","3.guides\u002F5.external-auth-backend","i-lucide-server",{"title":265,"path":266,"stem":267},"Migrating from nuxt-auth-utils","\u002Fguides\u002Fmigrate-from-nuxt-auth-utils","3.guides\u002F6.migrate-from-nuxt-auth-utils",{"title":269,"path":270,"stem":271},"Two-Factor Authentication (TOTP + Backup Codes)","\u002Fguides\u002Ftwo-factor-auth","3.guides\u002F7.two-factor-auth",{"title":273,"path":274,"stem":275},"Testing","\u002Fguides\u002Ftesting","3.guides\u002F8.testing",{"title":277,"path":278,"stem":279},"Production Deployment","\u002Fguides\u002Fproduction-deployment","3.guides\u002F9.production-deployment",{"title":281,"path":282,"stem":283,"children":284,"page":232},"Integrations","\u002Fintegrations","4.integrations",[285,289,293,297,301],{"title":286,"path":287,"stem":288},"NuxtHub","\u002Fintegrations\u002Fnuxthub","4.integrations\u002F1.nuxthub",{"title":290,"path":291,"stem":292},"DevTools","\u002Fintegrations\u002Fdevtools","4.integrations\u002F2.devtools",{"title":294,"path":295,"stem":296},"Convex","\u002Fintegrations\u002Fconvex","4.integrations\u002F3.convex",{"title":298,"path":299,"stem":300},"i18n","\u002Fintegrations\u002Fi18n","4.integrations\u002F4.i18n",{"title":302,"path":303,"stem":304},"MCP","\u002Fintegrations\u002Fmcp","4.integrations\u002F5.mcp",{"title":306,"path":307,"stem":308,"children":309,"page":232},"API Reference","\u002Fapi","5.api",[310,314,318,322],{"title":311,"path":312,"stem":313},"Composables","\u002Fapi\u002Fcomposables","5.api\u002F1.composables",{"title":315,"path":316,"stem":317},"Server Utilities","\u002Fapi\u002Fserver-utils","5.api\u002F2.server-utils",{"title":319,"path":320,"stem":321},"Components","\u002Fapi\u002Fcomponents","5.api\u002F3.components",{"title":323,"path":324,"stem":325},"Types","\u002Fapi\u002Ftypes","5.api\u002F4.types",{"title":327,"path":135,"stem":328,"children":329,"icon":246},"Errors","6.errors\u002F0.index",[330,332,336,340,344,348,352,353,354,355,359,363,367,371],{"title":331,"path":135,"stem":328},"Overview",{"title":333,"path":334,"stem":335},"Better Auth CLI is not installed","\u002Ferrors\u002Fnuxt-auth-cli-missing","6.errors\u002Fnuxt-auth-cli-missing",{"title":337,"path":338,"stem":339},"Better Auth CLI version does not match better-auth","\u002Ferrors\u002Fnuxt-auth-cli-version-mismatch","6.errors\u002Fnuxt-auth-cli-version-mismatch",{"title":341,"path":342,"stem":343},"Auth configuration failed to load","\u002Ferrors\u002Fnuxt-auth-config-load-failed","6.errors\u002Fnuxt-auth-config-load-failed",{"title":345,"path":346,"stem":347},"Schema generator returned no code","\u002Ferrors\u002Fnuxt-auth-empty-schema","6.errors\u002Fnuxt-auth-empty-schema",{"title":349,"path":350,"stem":351},"Invalid server auth config export","\u002Ferrors\u002Fnuxt-auth-invalid-config-export","6.errors\u002Fnuxt-auth-invalid-config-export",{"title":160,"path":161,"stem":162},{"title":153,"path":154,"stem":156},{"title":165,"path":166,"stem":167},{"title":356,"path":357,"stem":358},"No database provider is enabled","\u002Ferrors\u002Fnuxt-auth-no-database-provider","6.errors\u002Fnuxt-auth-no-database-provider",{"title":360,"path":361,"stem":362},"Auth schema generation failed","\u002Ferrors\u002Fnuxt-auth-schema-generation-failed","6.errors\u002Fnuxt-auth-schema-generation-failed",{"title":364,"path":365,"stem":366},"Custom session storage is missing","\u002Ferrors\u002Fnuxt-auth-schema-storage-required","6.errors\u002Fnuxt-auth-schema-storage-required",{"title":368,"path":369,"stem":370},"Secondary storage in client-only mode","\u002Ferrors\u002Fnuxt-auth-storage-client-only","6.errors\u002Fnuxt-auth-storage-client-only",{"title":372,"path":373,"stem":374},"Unsupported database dialect","\u002Ferrors\u002Fnuxt-auth-unsupported-dialect","6.errors\u002Fnuxt-auth-unsupported-dialect",1796449720379,"8d2fc552-cc21-4928-bb35-8b5f7c591ad3"]