[{"data":1,"prerenderedAt":1674},["ShallowReactive",2],{"docs-navigation:en":3,"content-page:docs:67TQe4tm6V2XAzH_f9sN2NO_TKIfSNktjlWqYabVqPs":595,"content-page-surround:docs:67TQe4tm6V2XAzH_f9sN2NO_TKIfSNktjlWqYabVqPs":1662,"i-logos:typescript-icon":1667,"i-lucide:clipboard":1671},[4,55,123,191,450,509,554,590],{"title":5,"page":6,"canonicalKey":7,"locale":8,"id":9,"draft":6,"icon":10,"sidebar":11,"children":12},"Learn",false,"1","en","content:docs:1.overview:.navigation.yml","i-lucide-book-open","section",[13,20,27,34,41,48],{"title":14,"id":15,"canonicalKey":16,"locale":8,"draft":6,"navigation":17,"icon":18,"path":19},"Better Convex Nuxt","content:docs:1.overview:1.introduction.md","1\u002F1",{"icon":18},"i-lucide-orbit","\u002Fdocs\u002Foverview\u002Fintroduction",{"title":21,"id":22,"canonicalKey":23,"locale":8,"draft":6,"navigation":24,"icon":25,"path":26},"Why Better Convex Nuxt","content:docs:1.overview:2.why-better-convex-nuxt.md","1\u002F2",{"icon":25},"i-lucide-badge-check","\u002Fdocs\u002Foverview\u002Fwhy-better-convex-nuxt",{"title":28,"id":29,"canonicalKey":30,"locale":8,"draft":6,"navigation":31,"icon":32,"path":33},"Who It Is For","content:docs:1.overview:3.who-it-is-for.md","1\u002F3",{"icon":32},"i-lucide-users","\u002Fdocs\u002Foverview\u002Fwho-it-is-for",{"title":35,"id":36,"canonicalKey":37,"locale":8,"draft":6,"navigation":38,"icon":39,"path":40},"Use Cases","content:docs:1.overview:4.use-cases.md","1\u002F4",{"icon":39},"i-lucide-layout-dashboard","\u002Fdocs\u002Foverview\u002Fuse-cases",{"title":42,"id":43,"canonicalKey":44,"locale":8,"draft":6,"navigation":45,"icon":46,"path":47},"Compare Nuxt Integrations","content:docs:1.overview:5.comparison.md","1\u002F5",{"icon":46},"i-lucide-scale","\u002Fdocs\u002Foverview\u002Fcomparison",{"title":49,"id":50,"canonicalKey":51,"locale":8,"draft":6,"navigation":52,"icon":53,"path":54},"Limitations and Trade-offs","content:docs:1.overview:6.limitations.md","1\u002F6",{"icon":53},"i-lucide-triangle-alert","\u002Fdocs\u002Foverview\u002Flimitations",{"title":56,"page":6,"canonicalKey":57,"locale":8,"id":58,"draft":6,"icon":59,"children":60},"Understand","2","content:docs:2.understand:.navigation.yml","i-lucide-brain",[61,67,74,81,88,95,102,109,116],{"title":62,"id":63,"canonicalKey":64,"locale":8,"draft":6,"navigation":65,"icon":59,"path":66},"Mental Model","content:docs:2.understand:1.mental-model.md","2\u002F1",{"icon":59},"\u002Fdocs\u002Funderstand\u002Fmental-model",{"title":68,"id":69,"canonicalKey":70,"locale":8,"draft":6,"navigation":71,"icon":72,"path":73},"Request Lifecycle","content:docs:2.understand:2.request-lifecycle.md","2\u002F2",{"icon":72},"i-lucide-route","\u002Fdocs\u002Funderstand\u002Frequest-lifecycle",{"title":75,"id":76,"canonicalKey":77,"locale":8,"draft":6,"navigation":78,"icon":79,"path":80},"SSR, Hydration, and Real-Time","content:docs:2.understand:3.ssr-hydration-realtime.md","2\u002F3",{"icon":79},"i-lucide-refresh-cw","\u002Fdocs\u002Funderstand\u002Fssr-hydration-realtime",{"title":82,"id":83,"canonicalKey":84,"locale":8,"draft":6,"navigation":85,"icon":86,"path":87},"Query Ownership and Caching","content:docs:2.understand:4.query-ownership-and-caching.md","2\u002F4",{"icon":86},"i-lucide-database","\u002Fdocs\u002Funderstand\u002Fquery-ownership-and-caching",{"title":89,"id":90,"canonicalKey":91,"locale":8,"draft":6,"navigation":92,"icon":93,"path":94},"Authentication and Identity","content:docs:2.understand:5.authentication-and-identity.md","2\u002F5",{"icon":93},"i-lucide-fingerprint","\u002Fdocs\u002Funderstand\u002Fauthentication-and-identity",{"title":96,"id":97,"canonicalKey":98,"locale":8,"draft":6,"navigation":99,"icon":100,"path":101},"Server and Client Boundaries","content:docs:2.understand:6.server-and-client-boundaries.md","2\u002F6",{"icon":100},"i-lucide-panels-top-left","\u002Fdocs\u002Funderstand\u002Fserver-and-client-boundaries",{"title":103,"id":104,"canonicalKey":105,"locale":8,"draft":6,"navigation":106,"icon":107,"path":108},"Errors and Failures","content:docs:2.understand:7.errors-and-failures.md","2\u002F7",{"icon":107},"i-lucide-circle-x","\u002Fdocs\u002Funderstand\u002Ferrors-and-failures",{"title":110,"id":111,"canonicalKey":112,"locale":8,"draft":6,"navigation":113,"icon":114,"path":115},"Design Decisions","content:docs:2.understand:8.design-decisions.md","2\u002F8",{"icon":114},"i-lucide-git-branch","\u002Fdocs\u002Funderstand\u002Fdesign-decisions",{"title":117,"id":118,"canonicalKey":119,"locale":8,"draft":6,"navigation":120,"icon":121,"path":122},"Glossary","content:docs:2.understand:9.glossary.md","2\u002F9",{"icon":121},"i-lucide-book-a","\u002Fdocs\u002Funderstand\u002Fglossary",{"title":124,"page":6,"canonicalKey":125,"locale":8,"id":126,"draft":6,"icon":127,"children":128},"Get Started","3","content:docs:3.get-started:.navigation.yml","i-lucide-rocket",[129,136,143,150,157,164,171,178,185],{"title":130,"id":131,"canonicalKey":132,"locale":8,"draft":6,"navigation":133,"icon":134,"path":135},"Choose Your Path","content:docs:3.get-started:1.choose-your-path.md","3\u002F1",{"icon":134},"i-lucide-signpost","\u002Fdocs\u002Fget-started\u002Fchoose-your-path",{"title":137,"id":138,"canonicalKey":139,"locale":8,"draft":6,"navigation":140,"icon":141,"path":142},"Installation","content:docs:3.get-started:2.installation.md","3\u002F2",{"icon":141},"i-lucide-download","\u002Fdocs\u002Fget-started\u002Finstallation",{"title":144,"id":145,"canonicalKey":146,"locale":8,"draft":6,"navigation":147,"icon":148,"path":149},"First Real-Time Page","content:docs:3.get-started:3.first-realtime-page.md","3\u002F3",{"icon":148},"i-lucide-radio","\u002Fdocs\u002Fget-started\u002Ffirst-realtime-page",{"title":151,"id":152,"canonicalKey":153,"locale":8,"draft":6,"navigation":154,"icon":155,"path":156},"Add a Mutation","content:docs:3.get-started:4.add-a-mutation.md","3\u002F4",{"icon":155},"i-lucide-square-pen","\u002Fdocs\u002Fget-started\u002Fadd-a-mutation",{"title":158,"id":159,"canonicalKey":160,"locale":8,"draft":6,"navigation":161,"icon":162,"path":163},"Add Authentication","content:docs:3.get-started:5.add-authentication.md","3\u002F5",{"icon":162},"i-lucide-log-in","\u002Fdocs\u002Fget-started\u002Fadd-authentication",{"title":165,"id":166,"canonicalKey":167,"locale":8,"draft":6,"navigation":168,"icon":169,"path":170},"Protect Data","content:docs:3.get-started:6.protect-data.md","3\u002F6",{"icon":169},"i-lucide-shield-check","\u002Fdocs\u002Fget-started\u002Fprotect-data",{"title":172,"id":173,"canonicalKey":174,"locale":8,"draft":6,"navigation":175,"icon":176,"path":177},"Project Structure","content:docs:3.get-started:7.project-structure.md","3\u002F7",{"icon":176},"i-lucide-folder-tree","\u002Fdocs\u002Fget-started\u002Fproject-structure",{"title":179,"id":180,"canonicalKey":181,"locale":8,"draft":6,"navigation":182,"icon":183,"path":184},"Next Steps","content:docs:3.get-started:8.next-steps.md","3\u002F8",{"icon":183},"i-lucide-arrow-right","\u002Fdocs\u002Fget-started\u002Fnext-steps",{"title":186,"id":187,"canonicalKey":188,"locale":8,"draft":6,"navigation":189,"icon":100,"path":190},"Plain Vue and Vite","content:docs:3.get-started:9.plain-vue.md","3\u002F9",{"icon":100},"\u002Fdocs\u002Fget-started\u002Fplain-vue",{"title":192,"page":6,"canonicalKey":193,"locale":8,"id":194,"draft":6,"icon":195,"sidebar":11,"children":196},"Build","4","content:docs:4.build:.navigation.yml","i-lucide-blocks",[197,234,265,336,368,393,432],{"title":198,"page":6,"canonicalKey":199,"locale":8,"children":200},"Queries","4\u002F1",[201,206,213,220,227],{"title":198,"id":202,"canonicalKey":203,"locale":8,"draft":6,"navigation":204,"icon":86,"path":205},"content:docs:4.build:1.queries:1.queries.md","4\u002F1\u002F1",{"icon":86},"\u002Fdocs\u002Fbuild\u002Fqueries\u002Fqueries",{"title":207,"id":208,"canonicalKey":209,"locale":8,"draft":6,"navigation":210,"icon":211,"path":212},"Reactive Arguments","content:docs:4.build:1.queries:2.reactive-arguments.md","4\u002F1\u002F2",{"icon":211},"i-lucide-sliders-horizontal","\u002Fdocs\u002Fbuild\u002Fqueries\u002Freactive-arguments",{"title":214,"id":215,"canonicalKey":216,"locale":8,"draft":6,"navigation":217,"icon":218,"path":219},"Loading and Stale Data","content:docs:4.build:1.queries:3.loading-and-stale-data.md","4\u002F1\u002F3",{"icon":218},"i-lucide-loader-circle","\u002Fdocs\u002Fbuild\u002Fqueries\u002Floading-and-stale-data",{"title":221,"id":222,"canonicalKey":223,"locale":8,"draft":6,"navigation":224,"icon":225,"path":226},"Query Execution Options","content:docs:4.build:1.queries:4.ssr-options.md","4\u002F1\u002F4",{"icon":225},"i-lucide-server-cog","\u002Fdocs\u002Fbuild\u002Fqueries\u002Fssr-options",{"title":228,"id":229,"canonicalKey":230,"locale":8,"draft":6,"navigation":231,"icon":232,"path":233},"Pagination","content:docs:4.build:1.queries:6.pagination.md","4\u002F1\u002F6",{"icon":232},"i-lucide-list-plus","\u002Fdocs\u002Fbuild\u002Fqueries\u002Fpagination",{"title":235,"page":6,"canonicalKey":236,"locale":8,"children":237},"Write Data","4\u002F2",[238,244,251,258],{"title":239,"id":240,"canonicalKey":241,"locale":8,"draft":6,"navigation":242,"icon":155,"path":243},"Mutations","content:docs:4.build:2.write-data:1.mutations.md","4\u002F2\u002F1",{"icon":155},"\u002Fdocs\u002Fbuild\u002Fwrite-data\u002Fmutations",{"title":245,"id":246,"canonicalKey":247,"locale":8,"draft":6,"navigation":248,"icon":249,"path":250},"Actions","content:docs:4.build:2.write-data:2.actions.md","4\u002F2\u002F2",{"icon":249},"i-lucide-zap","\u002Fdocs\u002Fbuild\u002Fwrite-data\u002Factions",{"title":252,"id":253,"canonicalKey":254,"locale":8,"draft":6,"navigation":255,"icon":256,"path":257},"Optimistic Updates","content:docs:4.build:2.write-data:3.optimistic-updates.md","4\u002F2\u002F3",{"icon":256},"i-lucide-gauge","\u002Fdocs\u002Fbuild\u002Fwrite-data\u002Foptimistic-updates",{"title":259,"id":260,"canonicalKey":261,"locale":8,"draft":6,"navigation":262,"icon":263,"path":264},"Concurrent Operations","content:docs:4.build:2.write-data:4.concurrent-operations.md","4\u002F2\u002F4",{"icon":263},"i-lucide-git-fork","\u002Fdocs\u002Fbuild\u002Fwrite-data\u002Fconcurrent-operations",{"title":266,"page":6,"canonicalKey":267,"locale":8,"children":268},"Authentication","4\u002F3",[269,275,282,289,295,301,308,315,322,329],{"title":266,"id":270,"canonicalKey":271,"locale":8,"draft":6,"navigation":272,"icon":273,"path":274},"content:docs:4.build:3.authentication:1.overview.md","4\u002F3\u002F1",{"icon":273},"i-lucide-shield","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Foverview",{"title":276,"id":277,"canonicalKey":278,"locale":8,"draft":6,"navigation":279,"icon":280,"path":281},"Better Auth Setup","content:docs:4.build:3.authentication:2.better-auth-setup.md","4\u002F3\u002F2",{"icon":280},"i-lucide-settings-2","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fbetter-auth-setup",{"title":283,"id":284,"canonicalKey":285,"locale":8,"draft":6,"navigation":286,"icon":287,"path":288},"Auth State and User Data","content:docs:4.build:3.authentication:3.auth-state-and-user.md","4\u002F3\u002F3",{"icon":287},"i-lucide-user-round","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fauth-state-and-user",{"title":290,"id":291,"canonicalKey":292,"locale":8,"draft":6,"navigation":293,"icon":162,"path":294},"Sign In and Sign Out","content:docs:4.build:3.authentication:4.sign-in-and-sign-out.md","4\u002F3\u002F4",{"icon":162},"\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fsign-in-and-sign-out",{"title":296,"id":297,"canonicalKey":298,"locale":8,"draft":6,"navigation":299,"icon":72,"path":300},"Route Protection","content:docs:4.build:3.authentication:5.route-protection.md","4\u002F3\u002F5",{"icon":72},"\u002Fdocs\u002Fbuild\u002Fauthentication\u002Froute-protection",{"title":302,"id":303,"canonicalKey":304,"locale":8,"draft":6,"navigation":305,"icon":306,"path":307},"Backend Authorization","content:docs:4.build:3.authentication:6.backend-authorization.md","4\u002F3\u002F6",{"icon":306},"i-lucide-lock-keyhole","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fbackend-authorization",{"title":309,"id":310,"canonicalKey":311,"locale":8,"draft":6,"navigation":312,"icon":313,"path":314},"Better Auth Plugins","content:docs:4.build:3.authentication:7.better-auth-plugins.md","4\u002F3\u002F7",{"icon":313},"i-lucide-plug","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fbetter-auth-plugins",{"title":316,"id":317,"canonicalKey":318,"locale":8,"draft":6,"navigation":319,"icon":320,"path":321},"Custom User Fields","content:docs:4.build:3.authentication:8.custom-user-fields.md","4\u002F3\u002F8",{"icon":320},"i-lucide-user-cog","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fcustom-user-fields",{"title":323,"id":324,"canonicalKey":325,"locale":8,"draft":6,"navigation":326,"icon":327,"path":328},"User Synchronization","content:docs:4.build:3.authentication:9.user-synchronization.md","4\u002F3\u002F9",{"icon":327},"i-lucide-refresh-ccw","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fuser-synchronization",{"title":330,"id":331,"canonicalKey":332,"locale":8,"draft":6,"navigation":333,"icon":334,"path":335},"Delegated OAuth and MCP","content:docs:4.build:3.authentication:10.delegated-oauth-and-mcp.md","4\u002F3\u002F10",{"icon":334},"i-lucide-bot","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fdelegated-oauth-and-mcp",{"title":337,"page":6,"canonicalKey":338,"locale":8,"children":339},"Server","4\u002F4",[340,347,354,361],{"title":341,"id":342,"canonicalKey":343,"locale":8,"draft":6,"navigation":344,"icon":345,"path":346},"serverConvex","content:docs:4.build:4.server:1.server-convex.md","4\u002F4\u002F1",{"icon":345},"i-lucide-server","\u002Fdocs\u002Fbuild\u002Fserver\u002Fserver-convex",{"title":348,"id":349,"canonicalKey":350,"locale":8,"draft":6,"navigation":351,"icon":352,"path":353},"Server Routes","content:docs:4.build:4.server:2.server-routes.md","4\u002F4\u002F2",{"icon":352},"i-lucide-waypoints","\u002Fdocs\u002Fbuild\u002Fserver\u002Fserver-routes",{"title":355,"id":356,"canonicalKey":357,"locale":8,"draft":6,"navigation":358,"icon":359,"path":360},"Webhooks and Jobs","content:docs:4.build:4.server:3.webhooks-and-jobs.md","4\u002F4\u002F3",{"icon":359},"i-lucide-webhook","\u002Fdocs\u002Fbuild\u002Fserver\u002Fwebhooks-and-jobs",{"title":362,"id":363,"canonicalKey":364,"locale":8,"draft":6,"navigation":365,"icon":366,"path":367},"Credentials and Server Security","content:docs:4.build:4.server:4.credentials-and-security.md","4\u002F4\u002F4",{"icon":366},"i-lucide-key-round","\u002Fdocs\u002Fbuild\u002Fserver\u002Fcredentials-and-security",{"title":369,"page":6,"canonicalKey":370,"locale":8,"children":371},"Files","4\u002F5",[372,379,386],{"title":373,"id":374,"canonicalKey":375,"locale":8,"draft":6,"navigation":376,"icon":377,"path":378},"Upload Files","content:docs:4.build:5.files:1.upload-files.md","4\u002F5\u002F1",{"icon":377},"i-lucide-upload","\u002Fdocs\u002Fbuild\u002Ffiles\u002Fupload-files",{"title":380,"id":381,"canonicalKey":382,"locale":8,"draft":6,"navigation":383,"icon":384,"path":385},"Storage URLs","content:docs:4.build:5.files:3.storage-urls.md","4\u002F5\u002F3",{"icon":384},"i-lucide-link","\u002Fdocs\u002Fbuild\u002Ffiles\u002Fstorage-urls",{"title":387,"id":388,"canonicalKey":389,"locale":8,"draft":6,"navigation":390,"icon":391,"path":392},"File Validation and Deletion","content:docs:4.build:5.files:4.validation-and-deletion.md","4\u002F5\u002F4",{"icon":391},"i-lucide-file-x","\u002Fdocs\u002Fbuild\u002Ffiles\u002Fvalidation-and-deletion",{"title":394,"page":6,"canonicalKey":395,"locale":8,"children":396},"Application Behavior","4\u002F6",[397,404,411,418,425],{"title":398,"id":399,"canonicalKey":400,"locale":8,"draft":6,"navigation":401,"icon":402,"path":403},"Connection State","content:docs:4.build:6.application-behavior:1.connection-state.md","4\u002F6\u002F1",{"icon":402},"i-lucide-wifi","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Fconnection-state",{"title":405,"id":406,"canonicalKey":407,"locale":8,"draft":6,"navigation":408,"icon":409,"path":410},"Error Handling","content:docs:4.build:6.application-behavior:2.error-handling.md","4\u002F6\u002F2",{"icon":409},"i-lucide-circle-alert","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Ferror-handling",{"title":412,"id":413,"canonicalKey":414,"locale":8,"draft":6,"navigation":415,"icon":416,"path":417},"Logging","content:docs:4.build:6.application-behavior:3.logging.md","4\u002F6\u002F3",{"icon":416},"i-lucide-scroll-text","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Flogging",{"title":419,"id":420,"canonicalKey":421,"locale":8,"draft":6,"navigation":422,"icon":423,"path":424},"DevTools","content:docs:4.build:6.application-behavior:4.devtools.md","4\u002F6\u002F4",{"icon":423},"i-lucide-wrench","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Fdevtools",{"title":426,"id":427,"canonicalKey":428,"locale":8,"draft":6,"navigation":429,"icon":430,"path":431},"Performance","content:docs:4.build:6.application-behavior:5.performance.md","4\u002F6\u002F5",{"icon":430},"i-lucide-chart-no-axes-combined","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Fperformance",{"title":433,"page":6,"canonicalKey":434,"locale":8,"id":435,"draft":6,"icon":334,"children":436},"Agents and MCP","4\u002F7","content:docs:4.build:7.agents:.navigation.yml",[437,444],{"title":438,"id":439,"canonicalKey":440,"locale":8,"draft":6,"navigation":441,"icon":442,"path":443},"MCP on Convex","content:docs:4.build:7.agents:1.mcp.md","4\u002F7\u002F1",{"icon":442},"i-lucide-plug-zap","\u002Fdocs\u002Fbuild\u002Fagents\u002Fmcp",{"title":445,"id":446,"canonicalKey":447,"locale":8,"draft":6,"navigation":448,"icon":100,"path":449},"Vue MCP Apps","content:docs:4.build:7.agents:2.mcp-apps.md","4\u002F7\u002F2",{"icon":100},"\u002Fdocs\u002Fbuild\u002Fagents\u002Fmcp-apps",{"title":451,"page":6,"canonicalKey":452,"locale":8,"id":453,"draft":6,"icon":454,"children":455},"Recipes","5","content:docs:5.recipes:.navigation.yml","i-lucide-cooking-pot",[456,462,469,476,483,490,497,503],{"title":457,"id":458,"canonicalKey":459,"locale":8,"draft":6,"navigation":460,"icon":39,"path":461},"Protected Dashboard","content:docs:5.recipes:1.protected-dashboard.md","5\u002F1",{"icon":39},"\u002Fdocs\u002Frecipes\u002Fprotected-dashboard",{"title":463,"id":464,"canonicalKey":465,"locale":8,"draft":6,"navigation":466,"icon":467,"path":468},"Real-Time Feed","content:docs:5.recipes:2.realtime-feed.md","5\u002F2",{"icon":467},"i-lucide-messages-square","\u002Fdocs\u002Frecipes\u002Frealtime-feed",{"title":470,"id":471,"canonicalKey":472,"locale":8,"draft":6,"navigation":473,"icon":474,"path":475},"Optimistic Todo List","content:docs:5.recipes:3.optimistic-todo-list.md","5\u002F3",{"icon":474},"i-lucide-list-todo","\u002Fdocs\u002Frecipes\u002Foptimistic-todo-list",{"title":477,"id":478,"canonicalKey":479,"locale":8,"draft":6,"navigation":480,"icon":481,"path":482},"Infinite Scroll","content:docs:5.recipes:4.infinite-scroll.md","5\u002F4",{"icon":481},"i-lucide-mouse","\u002Fdocs\u002Frecipes\u002Finfinite-scroll",{"title":484,"id":485,"canonicalKey":486,"locale":8,"draft":6,"navigation":487,"icon":488,"path":489},"File Upload Form","content:docs:5.recipes:5.file-upload-form.md","5\u002F5",{"icon":488},"i-lucide-file-up","\u002Fdocs\u002Frecipes\u002Ffile-upload-form",{"title":491,"id":492,"canonicalKey":493,"locale":8,"draft":6,"navigation":494,"icon":495,"path":496},"Organization Permissions","content:docs:5.recipes:6.organization-permissions.md","5\u002F6",{"icon":495},"i-lucide-building-2","\u002Fdocs\u002Frecipes\u002Forganization-permissions",{"title":498,"id":499,"canonicalKey":500,"locale":8,"draft":6,"navigation":501,"icon":345,"path":502},"Authenticated Server Route","content:docs:5.recipes:7.authenticated-server-route.md","5\u002F7",{"icon":345},"\u002Fdocs\u002Frecipes\u002Fauthenticated-server-route",{"title":504,"id":505,"canonicalKey":506,"locale":8,"draft":6,"navigation":507,"icon":100,"path":508},"Public and Private Data","content:docs:5.recipes:8.public-and-private-data.md","5\u002F8",{"icon":100},"\u002Fdocs\u002Frecipes\u002Fpublic-and-private-data",{"title":510,"page":6,"canonicalKey":511,"locale":8,"id":512,"draft":6,"icon":513,"children":514},"Reference","6","content:docs:6.reference:.navigation.yml","i-lucide-braces",[515,521,527,533,540,547],{"title":516,"id":517,"canonicalKey":518,"locale":8,"draft":6,"navigation":519,"icon":513,"path":520},"Composables","content:docs:6.reference:1.composables.md","6\u002F1",{"icon":513},"\u002Fdocs\u002Freference\u002Fcomposables",{"title":522,"id":523,"canonicalKey":524,"locale":8,"draft":6,"navigation":525,"icon":345,"path":526},"Server API","content:docs:6.reference:3.server-api.md","6\u002F3",{"icon":345},"\u002Fdocs\u002Freference\u002Fserver-api",{"title":528,"id":529,"canonicalKey":530,"locale":8,"draft":6,"navigation":531,"icon":107,"path":532},"Error Types","content:docs:6.reference:4.error-types.md","6\u002F4",{"icon":107},"\u002Fdocs\u002Freference\u002Ferror-types",{"title":534,"id":535,"canonicalKey":536,"locale":8,"draft":6,"navigation":537,"icon":538,"path":539},"Module Configuration","content:docs:6.reference:5.module-configuration.md","6\u002F5",{"icon":538},"i-lucide-settings","\u002Fdocs\u002Freference\u002Fmodule-configuration",{"title":541,"id":542,"canonicalKey":543,"locale":8,"draft":6,"navigation":544,"icon":545,"path":546},"Package Exports","content:docs:6.reference:6.package-exports.md","6\u002F6",{"icon":545},"i-lucide-package-open","\u002Fdocs\u002Freference\u002Fpackage-exports",{"title":548,"id":549,"canonicalKey":550,"locale":8,"draft":6,"navigation":551,"icon":552,"path":553},"API Surface","content:docs:6.reference:7.api-surface.md","6\u002F7",{"icon":552},"i-lucide-list","\u002Fdocs\u002Freference\u002Fapi-surface",{"title":555,"page":6,"canonicalKey":556,"locale":8,"id":557,"draft":6,"icon":280,"children":558},"Operations","7","content:docs:7.operations:.navigation.yml",[559,566,572,578,584],{"title":560,"id":561,"canonicalKey":562,"locale":8,"draft":6,"navigation":563,"icon":564,"path":565},"Environment Variables","content:docs:7.operations:1.environment-variables.md","7\u002F1",{"icon":564},"i-lucide-variable","\u002Fdocs\u002Foperations\u002Fenvironment-variables",{"title":567,"id":568,"canonicalKey":569,"locale":8,"draft":6,"navigation":570,"icon":127,"path":571},"Deployment","content:docs:7.operations:2.deployment.md","7\u002F2",{"icon":127},"\u002Fdocs\u002Foperations\u002Fdeployment",{"title":573,"id":574,"canonicalKey":575,"locale":8,"draft":6,"navigation":576,"icon":169,"path":577},"Security Model","content:docs:7.operations:3.security-model.md","7\u002F3",{"icon":169},"\u002Fdocs\u002Foperations\u002Fsecurity-model",{"title":579,"id":580,"canonicalKey":581,"locale":8,"draft":6,"navigation":582,"icon":423,"path":583},"Troubleshooting","content:docs:7.operations:4.troubleshooting.md","7\u002F4",{"icon":423},"\u002Fdocs\u002Foperations\u002Ftroubleshooting",{"title":585,"id":586,"canonicalKey":587,"locale":8,"draft":6,"navigation":588,"icon":25,"path":589},"Release Compatibility","content:docs:7.operations:5.release-compatibility.md","7\u002F5",{"icon":25},"\u002Fdocs\u002Foperations\u002Frelease-compatibility",{"title":591,"id":592,"canonicalKey":593,"locale":8,"draft":6,"path":594},"Better Convex documentation","content:docs:index.md","\u002F","\u002Fdocs",{"title":323,"description":596,"navigation":597,"body":598,"type":1649,"id":324,"canonicalKey":325,"draft":6,"partial":6,"locale":8,"collection":1650,"navigationFile":6,"file":1651,"route":1657,"resolution":1659},"Maintain a rebuildable application user projection without duplicating Better Auth session truth.",{"icon":327},{"type":599,"children":600,"toc":1639},"root",[601,609,616,665,670,676,917,923,1544,1556,1568,1574,1586,1618,1623,1629,1634],{"type":602,"tag":603,"props":604,"children":605},"element","p",{},[606],{"type":607,"value":608},"text","Most applications do not need a second user table. Add one only when Convex product data needs indexed display\u002Fsearch fields or application-owned profile fields.",{"type":602,"tag":610,"props":611,"children":613},"h2",{"id":612},"source-of-truth-rule",[614],{"type":607,"value":615},"Source-of-truth rule",{"type":602,"tag":617,"props":618,"children":620},"pre",{"language":607,"class":619},"shiki shiki-themes light-plus dark-plus dark:dark-plus",[621],{"type":602,"tag":622,"props":623,"children":625},"code",{"class":624},"language-text",[626,637,639,647,648,656,657],{"type":602,"tag":627,"props":628,"children":631},"span",{"class":629,"style":630},"line","display: inline",[632],{"type":602,"tag":627,"props":633,"children":634},{},[635],{"type":607,"value":636},"Better Auth user",{"type":607,"value":638},"\n",{"type":602,"tag":627,"props":640,"children":641},{"class":629,"style":630},[642],{"type":602,"tag":627,"props":643,"children":644},{},[645],{"type":607,"value":646},"  → trigger",{"type":607,"value":638},{"type":602,"tag":627,"props":649,"children":650},{"class":629,"style":630},[651],{"type":602,"tag":627,"props":652,"children":653},{},[654],{"type":607,"value":655},"  → derived application user row",{"type":607,"value":638},{"type":602,"tag":627,"props":658,"children":659},{"class":629,"style":630},[660],{"type":602,"tag":627,"props":661,"children":662},{},[663],{"type":607,"value":664},"  → application queries",{"type":602,"tag":603,"props":666,"children":667},{},[668],{"type":607,"value":669},"The arrow is one-way for copied auth fields. The projection must be rebuildable from Better Auth.",{"type":602,"tag":610,"props":671,"children":673},{"id":672},"define-the-projection",[674],{"type":607,"value":675},"Define the projection",{"type":602,"tag":617,"props":677,"children":680},{"language":678,"filename":679,"class":619},"ts","convex\u002Fschema.ts",[681],{"type":602,"tag":622,"props":682,"children":684},{"class":683},"language-ts",[685,711,712,741,742,786,787,827,828,853,854,878,879],{"type":602,"tag":627,"props":686,"children":687},{"class":629,"style":630},[688,694,700,706],{"type":602,"tag":627,"props":689,"children":691},{"style":690},"color:#000000;--shiki-dark:#C8C8C8",[692],{"type":607,"value":693},"users",{"type":602,"tag":627,"props":695,"children":697},{"style":696},"color:#000000;--shiki-dark:#D4D4D4",[698],{"type":607,"value":699},": ",{"type":602,"tag":627,"props":701,"children":703},{"style":702},"color:#795E26;--shiki-dark:#DCDCAA",[704],{"type":607,"value":705},"defineTable",{"type":602,"tag":627,"props":707,"children":708},{"style":696},[709],{"type":607,"value":710},"({",{"type":607,"value":638},{"type":602,"tag":627,"props":713,"children":714},{"class":629,"style":630},[715,721,726,731,736],{"type":602,"tag":627,"props":716,"children":718},{"style":717},"color:#001080;--shiki-dark:#9CDCFE",[719],{"type":607,"value":720},"  authUserId:",{"type":602,"tag":627,"props":722,"children":723},{"style":717},[724],{"type":607,"value":725}," v",{"type":602,"tag":627,"props":727,"children":728},{"style":696},[729],{"type":607,"value":730},".",{"type":602,"tag":627,"props":732,"children":733},{"style":702},[734],{"type":607,"value":735},"string",{"type":602,"tag":627,"props":737,"children":738},{"style":696},[739],{"type":607,"value":740},"(),",{"type":607,"value":638},{"type":602,"tag":627,"props":743,"children":744},{"class":629,"style":630},[745,750,754,758,763,768,773,777,781],{"type":602,"tag":627,"props":746,"children":747},{"style":717},[748],{"type":607,"value":749},"  name:",{"type":602,"tag":627,"props":751,"children":752},{"style":717},[753],{"type":607,"value":725},{"type":602,"tag":627,"props":755,"children":756},{"style":696},[757],{"type":607,"value":730},{"type":602,"tag":627,"props":759,"children":760},{"style":702},[761],{"type":607,"value":762},"optional",{"type":602,"tag":627,"props":764,"children":765},{"style":696},[766],{"type":607,"value":767},"(",{"type":602,"tag":627,"props":769,"children":770},{"style":717},[771],{"type":607,"value":772},"v",{"type":602,"tag":627,"props":774,"children":775},{"style":696},[776],{"type":607,"value":730},{"type":602,"tag":627,"props":778,"children":779},{"style":702},[780],{"type":607,"value":735},{"type":602,"tag":627,"props":782,"children":783},{"style":696},[784],{"type":607,"value":785},"()),",{"type":607,"value":638},{"type":602,"tag":627,"props":788,"children":789},{"class":629,"style":630},[790,795,799,803,807,811,815,819,823],{"type":602,"tag":627,"props":791,"children":792},{"style":717},[793],{"type":607,"value":794},"  image:",{"type":602,"tag":627,"props":796,"children":797},{"style":717},[798],{"type":607,"value":725},{"type":602,"tag":627,"props":800,"children":801},{"style":696},[802],{"type":607,"value":730},{"type":602,"tag":627,"props":804,"children":805},{"style":702},[806],{"type":607,"value":762},{"type":602,"tag":627,"props":808,"children":809},{"style":696},[810],{"type":607,"value":767},{"type":602,"tag":627,"props":812,"children":813},{"style":717},[814],{"type":607,"value":772},{"type":602,"tag":627,"props":816,"children":817},{"style":696},[818],{"type":607,"value":730},{"type":602,"tag":627,"props":820,"children":821},{"style":702},[822],{"type":607,"value":735},{"type":602,"tag":627,"props":824,"children":825},{"style":696},[826],{"type":607,"value":785},{"type":607,"value":638},{"type":602,"tag":627,"props":829,"children":830},{"class":629,"style":630},[831,836,840,844,849],{"type":602,"tag":627,"props":832,"children":833},{"style":717},[834],{"type":607,"value":835},"  createdAt:",{"type":602,"tag":627,"props":837,"children":838},{"style":717},[839],{"type":607,"value":725},{"type":602,"tag":627,"props":841,"children":842},{"style":696},[843],{"type":607,"value":730},{"type":602,"tag":627,"props":845,"children":846},{"style":702},[847],{"type":607,"value":848},"number",{"type":602,"tag":627,"props":850,"children":851},{"style":696},[852],{"type":607,"value":740},{"type":607,"value":638},{"type":602,"tag":627,"props":855,"children":856},{"class":629,"style":630},[857,862,866,870,874],{"type":602,"tag":627,"props":858,"children":859},{"style":717},[860],{"type":607,"value":861},"  updatedAt:",{"type":602,"tag":627,"props":863,"children":864},{"style":717},[865],{"type":607,"value":725},{"type":602,"tag":627,"props":867,"children":868},{"style":696},[869],{"type":607,"value":730},{"type":602,"tag":627,"props":871,"children":872},{"style":702},[873],{"type":607,"value":848},{"type":602,"tag":627,"props":875,"children":876},{"style":696},[877],{"type":607,"value":740},{"type":607,"value":638},{"type":602,"tag":627,"props":880,"children":881},{"class":629,"style":630},[882,887,892,896,902,907,912],{"type":602,"tag":627,"props":883,"children":884},{"style":696},[885],{"type":607,"value":886},"}).",{"type":602,"tag":627,"props":888,"children":889},{"style":702},[890],{"type":607,"value":891},"index",{"type":602,"tag":627,"props":893,"children":894},{"style":696},[895],{"type":607,"value":767},{"type":602,"tag":627,"props":897,"children":899},{"style":898},"color:#A31515;--shiki-dark:#CE9178",[900],{"type":607,"value":901},"'by_auth_user_id'",{"type":602,"tag":627,"props":903,"children":904},{"style":696},[905],{"type":607,"value":906},", [",{"type":602,"tag":627,"props":908,"children":909},{"style":898},[910],{"type":607,"value":911},"'authUserId'",{"type":602,"tag":627,"props":913,"children":914},{"style":696},[915],{"type":607,"value":916},"])",{"type":602,"tag":610,"props":918,"children":920},{"id":919},"create-projection-triggers",[921],{"type":607,"value":922},"Create projection triggers",{"type":602,"tag":617,"props":924,"children":926},{"language":678,"filename":925,"class":619},"convex\u002Fauth.ts",[927],{"type":602,"tag":622,"props":928,"children":929},{"class":683},[930,944,945,958,959,976,977,995,996,999,1000,1060,1061,1078,1079,1096,1097,1114,1115,1162,1163,1199,1200,1233,1234,1251,1252,1268,1269,1277,1278,1318,1319,1350,1351,1382,1383,1398,1399,1406,1407,1447,1448,1479,1480,1511,1512,1527,1528,1535,1536],{"type":602,"tag":627,"props":931,"children":932},{"class":629,"style":630},[933,939],{"type":602,"tag":627,"props":934,"children":936},{"style":935},"color:#AF00DB;--shiki-dark:#C586C0",[937],{"type":607,"value":938},"import",{"type":602,"tag":627,"props":940,"children":941},{"style":696},[942],{"type":607,"value":943}," {",{"type":607,"value":638},{"type":602,"tag":627,"props":946,"children":947},{"class":629,"style":630},[948,953],{"type":602,"tag":627,"props":949,"children":950},{"style":717},[951],{"type":607,"value":952},"  createUserProjectionTriggers",{"type":602,"tag":627,"props":954,"children":955},{"style":696},[956],{"type":607,"value":957},",",{"type":607,"value":638},{"type":602,"tag":627,"props":960,"children":961},{"class":629,"style":630},[962,967,972],{"type":602,"tag":627,"props":963,"children":964},{"style":935},[965],{"type":607,"value":966},"  type",{"type":602,"tag":627,"props":968,"children":969},{"style":717},[970],{"type":607,"value":971}," BetterAuthUserProjectionSource",{"type":602,"tag":627,"props":973,"children":974},{"style":696},[975],{"type":607,"value":957},{"type":607,"value":638},{"type":602,"tag":627,"props":978,"children":979},{"class":629,"style":630},[980,985,990],{"type":602,"tag":627,"props":981,"children":982},{"style":696},[983],{"type":607,"value":984},"} ",{"type":602,"tag":627,"props":986,"children":987},{"style":935},[988],{"type":607,"value":989},"from",{"type":602,"tag":627,"props":991,"children":992},{"style":898},[993],{"type":607,"value":994}," '@lupinum\u002Fbetter-convex-nuxt\u002Fconvex-auth'",{"type":607,"value":638},{"type":602,"tag":627,"props":997,"children":998},{"class":629,"style":630},[],{"type":607,"value":638},{"type":602,"tag":627,"props":1001,"children":1002},{"class":629,"style":630},[1003,1009,1015,1020,1025,1030,1036,1041,1046,1050,1055],{"type":602,"tag":627,"props":1004,"children":1006},{"style":1005},"color:#0000FF;--shiki-dark:#569CD6",[1007],{"type":607,"value":1008},"const",{"type":602,"tag":627,"props":1010,"children":1012},{"style":1011},"color:#0070C1;--shiki-dark:#4FC1FF",[1013],{"type":607,"value":1014}," userProjection",{"type":602,"tag":627,"props":1016,"children":1017},{"style":696},[1018],{"type":607,"value":1019}," = ",{"type":602,"tag":627,"props":1021,"children":1022},{"style":702},[1023],{"type":607,"value":1024},"createUserProjectionTriggers",{"type":602,"tag":627,"props":1026,"children":1027},{"style":696},[1028],{"type":607,"value":1029},"\u003C",{"type":602,"tag":627,"props":1031,"children":1033},{"style":1032},"color:#267F99;--shiki-dark:#4EC9B0",[1034],{"type":607,"value":1035},"BetterAuthUserProjectionSource",{"type":602,"tag":627,"props":1037,"children":1038},{"style":696},[1039],{"type":607,"value":1040},", ",{"type":602,"tag":627,"props":1042,"children":1043},{"style":1032},[1044],{"type":607,"value":1045},"Doc",{"type":602,"tag":627,"props":1047,"children":1048},{"style":696},[1049],{"type":607,"value":1029},{"type":602,"tag":627,"props":1051,"children":1052},{"style":898},[1053],{"type":607,"value":1054},"'users'",{"type":602,"tag":627,"props":1056,"children":1057},{"style":696},[1058],{"type":607,"value":1059},">>({",{"type":607,"value":638},{"type":602,"tag":627,"props":1062,"children":1063},{"class":629,"style":630},[1064,1069,1074],{"type":602,"tag":627,"props":1065,"children":1066},{"style":717},[1067],{"type":607,"value":1068},"  table:",{"type":602,"tag":627,"props":1070,"children":1071},{"style":898},[1072],{"type":607,"value":1073}," 'users'",{"type":602,"tag":627,"props":1075,"children":1076},{"style":696},[1077],{"type":607,"value":957},{"type":607,"value":638},{"type":602,"tag":627,"props":1080,"children":1081},{"class":629,"style":630},[1082,1087,1092],{"type":602,"tag":627,"props":1083,"children":1084},{"style":717},[1085],{"type":607,"value":1086},"  index:",{"type":602,"tag":627,"props":1088,"children":1089},{"style":898},[1090],{"type":607,"value":1091}," 'by_auth_user_id'",{"type":602,"tag":627,"props":1093,"children":1094},{"style":696},[1095],{"type":607,"value":957},{"type":607,"value":638},{"type":602,"tag":627,"props":1098,"children":1099},{"class":629,"style":630},[1100,1105,1110],{"type":602,"tag":627,"props":1101,"children":1102},{"style":717},[1103],{"type":607,"value":1104},"  authIdField:",{"type":602,"tag":627,"props":1106,"children":1107},{"style":898},[1108],{"type":607,"value":1109}," 'authUserId'",{"type":602,"tag":627,"props":1111,"children":1112},{"style":696},[1113],{"type":607,"value":957},{"type":607,"value":638},{"type":602,"tag":627,"props":1116,"children":1117},{"class":629,"style":630},[1118,1123,1128,1133,1138,1142,1147,1152,1157],{"type":602,"tag":627,"props":1119,"children":1120},{"style":702},[1121],{"type":607,"value":1122},"  createDoc",{"type":602,"tag":627,"props":1124,"children":1125},{"style":717},[1126],{"type":607,"value":1127},":",{"type":602,"tag":627,"props":1129,"children":1130},{"style":696},[1131],{"type":607,"value":1132}," ({ ",{"type":602,"tag":627,"props":1134,"children":1135},{"style":717},[1136],{"type":607,"value":1137},"user",{"type":602,"tag":627,"props":1139,"children":1140},{"style":696},[1141],{"type":607,"value":1040},{"type":602,"tag":627,"props":1143,"children":1144},{"style":717},[1145],{"type":607,"value":1146},"now",{"type":602,"tag":627,"props":1148,"children":1149},{"style":696},[1150],{"type":607,"value":1151}," }) ",{"type":602,"tag":627,"props":1153,"children":1154},{"style":1005},[1155],{"type":607,"value":1156},"=>",{"type":602,"tag":627,"props":1158,"children":1159},{"style":696},[1160],{"type":607,"value":1161}," ({",{"type":607,"value":638},{"type":602,"tag":627,"props":1164,"children":1165},{"class":629,"style":630},[1166,1171,1176,1180,1185,1190,1195],{"type":602,"tag":627,"props":1167,"children":1168},{"style":717},[1169],{"type":607,"value":1170},"    name:",{"type":602,"tag":627,"props":1172,"children":1173},{"style":717},[1174],{"type":607,"value":1175}," user",{"type":602,"tag":627,"props":1177,"children":1178},{"style":696},[1179],{"type":607,"value":730},{"type":602,"tag":627,"props":1181,"children":1182},{"style":717},[1183],{"type":607,"value":1184},"name",{"type":602,"tag":627,"props":1186,"children":1187},{"style":696},[1188],{"type":607,"value":1189}," ?? ",{"type":602,"tag":627,"props":1191,"children":1192},{"style":1005},[1193],{"type":607,"value":1194},"undefined",{"type":602,"tag":627,"props":1196,"children":1197},{"style":696},[1198],{"type":607,"value":957},{"type":607,"value":638},{"type":602,"tag":627,"props":1201,"children":1202},{"class":629,"style":630},[1203,1208,1212,1216,1221,1225,1229],{"type":602,"tag":627,"props":1204,"children":1205},{"style":717},[1206],{"type":607,"value":1207},"    image:",{"type":602,"tag":627,"props":1209,"children":1210},{"style":717},[1211],{"type":607,"value":1175},{"type":602,"tag":627,"props":1213,"children":1214},{"style":696},[1215],{"type":607,"value":730},{"type":602,"tag":627,"props":1217,"children":1218},{"style":717},[1219],{"type":607,"value":1220},"image",{"type":602,"tag":627,"props":1222,"children":1223},{"style":696},[1224],{"type":607,"value":1189},{"type":602,"tag":627,"props":1226,"children":1227},{"style":1005},[1228],{"type":607,"value":1194},{"type":602,"tag":627,"props":1230,"children":1231},{"style":696},[1232],{"type":607,"value":957},{"type":607,"value":638},{"type":602,"tag":627,"props":1235,"children":1236},{"class":629,"style":630},[1237,1242,1247],{"type":602,"tag":627,"props":1238,"children":1239},{"style":717},[1240],{"type":607,"value":1241},"    createdAt:",{"type":602,"tag":627,"props":1243,"children":1244},{"style":717},[1245],{"type":607,"value":1246}," now",{"type":602,"tag":627,"props":1248,"children":1249},{"style":696},[1250],{"type":607,"value":957},{"type":607,"value":638},{"type":602,"tag":627,"props":1253,"children":1254},{"class":629,"style":630},[1255,1260,1264],{"type":602,"tag":627,"props":1256,"children":1257},{"style":717},[1258],{"type":607,"value":1259},"    updatedAt:",{"type":602,"tag":627,"props":1261,"children":1262},{"style":717},[1263],{"type":607,"value":1246},{"type":602,"tag":627,"props":1265,"children":1266},{"style":696},[1267],{"type":607,"value":957},{"type":607,"value":638},{"type":602,"tag":627,"props":1270,"children":1271},{"class":629,"style":630},[1272],{"type":602,"tag":627,"props":1273,"children":1274},{"style":696},[1275],{"type":607,"value":1276},"  }),",{"type":607,"value":638},{"type":602,"tag":627,"props":1279,"children":1280},{"class":629,"style":630},[1281,1286,1290,1294,1298,1302,1306,1310,1314],{"type":602,"tag":627,"props":1282,"children":1283},{"style":702},[1284],{"type":607,"value":1285},"  patchDoc",{"type":602,"tag":627,"props":1287,"children":1288},{"style":717},[1289],{"type":607,"value":1127},{"type":602,"tag":627,"props":1291,"children":1292},{"style":696},[1293],{"type":607,"value":1132},{"type":602,"tag":627,"props":1295,"children":1296},{"style":717},[1297],{"type":607,"value":1137},{"type":602,"tag":627,"props":1299,"children":1300},{"style":696},[1301],{"type":607,"value":1040},{"type":602,"tag":627,"props":1303,"children":1304},{"style":717},[1305],{"type":607,"value":1146},{"type":602,"tag":627,"props":1307,"children":1308},{"style":696},[1309],{"type":607,"value":1151},{"type":602,"tag":627,"props":1311,"children":1312},{"style":1005},[1313],{"type":607,"value":1156},{"type":602,"tag":627,"props":1315,"children":1316},{"style":696},[1317],{"type":607,"value":1161},{"type":607,"value":638},{"type":602,"tag":627,"props":1320,"children":1321},{"class":629,"style":630},[1322,1326,1330,1334,1338,1342,1346],{"type":602,"tag":627,"props":1323,"children":1324},{"style":717},[1325],{"type":607,"value":1170},{"type":602,"tag":627,"props":1327,"children":1328},{"style":717},[1329],{"type":607,"value":1175},{"type":602,"tag":627,"props":1331,"children":1332},{"style":696},[1333],{"type":607,"value":730},{"type":602,"tag":627,"props":1335,"children":1336},{"style":717},[1337],{"type":607,"value":1184},{"type":602,"tag":627,"props":1339,"children":1340},{"style":696},[1341],{"type":607,"value":1189},{"type":602,"tag":627,"props":1343,"children":1344},{"style":1005},[1345],{"type":607,"value":1194},{"type":602,"tag":627,"props":1347,"children":1348},{"style":696},[1349],{"type":607,"value":957},{"type":607,"value":638},{"type":602,"tag":627,"props":1352,"children":1353},{"class":629,"style":630},[1354,1358,1362,1366,1370,1374,1378],{"type":602,"tag":627,"props":1355,"children":1356},{"style":717},[1357],{"type":607,"value":1207},{"type":602,"tag":627,"props":1359,"children":1360},{"style":717},[1361],{"type":607,"value":1175},{"type":602,"tag":627,"props":1363,"children":1364},{"style":696},[1365],{"type":607,"value":730},{"type":602,"tag":627,"props":1367,"children":1368},{"style":717},[1369],{"type":607,"value":1220},{"type":602,"tag":627,"props":1371,"children":1372},{"style":696},[1373],{"type":607,"value":1189},{"type":602,"tag":627,"props":1375,"children":1376},{"style":1005},[1377],{"type":607,"value":1194},{"type":602,"tag":627,"props":1379,"children":1380},{"style":696},[1381],{"type":607,"value":957},{"type":607,"value":638},{"type":602,"tag":627,"props":1384,"children":1385},{"class":629,"style":630},[1386,1390,1394],{"type":602,"tag":627,"props":1387,"children":1388},{"style":717},[1389],{"type":607,"value":1259},{"type":602,"tag":627,"props":1391,"children":1392},{"style":717},[1393],{"type":607,"value":1246},{"type":602,"tag":627,"props":1395,"children":1396},{"style":696},[1397],{"type":607,"value":957},{"type":607,"value":638},{"type":602,"tag":627,"props":1400,"children":1401},{"class":629,"style":630},[1402],{"type":602,"tag":627,"props":1403,"children":1404},{"style":696},[1405],{"type":607,"value":1276},{"type":607,"value":638},{"type":602,"tag":627,"props":1408,"children":1409},{"class":629,"style":630},[1410,1415,1419,1423,1427,1431,1435,1439,1443],{"type":602,"tag":627,"props":1411,"children":1412},{"style":702},[1413],{"type":607,"value":1414},"  rebuildDoc",{"type":602,"tag":627,"props":1416,"children":1417},{"style":717},[1418],{"type":607,"value":1127},{"type":602,"tag":627,"props":1420,"children":1421},{"style":696},[1422],{"type":607,"value":1132},{"type":602,"tag":627,"props":1424,"children":1425},{"style":717},[1426],{"type":607,"value":1137},{"type":602,"tag":627,"props":1428,"children":1429},{"style":696},[1430],{"type":607,"value":1040},{"type":602,"tag":627,"props":1432,"children":1433},{"style":717},[1434],{"type":607,"value":1146},{"type":602,"tag":627,"props":1436,"children":1437},{"style":696},[1438],{"type":607,"value":1151},{"type":602,"tag":627,"props":1440,"children":1441},{"style":1005},[1442],{"type":607,"value":1156},{"type":602,"tag":627,"props":1444,"children":1445},{"style":696},[1446],{"type":607,"value":1161},{"type":607,"value":638},{"type":602,"tag":627,"props":1449,"children":1450},{"class":629,"style":630},[1451,1455,1459,1463,1467,1471,1475],{"type":602,"tag":627,"props":1452,"children":1453},{"style":717},[1454],{"type":607,"value":1170},{"type":602,"tag":627,"props":1456,"children":1457},{"style":717},[1458],{"type":607,"value":1175},{"type":602,"tag":627,"props":1460,"children":1461},{"style":696},[1462],{"type":607,"value":730},{"type":602,"tag":627,"props":1464,"children":1465},{"style":717},[1466],{"type":607,"value":1184},{"type":602,"tag":627,"props":1468,"children":1469},{"style":696},[1470],{"type":607,"value":1189},{"type":602,"tag":627,"props":1472,"children":1473},{"style":1005},[1474],{"type":607,"value":1194},{"type":602,"tag":627,"props":1476,"children":1477},{"style":696},[1478],{"type":607,"value":957},{"type":607,"value":638},{"type":602,"tag":627,"props":1481,"children":1482},{"class":629,"style":630},[1483,1487,1491,1495,1499,1503,1507],{"type":602,"tag":627,"props":1484,"children":1485},{"style":717},[1486],{"type":607,"value":1207},{"type":602,"tag":627,"props":1488,"children":1489},{"style":717},[1490],{"type":607,"value":1175},{"type":602,"tag":627,"props":1492,"children":1493},{"style":696},[1494],{"type":607,"value":730},{"type":602,"tag":627,"props":1496,"children":1497},{"style":717},[1498],{"type":607,"value":1220},{"type":602,"tag":627,"props":1500,"children":1501},{"style":696},[1502],{"type":607,"value":1189},{"type":602,"tag":627,"props":1504,"children":1505},{"style":1005},[1506],{"type":607,"value":1194},{"type":602,"tag":627,"props":1508,"children":1509},{"style":696},[1510],{"type":607,"value":957},{"type":607,"value":638},{"type":602,"tag":627,"props":1513,"children":1514},{"class":629,"style":630},[1515,1519,1523],{"type":602,"tag":627,"props":1516,"children":1517},{"style":717},[1518],{"type":607,"value":1259},{"type":602,"tag":627,"props":1520,"children":1521},{"style":717},[1522],{"type":607,"value":1246},{"type":602,"tag":627,"props":1524,"children":1525},{"style":696},[1526],{"type":607,"value":957},{"type":607,"value":638},{"type":602,"tag":627,"props":1529,"children":1530},{"class":629,"style":630},[1531],{"type":602,"tag":627,"props":1532,"children":1533},{"style":696},[1534],{"type":607,"value":1276},{"type":607,"value":638},{"type":602,"tag":627,"props":1537,"children":1538},{"class":629,"style":630},[1539],{"type":602,"tag":627,"props":1540,"children":1541},{"style":696},[1542],{"type":607,"value":1543},"})",{"type":602,"tag":603,"props":1545,"children":1546},{},[1547,1549,1554],{"type":607,"value":1548},"The helper owns ",{"type":602,"tag":622,"props":1550,"children":1551},{},[1552],{"type":607,"value":1553},"authIdField",{"type":607,"value":1555},": it injects the canonical Better Auth user ID on\ninsert and prevents create, update, or rebuild callbacks from replacing it.\nCallbacks own only the application projection fields.",{"type":602,"tag":603,"props":1557,"children":1558},{},[1559,1561,1566],{"type":607,"value":1560},"Attach ",{"type":602,"tag":622,"props":1562,"children":1563},{},[1564],{"type":607,"value":1565},"userProjection.user",{"type":607,"value":1567}," as the component client's user triggers.",{"type":602,"tag":610,"props":1569,"children":1571},{"id":1570},"rebuild-and-repair",[1572],{"type":607,"value":1573},"Rebuild and repair",{"type":602,"tag":603,"props":1575,"children":1576},{},[1577,1579,1584],{"type":607,"value":1578},"The helper exposes ",{"type":602,"tag":622,"props":1580,"children":1581},{},[1582],{"type":607,"value":1583},"user.rebuild(ctx, users)",{"type":607,"value":1585}," for a bounded page of canonical Better Auth users. An operator-only internal workflow should:",{"type":602,"tag":1587,"props":1588,"children":1589},"ol",{},[1590,1596,1608,1613],{"type":602,"tag":1591,"props":1592,"children":1593},"li",{},[1594],{"type":607,"value":1595},"Page through Better Auth users.",{"type":602,"tag":1591,"props":1597,"children":1598},{},[1599,1601,1606],{"type":607,"value":1600},"Call ",{"type":602,"tag":622,"props":1602,"children":1603},{},[1604],{"type":607,"value":1605},"rebuild",{"type":607,"value":1607}," for each page.",{"type":602,"tag":1591,"props":1609,"children":1610},{},[1611],{"type":607,"value":1612},"Repeat until the canonical source reports completion.",{"type":602,"tag":1591,"props":1614,"children":1615},{},[1616],{"type":607,"value":1617},"Record inserted, patched, and skipped counts.",{"type":602,"tag":603,"props":1619,"children":1620},{},[1621],{"type":607,"value":1622},"The helper removes duplicate projection rows found by the auth ID index. It does not schedule rebuilds or own operator authorization.",{"type":602,"tag":610,"props":1624,"children":1626},{"id":1625},"failure-behavior",[1627],{"type":607,"value":1628},"Failure behavior",{"type":602,"tag":603,"props":1630,"children":1631},{},[1632],{"type":607,"value":1633},"An update trigger that arrives before its create row cannot queue itself. Later creation uses its current user snapshot, and periodic rebuild can reconcile drift.",{"type":602,"tag":603,"props":1635,"children":1636},{},[1637],{"type":607,"value":1638},"Do not use the projection for authentication or as the sole source of revocable authorization.",{"title":1640,"searchDepth":1641,"depth":1641,"links":1642},"",4,[1643,1645,1646,1647,1648],{"id":612,"depth":1644,"text":615},2,{"id":672,"depth":1644,"text":675},{"id":919,"depth":1644,"text":922},{"id":1570,"depth":1644,"text":1573},{"id":1625,"depth":1644,"text":1628},"markdown","docs",{"source":1652,"path":1653,"stem":1654,"dir":1655,"extension":1656},"content","docs\u002F4.build\u002F3.authentication\u002F9.user-synchronization.md","docs\u002F4.build\u002F3.authentication\u002F9.user-synchronization","authentication","md",{"requestedPath":328,"resolvedPath":328,"alternates":1658},[],{"requested":1660,"resolved":1661,"usedFallback":6},{},{"locale":8},{"previous":1663,"next":1665},{"title":316,"id":317,"canonicalKey":318,"locale":8,"draft":6,"navigation":1664,"icon":320,"path":321},{"icon":320},{"title":330,"id":331,"canonicalKey":332,"locale":8,"draft":6,"navigation":1666,"icon":334,"path":335},{"icon":334},{"left":1668,"top":1668,"width":1669,"height":1669,"rotate":1668,"vFlip":6,"hFlip":6,"body":1670},0,256,"\u003Cpath fill=\"#3178c6\" d=\"M20 0h216c11.046 0 20 8.954 20 20v216c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20V20C0 8.954 8.954 0 20 0\"\u002F>\u003Cpath fill=\"#fff\" d=\"M150.518 200.475v27.62q6.738 3.453 15.938 5.179T185.849 235q9.934 0 18.874-1.899t15.678-6.257q6.738-4.359 10.669-11.394q3.93-7.033 3.93-17.391q0-7.51-2.246-13.163a30.8 30.8 0 0 0-6.479-10.055q-4.232-4.402-10.149-7.898t-13.347-6.602q-5.442-2.245-9.761-4.359t-7.342-4.316q-3.024-2.2-4.665-4.661t-1.641-5.567q0-2.848 1.468-5.135q1.469-2.288 4.147-3.927t6.565-2.547q3.887-.906 8.638-.906q3.456 0 7.299.518q3.844.517 7.732 1.597a54 54 0 0 1 7.558 2.719a41.7 41.7 0 0 1 6.781 3.797v-25.807q-6.306-2.417-13.778-3.582T198.633 107q-9.847 0-18.658 2.115q-8.811 2.114-15.506 6.602q-6.694 4.49-10.582 11.437Q150 134.102 150 143.769q0 12.342 7.127 21.06t21.638 14.759a292 292 0 0 1 10.625 4.575q4.924 2.244 8.509 4.66t5.658 5.265t2.073 6.474a9.9 9.9 0 0 1-1.296 4.963q-1.295 2.287-3.93 3.97t-6.565 2.632t-9.2.95q-8.983 0-17.794-3.151t-16.327-9.451m-46.036-68.733H140V109H41v22.742h35.345V233h28.137z\"\u002F>",{"left":1668,"top":1668,"width":1672,"height":1672,"rotate":1668,"vFlip":6,"hFlip":6,"body":1673},24,"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Crect width=\"8\" height=\"4\" x=\"8\" y=\"2\" rx=\"1\" ry=\"1\"\u002F>\u003Cpath d=\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\"\u002F>\u003C\u002Fg>",1786627521196]