[{"data":1,"prerenderedAt":233},["ShallowReactive",2],{"navigation_docs":3,"-getting-started-schema-generation":129,"-getting-started-schema-generation-surround":228},[4,34,63,80,101,110],{"title":5,"path":6,"stem":7,"children":8,"page":33},"Getting Started","/getting-started","1.getting-started",[9,13,17,21,25,29],{"title":10,"path":11,"stem":12},"Quickstart","/getting-started/quickstart","1.getting-started/0.quickstart",{"title":14,"path":15,"stem":16},"Installation","/getting-started/installation","1.getting-started/1.installation",{"title":18,"path":19,"stem":20},"Server Configuration","/getting-started/configuration","1.getting-started/2.configuration",{"title":22,"path":23,"stem":24},"Client Setup","/getting-started/client-setup","1.getting-started/3.client-setup",{"title":26,"path":27,"stem":28},"Type Augmentation","/getting-started/type-augmentation","1.getting-started/4.type-augmentation",{"title":30,"path":31,"stem":32},"Schema Generation","/getting-started/schema-generation","1.getting-started/5.schema-generation",false,{"title":35,"path":36,"stem":37,"children":38,"page":33},"Core Concepts","/core-concepts","2.core-concepts",[39,43,47,51,55,59],{"title":40,"path":41,"stem":42},"How It Works","/core-concepts/how-it-works","2.core-concepts/0.how-it-works",{"title":44,"path":45,"stem":46},"`serverAuth()`","/core-concepts/server-auth","2.core-concepts/1.server-auth",{"title":48,"path":49,"stem":50},"Sessions","/core-concepts/sessions","2.core-concepts/2.sessions",{"title":52,"path":53,"stem":54},"Route Protection","/core-concepts/route-protection","2.core-concepts/3.route-protection",{"title":56,"path":57,"stem":58},"Auto‑Imports and Aliases","/core-concepts/auto-imports-aliases","2.core-concepts/4.auto-imports-aliases",{"title":60,"path":61,"stem":62},"Security & Caveats","/core-concepts/security-caveats","2.core-concepts/5.security-caveats",{"title":64,"path":65,"stem":66,"children":67,"page":33},"Guides","/guides","3.guides",[68,72,76],{"title":69,"path":70,"stem":71},"Role‑Based Access","/guides/role-based-access","3.guides/1.role-based-access",{"title":73,"path":74,"stem":75},"Protecting API Routes","/guides/api-protection","3.guides/2.api-protection",{"title":77,"path":78,"stem":79},"Database Dialects","/guides/custom-dialects","3.guides/3.custom-dialects",{"title":81,"path":82,"stem":83,"children":84,"page":33},"API Reference","/api","4.api",[85,89,93,97],{"title":86,"path":87,"stem":88},"Composables","/api/composables","4.api/1.composables",{"title":90,"path":91,"stem":92},"Server Utilities","/api/server-utils","4.api/2.server-utils",{"title":94,"path":95,"stem":96},"Components","/api/components","4.api/3.components",{"title":98,"path":99,"stem":100},"Types","/api/types","4.api/4.types",{"title":102,"path":103,"stem":104,"children":105,"page":33},"Troubleshooting","/troubleshooting","5.troubleshooting",[106],{"title":107,"path":108,"stem":109},"FAQ","/troubleshooting/faq","5.troubleshooting/1.faq",{"title":111,"path":112,"stem":113,"children":114},"Better Auth","/better-auth","6.better-auth",[115,117,121,125],{"title":111,"path":112,"stem":116},"6.better-auth/index",{"title":118,"path":119,"stem":120},"OAuth & Social Providers","/better-auth/oauth","6.better-auth/1.oauth",{"title":122,"path":123,"stem":124},"Plugins","/better-auth/plugins","6.better-auth/2.plugins",{"title":126,"path":127,"stem":128},"Client Plugins (Exports)","/better-auth/client-plugins","6.better-auth/3.client-plugins",{"id":130,"title":30,"body":131,"description":221,"extension":222,"links":223,"meta":224,"navigation":225,"path":31,"seo":226,"stem":32,"__hash__":227},"docs/1.getting-started/5.schema-generation.md",{"type":132,"value":133,"toc":215},"minimark",[134,138,169,187,192,204,208],[135,136,137],"p",{},"When Nuxt starts, the module:",[139,140,141,154,160,166],"ol",{},[142,143,144,145,149,150,153],"li",{},"Loads your ",[146,147,148],"code",{},"server/auth.config.ts"," to read ",[146,151,152],{},"plugins",".",[142,155,156,157,153],{},"Calls Better Auth’s ",[146,158,159],{},"getAuthTables({ plugins })",[142,161,162,163,153],{},"Generates a Drizzle schema file into ",[146,164,165],{},".nuxt/better-auth/schema.\u003Cdialect>.ts",[142,167,168],{},"Extends the NuxtHub database schema with those tables.",[135,170,171,172,175,176,179,180,183,184,153],{},"Supported dialects are ",[146,173,174],{},"sqlite",", ",[146,177,178],{},"postgresql",", and ",[146,181,182],{},"mysql",". The dialect is read from ",[146,185,186],{},"hub.db",[188,189,191],"h2",{"id":190},"notes","Notes",[193,194,195,198],"ul",{},[142,196,197],{},"Regeneration happens on server start. Restart dev server after changing plugins.",[142,199,200,201,203],{},"If ",[146,202,186],{}," is not configured, schema generation is skipped (you’ll see a warning).",[188,205,207],{"id":206},"see-also","See also",[193,209,210],{},[142,211,212,213],{},"Better Auth plugins (affects generated tables): ",[146,214,123],{},{"title":216,"searchDepth":217,"depth":217,"links":218},"",2,[219,220],{"id":190,"depth":217,"text":191},{"id":206,"depth":217,"text":207},"Auto-generate Drizzle tables from Better Auth plugins.","md",null,{},true,{"title":30,"description":221},"VDpjS0jga4snXfBoJ1zXBQZcrn6TCVNcUF6ZF4z7DrA",[229,231],{"title":26,"path":27,"stem":28,"description":230,"children":-1},"Extend Better Auth user and session types in your app.",{"title":40,"path":41,"stem":42,"description":232,"children":-1},"What this module wires up for you.",1765664060950]