[{"data":1,"prerenderedAt":250},["ShallowReactive",2],{"navigation_docs":3,"landing":152,"mdc-6174vc-key":175,"mdc--y6mjk6-key":200,"mdc--l9r3ar-key":216,"mdc-m0oe9z-key":232},[4,42,68,110,131],{"title":5,"path":6,"stem":7,"children":8,"icon":11},"Getting Started","/getting-started","1.getting-started/0.index",[9,12,17,22,27,32,37],{"title":10,"path":6,"stem":7,"icon":11},"Introduction","i-lucide-sparkles",{"title":13,"path":14,"stem":15,"icon":16},"Installation","/getting-started/installation","1.getting-started/1.installation","i-lucide-download",{"title":18,"path":19,"stem":20,"icon":21},"Configuration","/getting-started/configuration","1.getting-started/2.configuration","i-lucide-settings",{"title":23,"path":24,"stem":25,"icon":26},"Client Setup","/getting-started/client-setup","1.getting-started/3.client-setup","i-lucide-monitor",{"title":28,"path":29,"stem":30,"icon":31},"Type Augmentation","/getting-started/type-augmentation","1.getting-started/4.type-augmentation","i-lucide-type",{"title":33,"path":34,"stem":35,"icon":36},"Schema Generation (NuxtHub)","/getting-started/schema-generation","1.getting-started/5.schema-generation","i-lucide-database",{"title":38,"path":39,"stem":40,"icon":41},"How It Works","/getting-started/how-it-works","1.getting-started/6.how-it-works","i-lucide-workflow",{"title":43,"path":44,"stem":45,"children":46,"page":67},"Core Concepts","/core-concepts","2.core-concepts",[47,51,55,59,63],{"title":48,"path":49,"stem":50},"serverAuth()","/core-concepts/server-auth","2.core-concepts/1.server-auth",{"title":52,"path":53,"stem":54},"Sessions","/core-concepts/sessions","2.core-concepts/2.sessions",{"title":56,"path":57,"stem":58},"Route Protection","/core-concepts/route-protection","2.core-concepts/3.route-protection",{"title":60,"path":61,"stem":62},"Auto‑Imports and Aliases","/core-concepts/auto-imports-aliases","2.core-concepts/4.auto-imports-aliases",{"title":64,"path":65,"stem":66},"Security & Caveats","/core-concepts/security-caveats","2.core-concepts/5.security-caveats",false,{"title":69,"path":70,"stem":71,"children":72,"page":67},"Guides","/guides","3.guides",[73,77,81,85,89,94,98,102,106],{"title":74,"path":75,"stem":76},"Role‑Based Access","/guides/role-based-access","3.guides/1.role-based-access",{"title":78,"path":79,"stem":80},"OAuth Providers","/guides/oauth-providers","3.guides/2.oauth-providers",{"title":82,"path":83,"stem":84},"Custom Database","/guides/custom-database","3.guides/3.custom-database",{"title":86,"path":87,"stem":88},"Database-less Mode","/guides/database-less-mode","3.guides/4.database-less-mode",{"title":90,"path":91,"stem":92,"icon":93},"External Auth Backend","/guides/external-auth-backend","3.guides/5.external-auth-backend","i-lucide-server",{"title":95,"path":96,"stem":97},"Migrating from nuxt-auth-utils","/guides/migrate-from-nuxt-auth-utils","3.guides/6.migrate-from-nuxt-auth-utils",{"title":99,"path":100,"stem":101},"Two-Factor Authentication (TOTP + Backup Codes)","/guides/two-factor-auth","3.guides/7.two-factor-auth",{"title":103,"path":104,"stem":105},"Testing","/guides/testing","3.guides/8.testing",{"title":107,"path":108,"stem":109},"Production Deployment","/guides/production-deployment","3.guides/9.production-deployment",{"title":111,"path":112,"stem":113,"children":114,"page":67},"Integrations","/integrations","4.integrations",[115,119,123,127],{"title":116,"path":117,"stem":118},"NuxtHub","/integrations/nuxthub","4.integrations/1.nuxthub",{"title":120,"path":121,"stem":122},"DevTools","/integrations/devtools","4.integrations/2.devtools",{"title":124,"path":125,"stem":126},"Convex","/integrations/convex","4.integrations/3.convex",{"title":128,"path":129,"stem":130},"i18n","/integrations/i18n","4.integrations/4.i18n",{"title":132,"path":133,"stem":134,"children":135,"page":67},"API Reference","/api","5.api",[136,140,144,148],{"title":137,"path":138,"stem":139},"Composables","/api/composables","5.api/1.composables",{"title":141,"path":142,"stem":143},"Server Utilities","/api/server-utils","5.api/2.server-utils",{"title":145,"path":146,"stem":147},"Components","/api/components","5.api/3.components",{"title":149,"path":150,"stem":151},"Types","/api/types","5.api/4.types",{"id":153,"title":154,"body":155,"description":168,"extension":169,"meta":170,"navigation":67,"path":171,"seo":172,"stem":173,"__hash__":174},"landing/index.md","Nuxt Better Auth",{"type":156,"value":157,"toc":164},"minimark",[158,161],[159,160],"landing-hero",{},[162,163],"landing-features",{},{"title":165,"searchDepth":166,"depth":166,"links":167},"",2,[],"Seamless Better Auth integration for Nuxt with automatic route protection, session management, and role-based access control.","md",{},"/",{"title":154,"description":168},"index","BOiChxlw-Lw74zbrpy8m6YFCe1TjtGMYgHxnBUueruE",{"data":176,"body":177},{},{"type":178,"children":179},"root",[180,195],{"type":181,"tag":182,"props":183,"children":188},"element","pre",{"className":184,"code":185,"language":186,"meta":165,"style":187},"language-ts","export default defineNuxtConfig({\n  modules: ['@onmax/nuxt-better-auth'],\n  routeRules: {\n    '/dashboard/**': { auth: 'user' },\n    '/admin/**': { auth: 'admin' },\n  },\n})\n","ts","undefined",[189],{"type":181,"tag":190,"props":191,"children":192},"code",{"__ignoreMap":165},[193],{"type":194,"value":185},"text",{"type":181,"tag":196,"props":197,"children":198},"style",{},[199],{"type":194,"value":165},{"data":201,"body":202},{},{"type":178,"children":203},[204,212],{"type":181,"tag":182,"props":205,"children":207},{"className":184,"code":206,"language":186,"meta":165,"style":187},"import { defineServerAuth } from '@onmax/nuxt-better-auth/config'\nimport { admin, twoFactor } from 'better-auth/plugins'\n\nexport default defineServerAuth({\n  socialProviders: {\n    github: { clientId: '...', clientSecret: '...' },\n    google: { clientId: '...', clientSecret: '...' },\n  },\n  plugins: [admin(), twoFactor()],\n})\n",[208],{"type":181,"tag":190,"props":209,"children":210},{"__ignoreMap":165},[211],{"type":194,"value":206},{"type":181,"tag":196,"props":213,"children":214},{},[215],{"type":194,"value":165},{"data":217,"body":218},{},{"type":178,"children":219},[220,228],{"type":181,"tag":182,"props":221,"children":223},{"className":184,"code":222,"language":186,"meta":165,"style":187},"import { defineClientAuth } from '@onmax/nuxt-better-auth/config'\nimport { adminClient, twoFactorClient } from 'better-auth/client/plugins'\n\nexport default defineClientAuth({\n  plugins: [adminClient(), twoFactorClient()],\n})\n",[224],{"type":181,"tag":190,"props":225,"children":226},{"__ignoreMap":165},[227],{"type":194,"value":222},{"type":181,"tag":196,"props":229,"children":230},{},[231],{"type":194,"value":165},{"data":233,"body":234},{},{"type":178,"children":235},[236,246],{"type":181,"tag":182,"props":237,"children":241},{"className":238,"code":239,"language":240,"meta":165,"style":187},"language-vue","\u003Cscript setup lang=\"ts\">\nconst { signIn } = useUserSession()\n\u003C/script>\n\n\u003Ctemplate>\n  \u003Cbutton @click=\"signIn.social({ provider: 'github' })\">\n    Sign in with GitHub\n  \u003C/button>\n\u003C/template>\n","vue",[242],{"type":181,"tag":190,"props":243,"children":244},{"__ignoreMap":165},[245],{"type":194,"value":239},{"type":181,"tag":196,"props":247,"children":248},{},[249],{"type":194,"value":165},1775080607688]