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