[{"data":1,"prerenderedAt":2588},["ShallowReactive",2],{"docs-navigation:en":3,"content-page:docs:1o40k0hlQbzdbO9NScKBdANtbQVbdoOt62EA_7rmY2w":842,"content-page-surround:docs:1o40k0hlQbzdbO9NScKBdANtbQVbdoOt62EA_7rmY2w":2576,"i-logos:typescript-icon":2581,"i-lucide:clipboard":2585},[4,41,110,540,643,708,772,837],{"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],{"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},"Who it is for","content:docs:1.overview:2.who-it-is-for.md","1\u002F2",{"icon":25},"i-lucide-users","\u002Fdocs\u002Foverview\u002Fwho-it-is-for",{"title":28,"id":29,"canonicalKey":30,"locale":8,"draft":6,"navigation":31,"icon":32,"path":33},"Limitations and trade-offs","content:docs:1.overview:3.limitations.md","1\u002F3",{"icon":32},"i-lucide-triangle-alert","\u002Fdocs\u002Foverview\u002Flimitations",{"title":35,"id":36,"canonicalKey":37,"locale":8,"draft":6,"navigation":38,"icon":39,"path":40},"Compare Nuxt integrations","content:docs:1.overview:4.comparison.md","1\u002F4",{"icon":39},"i-lucide-scale","\u002Fdocs\u002Foverview\u002Fcomparison",{"title":42,"page":6,"canonicalKey":43,"locale":8,"id":44,"draft":6,"icon":45,"children":46},"Get started","2","content:docs:2.get-started:.navigation.yml","i-lucide-rocket",[47,54,61,68,75,82,89,96,103],{"title":48,"id":49,"canonicalKey":50,"locale":8,"draft":6,"navigation":51,"icon":52,"path":53},"Choose your path","content:docs:2.get-started:1.choose-your-path.md","2\u002F1",{"icon":52},"i-lucide-signpost","\u002Fdocs\u002Fget-started\u002Fchoose-your-path",{"title":55,"id":56,"canonicalKey":57,"locale":8,"draft":6,"navigation":58,"icon":59,"path":60},"Installation","content:docs:2.get-started:2.installation.md","2\u002F2",{"icon":59},"i-lucide-download","\u002Fdocs\u002Fget-started\u002Finstallation",{"title":62,"id":63,"canonicalKey":64,"locale":8,"draft":6,"navigation":65,"icon":66,"path":67},"First real-time page","content:docs:2.get-started:3.first-realtime-page.md","2\u002F3",{"icon":66},"i-lucide-radio","\u002Fdocs\u002Fget-started\u002Ffirst-realtime-page",{"title":69,"id":70,"canonicalKey":71,"locale":8,"draft":6,"navigation":72,"icon":73,"path":74},"Complete and delete","content:docs:2.get-started:4.complete-and-delete.md","2\u002F4",{"icon":73},"i-lucide-square-check","\u002Fdocs\u002Fget-started\u002Fcomplete-and-delete",{"title":76,"id":77,"canonicalKey":78,"locale":8,"draft":6,"navigation":79,"icon":80,"path":81},"Add authentication","content:docs:2.get-started:5.add-authentication.md","2\u002F5",{"icon":80},"i-lucide-log-in","\u002Fdocs\u002Fget-started\u002Fadd-authentication",{"title":83,"id":84,"canonicalKey":85,"locale":8,"draft":6,"navigation":86,"icon":87,"path":88},"Protect data","content:docs:2.get-started:6.protect-data.md","2\u002F6",{"icon":87},"i-lucide-shield-check","\u002Fdocs\u002Fget-started\u002Fprotect-data",{"title":90,"id":91,"canonicalKey":92,"locale":8,"draft":6,"navigation":93,"icon":94,"path":95},"Project structure","content:docs:2.get-started:7.project-structure.md","2\u002F7",{"icon":94},"i-lucide-folder-tree","\u002Fdocs\u002Fget-started\u002Fproject-structure",{"title":97,"id":98,"canonicalKey":99,"locale":8,"draft":6,"navigation":100,"icon":101,"path":102},"Next steps","content:docs:2.get-started:8.next-steps.md","2\u002F8",{"icon":101},"i-lucide-arrow-right","\u002Fdocs\u002Fget-started\u002Fnext-steps",{"title":104,"id":105,"canonicalKey":106,"locale":8,"draft":6,"navigation":107,"icon":108,"path":109},"Plain Vue and Vite","content:docs:2.get-started:9.plain-vue.md","2\u002F9",{"icon":108},"i-lucide-panels-top-left","\u002Fdocs\u002Fget-started\u002Fplain-vue",{"title":111,"page":6,"canonicalKey":112,"locale":8,"id":113,"draft":6,"icon":114,"sidebar":11,"children":115},"Build","3","content:docs:3.build:.navigation.yml","i-lucide-blocks",[116,154,200,321,353,385,431,481],{"title":117,"page":6,"canonicalKey":118,"locale":8,"children":119},"Queries","3\u002F1",[120,126,133,140,147],{"title":117,"id":121,"canonicalKey":122,"locale":8,"draft":6,"navigation":123,"icon":124,"path":125},"content:docs:3.build:1.queries:1.queries.md","3\u002F1\u002F1",{"icon":124},"i-lucide-database","\u002Fdocs\u002Fbuild\u002Fqueries\u002Fqueries",{"title":127,"id":128,"canonicalKey":129,"locale":8,"draft":6,"navigation":130,"icon":131,"path":132},"Reactive arguments","content:docs:3.build:1.queries:2.reactive-arguments.md","3\u002F1\u002F2",{"icon":131},"i-lucide-sliders-horizontal","\u002Fdocs\u002Fbuild\u002Fqueries\u002Freactive-arguments",{"title":134,"id":135,"canonicalKey":136,"locale":8,"draft":6,"navigation":137,"icon":138,"path":139},"Loading and stale data","content:docs:3.build:1.queries:3.loading-and-stale-data.md","3\u002F1\u002F3",{"icon":138},"i-lucide-loader-circle","\u002Fdocs\u002Fbuild\u002Fqueries\u002Floading-and-stale-data",{"title":141,"id":142,"canonicalKey":143,"locale":8,"draft":6,"navigation":144,"icon":145,"path":146},"Query execution options","content:docs:3.build:1.queries:4.ssr-options.md","3\u002F1\u002F4",{"icon":145},"i-lucide-server-cog","\u002Fdocs\u002Fbuild\u002Fqueries\u002Fssr-options",{"title":148,"id":149,"canonicalKey":150,"locale":8,"draft":6,"navigation":151,"icon":152,"path":153},"Pagination","content:docs:3.build:1.queries:6.pagination.md","3\u002F1\u002F6",{"icon":152},"i-lucide-list-plus","\u002Fdocs\u002Fbuild\u002Fqueries\u002Fpagination",{"title":155,"page":6,"canonicalKey":156,"locale":8,"children":157},"Write Data","3\u002F2",[158,165,172,179,186,193],{"title":159,"id":160,"canonicalKey":161,"locale":8,"draft":6,"navigation":162,"icon":163,"path":164},"Mutations","content:docs:3.build:2.write-data:1.mutations.md","3\u002F2\u002F1",{"icon":163},"i-lucide-square-pen","\u002Fdocs\u002Fbuild\u002Fwrite-data\u002Fmutations",{"title":166,"id":167,"canonicalKey":168,"locale":8,"draft":6,"navigation":169,"icon":170,"path":171},"Actions","content:docs:3.build:2.write-data:2.actions.md","3\u002F2\u002F2",{"icon":170},"i-lucide-zap","\u002Fdocs\u002Fbuild\u002Fwrite-data\u002Factions",{"title":173,"id":174,"canonicalKey":175,"locale":8,"draft":6,"navigation":176,"icon":177,"path":178},"Optimistic updates","content:docs:3.build:2.write-data:3.optimistic-updates.md","3\u002F2\u002F3",{"icon":177},"i-lucide-gauge","\u002Fdocs\u002Fbuild\u002Fwrite-data\u002Foptimistic-updates",{"title":180,"id":181,"canonicalKey":182,"locale":8,"draft":6,"navigation":183,"icon":184,"path":185},"Concurrent operations","content:docs:3.build:2.write-data:4.concurrent-operations.md","3\u002F2\u002F4",{"icon":184},"i-lucide-git-fork","\u002Fdocs\u002Fbuild\u002Fwrite-data\u002Fconcurrent-operations",{"title":187,"id":188,"canonicalKey":189,"locale":8,"draft":6,"navigation":190,"icon":191,"path":192},"Form submissions","content:docs:3.build:2.write-data:5.forms.md","3\u002F2\u002F5",{"icon":191},"i-lucide-list-checks","\u002Fdocs\u002Fbuild\u002Fwrite-data\u002Fforms",{"title":194,"id":195,"canonicalKey":196,"locale":8,"draft":6,"navigation":197,"icon":198,"path":199},"Multi-step operations","content:docs:3.build:2.write-data:6.multi-step-operations.md","3\u002F2\u002F6",{"icon":198},"i-lucide-list-ordered","\u002Fdocs\u002Fbuild\u002Fwrite-data\u002Fmulti-step-operations",{"title":201,"page":6,"canonicalKey":202,"locale":8,"children":203},"Authentication","3\u002F3",[204,210,217,224,230,237,244,251,258,265,272,279,286,293,300,307,314],{"title":201,"id":205,"canonicalKey":206,"locale":8,"draft":6,"navigation":207,"icon":208,"path":209},"content:docs:3.build:3.authentication:1.overview.md","3\u002F3\u002F1",{"icon":208},"i-lucide-shield","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Foverview",{"title":211,"id":212,"canonicalKey":213,"locale":8,"draft":6,"navigation":214,"icon":215,"path":216},"Better Auth setup","content:docs:3.build:3.authentication:2.better-auth-setup.md","3\u002F3\u002F2",{"icon":215},"i-lucide-settings-2","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fbetter-auth-setup",{"title":218,"id":219,"canonicalKey":220,"locale":8,"draft":6,"navigation":221,"icon":222,"path":223},"Auth state and user data","content:docs:3.build:3.authentication:3.auth-state-and-user.md","3\u002F3\u002F3",{"icon":222},"i-lucide-user-round","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fauth-state-and-user",{"title":225,"id":226,"canonicalKey":227,"locale":8,"draft":6,"navigation":228,"icon":80,"path":229},"Sign in and sign out","content:docs:3.build:3.authentication:4.sign-in-and-sign-out.md","3\u002F3\u002F4",{"icon":80},"\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fsign-in-and-sign-out",{"title":231,"id":232,"canonicalKey":233,"locale":8,"draft":6,"navigation":234,"icon":235,"path":236},"Route protection","content:docs:3.build:3.authentication:5.route-protection.md","3\u002F3\u002F5",{"icon":235},"i-lucide-route","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Froute-protection",{"title":238,"id":239,"canonicalKey":240,"locale":8,"draft":6,"navigation":241,"icon":242,"path":243},"Backend authorization","content:docs:3.build:3.authentication:6.backend-authorization.md","3\u002F3\u002F6",{"icon":242},"i-lucide-lock-keyhole","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fbackend-authorization",{"title":245,"id":246,"canonicalKey":247,"locale":8,"draft":6,"navigation":248,"icon":249,"path":250},"Better Auth plugins","content:docs:3.build:3.authentication:7.better-auth-plugins.md","3\u002F3\u002F7",{"icon":249},"i-lucide-plug","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fbetter-auth-plugins",{"title":252,"id":253,"canonicalKey":254,"locale":8,"draft":6,"navigation":255,"icon":256,"path":257},"Custom user fields","content:docs:3.build:3.authentication:8.custom-user-fields.md","3\u002F3\u002F8",{"icon":256},"i-lucide-user-cog","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fcustom-user-fields",{"title":259,"id":260,"canonicalKey":261,"locale":8,"draft":6,"navigation":262,"icon":263,"path":264},"User synchronization","content:docs:3.build:3.authentication:9.user-synchronization.md","3\u002F3\u002F9",{"icon":263},"i-lucide-refresh-ccw","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fuser-synchronization",{"title":266,"id":267,"canonicalKey":268,"locale":8,"draft":6,"navigation":269,"icon":270,"path":271},"Delegated OAuth and MCP","content:docs:3.build:3.authentication:10.delegated-oauth-and-mcp.md","3\u002F3\u002F10",{"icon":270},"i-lucide-bot","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fdelegated-oauth-and-mcp",{"title":273,"id":274,"canonicalKey":275,"locale":8,"draft":6,"navigation":276,"icon":277,"path":278},"Transactional auth email","content:docs:3.build:3.authentication:11.transactional-email.md","3\u002F3\u002F11",{"icon":277},"i-lucide-mail","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Ftransactional-email",{"title":280,"id":281,"canonicalKey":282,"locale":8,"draft":6,"navigation":283,"icon":284,"path":285},"Social sign-in","content:docs:3.build:3.authentication:12.social-sign-in.md","3\u002F3\u002F12",{"icon":284},"i-lucide-github","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fsocial-sign-in",{"title":287,"id":288,"canonicalKey":289,"locale":8,"draft":6,"navigation":290,"icon":291,"path":292},"Better Auth plugin support","content:docs:3.build:3.authentication:13.better-auth-plugin-support.md","3\u002F3\u002F13",{"icon":291},"i-lucide-puzzle","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fbetter-auth-plugin-support",{"title":294,"id":295,"canonicalKey":296,"locale":8,"draft":6,"navigation":297,"icon":298,"path":299},"Cacheable public pages","content:docs:3.build:3.authentication:14.cacheable-public-pages.md","3\u002F3\u002F14",{"icon":298},"i-lucide-globe","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fcacheable-public-pages",{"title":301,"id":302,"canonicalKey":303,"locale":8,"draft":6,"navigation":304,"icon":305,"path":306},"Several sites on one deployment","content:docs:3.build:3.authentication:15.multiple-site-origins.md","3\u002F3\u002F15",{"icon":305},"i-lucide-network","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fmultiple-site-origins",{"title":308,"id":309,"canonicalKey":310,"locale":8,"draft":6,"navigation":311,"icon":312,"path":313},"Account deletion","content:docs:3.build:3.authentication:16.account-deletion.md","3\u002F3\u002F16",{"icon":312},"i-lucide-user-x","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Faccount-deletion",{"title":315,"id":316,"canonicalKey":317,"locale":8,"draft":6,"navigation":318,"icon":319,"path":320},"Company sign-in (OIDC)","content:docs:3.build:3.authentication:17.company-sign-in.md","3\u002F3\u002F17",{"icon":319},"i-lucide-building-2","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fcompany-sign-in",{"title":322,"page":6,"canonicalKey":323,"locale":8,"children":324},"Server","3\u002F4",[325,332,339,346],{"title":326,"id":327,"canonicalKey":328,"locale":8,"draft":6,"navigation":329,"icon":330,"path":331},"serverConvex","content:docs:3.build:4.server:1.server-convex.md","3\u002F4\u002F1",{"icon":330},"i-lucide-server","\u002Fdocs\u002Fbuild\u002Fserver\u002Fserver-convex",{"title":333,"id":334,"canonicalKey":335,"locale":8,"draft":6,"navigation":336,"icon":337,"path":338},"Server routes","content:docs:3.build:4.server:2.server-routes.md","3\u002F4\u002F2",{"icon":337},"i-lucide-waypoints","\u002Fdocs\u002Fbuild\u002Fserver\u002Fserver-routes",{"title":340,"id":341,"canonicalKey":342,"locale":8,"draft":6,"navigation":343,"icon":344,"path":345},"Webhooks and jobs","content:docs:3.build:4.server:3.webhooks-and-jobs.md","3\u002F4\u002F3",{"icon":344},"i-lucide-webhook","\u002Fdocs\u002Fbuild\u002Fserver\u002Fwebhooks-and-jobs",{"title":347,"id":348,"canonicalKey":349,"locale":8,"draft":6,"navigation":350,"icon":351,"path":352},"Credentials and server security","content:docs:3.build:4.server:4.credentials-and-security.md","3\u002F4\u002F4",{"icon":351},"i-lucide-key-round","\u002Fdocs\u002Fbuild\u002Fserver\u002Fcredentials-and-security",{"title":354,"page":6,"canonicalKey":355,"locale":8,"children":356},"Files","3\u002F5",[357,364,371,378],{"title":358,"id":359,"canonicalKey":360,"locale":8,"draft":6,"navigation":361,"icon":362,"path":363},"Upload files","content:docs:3.build:5.files:1.upload-files.md","3\u002F5\u002F1",{"icon":362},"i-lucide-upload","\u002Fdocs\u002Fbuild\u002Ffiles\u002Fupload-files",{"title":365,"id":366,"canonicalKey":367,"locale":8,"draft":6,"navigation":368,"icon":369,"path":370},"Storage URLs","content:docs:3.build:5.files:3.storage-urls.md","3\u002F5\u002F3",{"icon":369},"i-lucide-link","\u002Fdocs\u002Fbuild\u002Ffiles\u002Fstorage-urls",{"title":372,"id":373,"canonicalKey":374,"locale":8,"draft":6,"navigation":375,"icon":376,"path":377},"File validation and deletion","content:docs:3.build:5.files:4.validation-and-deletion.md","3\u002F5\u002F4",{"icon":376},"i-lucide-file-x","\u002Fdocs\u002Fbuild\u002Ffiles\u002Fvalidation-and-deletion",{"title":379,"id":380,"canonicalKey":381,"locale":8,"draft":6,"navigation":382,"icon":383,"path":384},"Private downloads","content:docs:3.build:5.files:5.private-downloads.md","3\u002F5\u002F5",{"icon":383},"i-lucide-file-lock","\u002Fdocs\u002Fbuild\u002Ffiles\u002Fprivate-downloads",{"title":386,"page":6,"canonicalKey":387,"locale":8,"children":388},"Application Behavior","3\u002F6",[389,396,403,410,417,424],{"title":390,"id":391,"canonicalKey":392,"locale":8,"draft":6,"navigation":393,"icon":394,"path":395},"Connection state","content:docs:3.build:6.application-behavior:1.connection-state.md","3\u002F6\u002F1",{"icon":394},"i-lucide-wifi","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Fconnection-state",{"title":397,"id":398,"canonicalKey":399,"locale":8,"draft":6,"navigation":400,"icon":401,"path":402},"Error handling","content:docs:3.build:6.application-behavior:2.error-handling.md","3\u002F6\u002F2",{"icon":401},"i-lucide-circle-alert","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Ferror-handling",{"title":404,"id":405,"canonicalKey":406,"locale":8,"draft":6,"navigation":407,"icon":408,"path":409},"Logging","content:docs:3.build:6.application-behavior:3.logging.md","3\u002F6\u002F3",{"icon":408},"i-lucide-scroll-text","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Flogging",{"title":411,"id":412,"canonicalKey":413,"locale":8,"draft":6,"navigation":414,"icon":415,"path":416},"DevTools","content:docs:3.build:6.application-behavior:4.devtools.md","3\u002F6\u002F4",{"icon":415},"i-lucide-wrench","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Fdevtools",{"title":418,"id":419,"canonicalKey":420,"locale":8,"draft":6,"navigation":421,"icon":422,"path":423},"Performance","content:docs:3.build:6.application-behavior:5.performance.md","3\u002F6\u002F5",{"icon":422},"i-lucide-chart-no-axes-combined","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Fperformance",{"title":425,"id":426,"canonicalKey":427,"locale":8,"draft":6,"navigation":428,"icon":429,"path":430},"Start the client on demand","content:docs:3.build:6.application-behavior:6.on-demand-client.md","3\u002F6\u002F6",{"icon":429},"i-lucide-power","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Fon-demand-client",{"title":432,"page":6,"canonicalKey":433,"locale":8,"id":434,"draft":6,"icon":270,"children":435},"Agents and MCP","3\u002F7","content:docs:3.build:7.agents:.navigation.yml",[436,442,449,456,463,469,475],{"title":437,"id":438,"canonicalKey":439,"locale":8,"draft":6,"navigation":440,"icon":415,"path":441},"Tools and approvals","content:docs:3.build:7.agents:1.tools-and-approvals.md","3\u002F7\u002F1",{"icon":415},"\u002Fdocs\u002Fbuild\u002Fagents\u002Ftools-and-approvals",{"title":443,"id":444,"canonicalKey":445,"locale":8,"draft":6,"navigation":446,"icon":447,"path":448},"The MCP door","content:docs:3.build:7.agents:2.mcp-door.md","3\u002F7\u002F2",{"icon":447},"i-lucide-door-open","\u002Fdocs\u002Fbuild\u002Fagents\u002Fmcp-door",{"title":450,"id":451,"canonicalKey":452,"locale":8,"draft":6,"navigation":453,"icon":454,"path":455},"Limits","content:docs:3.build:7.agents:3.limits.md","3\u002F7\u002F3",{"icon":454},"i-lucide-traffic-cone","\u002Fdocs\u002Fbuild\u002Fagents\u002Flimits",{"title":457,"id":458,"canonicalKey":459,"locale":8,"draft":6,"navigation":460,"icon":461,"path":462},"MCP on Convex","content:docs:3.build:7.agents:4.mcp.md","3\u002F7\u002F4",{"icon":461},"i-lucide-plug-zap","\u002Fdocs\u002Fbuild\u002Fagents\u002Fmcp",{"title":464,"id":465,"canonicalKey":466,"locale":8,"draft":6,"navigation":467,"icon":249,"path":468},"Add MCP to your application","content:docs:3.build:7.agents:5.mcp-application.md","3\u002F7\u002F5",{"icon":249},"\u002Fdocs\u002Fbuild\u002Fagents\u002Fmcp-application",{"title":470,"id":471,"canonicalKey":472,"locale":8,"draft":6,"navigation":473,"icon":369,"path":474},"Connect ChatGPT and Claude","content:docs:3.build:7.agents:6.connect-chatgpt-and-claude.md","3\u002F7\u002F6",{"icon":369},"\u002Fdocs\u002Fbuild\u002Fagents\u002Fconnect-chatgpt-and-claude",{"title":476,"id":477,"canonicalKey":478,"locale":8,"draft":6,"navigation":479,"icon":108,"path":480},"MCP Apps","content:docs:3.build:7.agents:7.mcp-apps.md","3\u002F7\u002F7",{"icon":108},"\u002Fdocs\u002Fbuild\u002Fagents\u002Fmcp-apps",{"title":482,"page":6,"canonicalKey":483,"locale":8,"id":484,"draft":6,"icon":485,"children":486},"Operations and policy","3\u002F8","content:docs:3.build:8.functions:.navigation.yml","i-lucide-shield-half",[487,494,500,507,514,521,527,534],{"title":488,"id":489,"canonicalKey":490,"locale":8,"draft":6,"navigation":491,"icon":492,"path":493},"Start here","content:docs:3.build:8.functions:1.start-here.md","3\u002F8\u002F1",{"icon":492},"i-lucide-flag","\u002Fdocs\u002Fbuild\u002Ffunctions\u002Fstart-here",{"title":495,"id":496,"canonicalKey":497,"locale":8,"draft":6,"navigation":498,"icon":39,"path":499},"Policy and roles","content:docs:3.build:8.functions:2.policy-and-roles.md","3\u002F8\u002F2",{"icon":39},"\u002Fdocs\u002Fbuild\u002Ffunctions\u002Fpolicy-and-roles",{"title":501,"id":502,"canonicalKey":503,"locale":8,"draft":6,"navigation":504,"icon":505,"path":506},"Row rules","content:docs:3.build:8.functions:3.row-rules.md","3\u002F8\u002F3",{"icon":505},"i-lucide-rows-3","\u002Fdocs\u002Fbuild\u002Ffunctions\u002Frow-rules",{"title":508,"id":509,"canonicalKey":510,"locale":8,"draft":6,"navigation":511,"icon":512,"path":513},"Internal operations","content:docs:3.build:8.functions:4.internal-operations.md","3\u002F8\u002F4",{"icon":512},"i-lucide-workflow","\u002Fdocs\u002Fbuild\u002Ffunctions\u002Finternal-operations",{"title":515,"id":516,"canonicalKey":517,"locale":8,"draft":6,"navigation":518,"icon":519,"path":520},"Test your app","content:docs:3.build:8.functions:5.testing.md","3\u002F8\u002F5",{"icon":519},"i-lucide-flask-conical","\u002Fdocs\u002Fbuild\u002Ffunctions\u002Ftesting",{"title":522,"id":523,"canonicalKey":524,"locale":8,"draft":6,"navigation":525,"icon":177,"path":526},"Cost","content:docs:3.build:8.functions:6.cost.md","3\u002F8\u002F6",{"icon":177},"\u002Fdocs\u002Fbuild\u002Ffunctions\u002Fcost",{"title":528,"id":529,"canonicalKey":530,"locale":8,"draft":6,"navigation":531,"icon":532,"path":533},"Threat model","content:docs:3.build:8.functions:7.threat-model.md","3\u002F8\u002F7",{"icon":532},"i-lucide-shield-alert","\u002Fdocs\u002Fbuild\u002Ffunctions\u002Fthreat-model",{"title":535,"id":536,"canonicalKey":537,"locale":8,"draft":6,"navigation":538,"icon":408,"path":539},"Rate limits, audit log and call events","content:docs:3.build:8.functions:8.limits-and-audit.md","3\u002F8\u002F8",{"icon":408},"\u002Fdocs\u002Fbuild\u002Ffunctions\u002Flimits-and-audit",{"title":541,"page":6,"canonicalKey":542,"locale":8,"id":543,"draft":6,"icon":544,"children":545},"Recipes","4","content:docs:4.recipes:.navigation.yml","i-lucide-cooking-pot",[546,553,560,567,574,581,587,593,599,605,612,619,626,633,638],{"title":547,"id":548,"canonicalKey":549,"locale":8,"draft":6,"navigation":550,"icon":551,"path":552},"Protected dashboard","content:docs:4.recipes:1.protected-dashboard.md","4\u002F1",{"icon":551},"i-lucide-layout-dashboard","\u002Fdocs\u002Frecipes\u002Fprotected-dashboard",{"title":554,"id":555,"canonicalKey":556,"locale":8,"draft":6,"navigation":557,"icon":558,"path":559},"Real-time feed","content:docs:4.recipes:2.realtime-feed.md","4\u002F2",{"icon":558},"i-lucide-messages-square","\u002Fdocs\u002Frecipes\u002Frealtime-feed",{"title":561,"id":562,"canonicalKey":563,"locale":8,"draft":6,"navigation":564,"icon":565,"path":566},"Optimistic todo list","content:docs:4.recipes:3.optimistic-todo-list.md","4\u002F3",{"icon":565},"i-lucide-list-todo","\u002Fdocs\u002Frecipes\u002Foptimistic-todo-list",{"title":568,"id":569,"canonicalKey":570,"locale":8,"draft":6,"navigation":571,"icon":572,"path":573},"Infinite scroll","content:docs:4.recipes:4.infinite-scroll.md","4\u002F4",{"icon":572},"i-lucide-mouse","\u002Fdocs\u002Frecipes\u002Finfinite-scroll",{"title":575,"id":576,"canonicalKey":577,"locale":8,"draft":6,"navigation":578,"icon":579,"path":580},"File upload form","content:docs:4.recipes:5.file-upload-form.md","4\u002F5",{"icon":579},"i-lucide-file-up","\u002Fdocs\u002Frecipes\u002Ffile-upload-form",{"title":582,"id":583,"canonicalKey":584,"locale":8,"draft":6,"navigation":585,"icon":319,"path":586},"Organization permissions","content:docs:4.recipes:6.organization-permissions.md","4\u002F6",{"icon":319},"\u002Fdocs\u002Frecipes\u002Forganization-permissions",{"title":588,"id":589,"canonicalKey":590,"locale":8,"draft":6,"navigation":591,"icon":330,"path":592},"Authenticated server route","content:docs:4.recipes:7.authenticated-server-route.md","4\u002F7",{"icon":330},"\u002Fdocs\u002Frecipes\u002Fauthenticated-server-route",{"title":594,"id":595,"canonicalKey":596,"locale":8,"draft":6,"navigation":597,"icon":108,"path":598},"Public and private data","content:docs:4.recipes:8.public-and-private-data.md","4\u002F8",{"icon":108},"\u002Fdocs\u002Frecipes\u002Fpublic-and-private-data",{"title":600,"id":601,"canonicalKey":602,"locale":8,"draft":6,"navigation":603,"icon":519,"path":604},"Test signed-in screens","content:docs:4.recipes:9.component-testing.md","4\u002F9",{"icon":519},"\u002Fdocs\u002Frecipes\u002Fcomponent-testing",{"title":606,"id":607,"canonicalKey":608,"locale":8,"draft":6,"navigation":609,"icon":610,"path":611},"Time-based data","content:docs:4.recipes:10.time-based-data.md","4\u002F10",{"icon":610},"i-lucide-clock","\u002Fdocs\u002Frecipes\u002Ftime-based-data",{"title":613,"id":614,"canonicalKey":615,"locale":8,"draft":6,"navigation":616,"icon":617,"path":618},"A list of queries","content:docs:4.recipes:11.dynamic-query-list.md","4\u002F11",{"icon":617},"i-lucide-list-tree","\u002Fdocs\u002Frecipes\u002Fdynamic-query-list",{"title":620,"id":621,"canonicalKey":622,"locale":8,"draft":6,"navigation":623,"icon":624,"path":625},"Error messages","content:docs:4.recipes:12.error-messages.md","4\u002F12",{"icon":624},"i-lucide-message-circle-warning","\u002Fdocs\u002Frecipes\u002Ferror-messages",{"title":627,"id":628,"canonicalKey":629,"locale":8,"draft":6,"navigation":630,"icon":631,"path":632},"Several file uploads","content:docs:4.recipes:13.multiple-file-uploads.md","4\u002F13",{"icon":631},"i-lucide-files","\u002Fdocs\u002Frecipes\u002Fmultiple-file-uploads",{"title":634,"id":635,"canonicalKey":636,"locale":8,"draft":6,"path":637},"Guest users","content:docs:4.recipes:15.guest-users.md","4\u002F15","\u002Fdocs\u002Frecipes\u002Fguest-users",{"title":639,"id":640,"canonicalKey":641,"locale":8,"draft":6,"path":642},"Sign-in link","content:docs:4.recipes:16.sign-in-link.md","4\u002F16","\u002Fdocs\u002Frecipes\u002Fsign-in-link",{"title":644,"page":6,"canonicalKey":645,"locale":8,"id":646,"draft":6,"icon":647,"children":648},"Concepts","5","content:docs:5.concepts:.navigation.yml","i-lucide-brain",[649,655,661,668,674,681,687,694,701],{"title":650,"id":651,"canonicalKey":652,"locale":8,"draft":6,"navigation":653,"icon":647,"path":654},"Mental model","content:docs:5.concepts:1.mental-model.md","5\u002F1",{"icon":647},"\u002Fdocs\u002Fconcepts\u002Fmental-model",{"title":656,"id":657,"canonicalKey":658,"locale":8,"draft":6,"navigation":659,"icon":235,"path":660},"Request lifecycle","content:docs:5.concepts:2.request-lifecycle.md","5\u002F2",{"icon":235},"\u002Fdocs\u002Fconcepts\u002Frequest-lifecycle",{"title":662,"id":663,"canonicalKey":664,"locale":8,"draft":6,"navigation":665,"icon":666,"path":667},"SSR, hydration, and real-time","content:docs:5.concepts:3.ssr-hydration-realtime.md","5\u002F3",{"icon":666},"i-lucide-refresh-cw","\u002Fdocs\u002Fconcepts\u002Fssr-hydration-realtime",{"title":669,"id":670,"canonicalKey":671,"locale":8,"draft":6,"navigation":672,"icon":124,"path":673},"Query state and caching","content:docs:5.concepts:4.query-ownership-and-caching.md","5\u002F4",{"icon":124},"\u002Fdocs\u002Fconcepts\u002Fquery-ownership-and-caching",{"title":675,"id":676,"canonicalKey":677,"locale":8,"draft":6,"navigation":678,"icon":679,"path":680},"Authentication and identity","content:docs:5.concepts:5.authentication-and-identity.md","5\u002F5",{"icon":679},"i-lucide-fingerprint","\u002Fdocs\u002Fconcepts\u002Fauthentication-and-identity",{"title":682,"id":683,"canonicalKey":684,"locale":8,"draft":6,"navigation":685,"icon":108,"path":686},"Server and client boundaries","content:docs:5.concepts:6.server-and-client-boundaries.md","5\u002F6",{"icon":108},"\u002Fdocs\u002Fconcepts\u002Fserver-and-client-boundaries",{"title":688,"id":689,"canonicalKey":690,"locale":8,"draft":6,"navigation":691,"icon":692,"path":693},"Errors and failures","content:docs:5.concepts:7.errors-and-failures.md","5\u002F7",{"icon":692},"i-lucide-circle-x","\u002Fdocs\u002Fconcepts\u002Ferrors-and-failures",{"title":695,"id":696,"canonicalKey":697,"locale":8,"draft":6,"navigation":698,"icon":699,"path":700},"Design decisions","content:docs:5.concepts:8.design-decisions.md","5\u002F8",{"icon":699},"i-lucide-git-branch","\u002Fdocs\u002Fconcepts\u002Fdesign-decisions",{"title":702,"id":703,"canonicalKey":704,"locale":8,"draft":6,"navigation":705,"icon":706,"path":707},"Glossary","content:docs:5.concepts:9.glossary.md","5\u002F9",{"icon":706},"i-lucide-book-a","\u002Fdocs\u002Fconcepts\u002Fglossary",{"title":709,"page":6,"canonicalKey":710,"locale":8,"id":711,"draft":6,"icon":215,"children":712},"Operations","6","content:docs:6.operations:.navigation.yml",[713,719,726,733,739,746,752,759,765],{"title":714,"id":715,"canonicalKey":716,"locale":8,"draft":6,"navigation":717,"icon":45,"path":718},"Deployment","content:docs:6.operations:1.deployment.md","6\u002F1",{"icon":45},"\u002Fdocs\u002Foperations\u002Fdeployment",{"title":720,"id":721,"canonicalKey":722,"locale":8,"draft":6,"navigation":723,"icon":724,"path":725},"Environment variables","content:docs:6.operations:2.environment-variables.md","6\u002F2",{"icon":724},"i-lucide-variable","\u002Fdocs\u002Foperations\u002Fenvironment-variables",{"title":727,"id":728,"canonicalKey":729,"locale":8,"draft":6,"navigation":730,"icon":731,"path":732},"Deploy to Vercel","content:docs:6.operations:3.deploy-to-vercel.md","6\u002F3",{"icon":731},"i-lucide-triangle","\u002Fdocs\u002Foperations\u002Fdeploy-to-vercel",{"title":734,"id":735,"canonicalKey":736,"locale":8,"draft":6,"navigation":737,"icon":415,"path":738},"Troubleshooting","content:docs:6.operations:4.troubleshooting.md","6\u002F4",{"icon":415},"\u002Fdocs\u002Foperations\u002Ftroubleshooting",{"title":740,"id":741,"canonicalKey":742,"locale":8,"draft":6,"navigation":743,"icon":744,"path":745},"Release compatibility","content:docs:6.operations:5.release-compatibility.md","6\u002F5",{"icon":744},"i-lucide-badge-check","\u002Fdocs\u002Foperations\u002Frelease-compatibility",{"title":747,"id":748,"canonicalKey":749,"locale":8,"draft":6,"navigation":750,"icon":87,"path":751},"Security model","content:docs:6.operations:6.security-model.md","6\u002F6",{"icon":87},"\u002Fdocs\u002Foperations\u002Fsecurity-model",{"title":753,"id":754,"canonicalKey":755,"locale":8,"draft":6,"navigation":756,"icon":757,"path":758},"Upgrade to 1.0","content:docs:6.operations:7.upgrade-to-1-0.md","6\u002F7",{"icon":757},"i-lucide-arrow-up-circle","\u002Fdocs\u002Foperations\u002Fupgrade-to-1-0",{"title":760,"id":761,"canonicalKey":762,"locale":8,"draft":6,"navigation":763,"icon":45,"path":764},"Before your app goes live","content:docs:6.operations:8.before-launch.md","6\u002F8",{"icon":45},"\u002Fdocs\u002Foperations\u002Fbefore-launch",{"title":766,"id":767,"canonicalKey":768,"locale":8,"draft":6,"navigation":769,"icon":770,"path":771},"Log streams and PostHog","content:docs:6.operations:9.log-streams.md","6\u002F9",{"icon":770},"i-lucide-activity","\u002Fdocs\u002Foperations\u002Flog-streams",{"title":773,"page":6,"canonicalKey":774,"locale":8,"id":775,"draft":6,"icon":776,"children":777},"Reference","7","content:docs:7.reference:.navigation.yml","i-lucide-braces",[778,784,790,796,803,810,817,823,830],{"title":779,"id":780,"canonicalKey":781,"locale":8,"draft":6,"navigation":782,"icon":776,"path":783},"Composables","content:docs:7.reference:1.composables.md","7\u002F1",{"icon":776},"\u002Fdocs\u002Freference\u002Fcomposables",{"title":785,"id":786,"canonicalKey":787,"locale":8,"draft":6,"navigation":788,"icon":330,"path":789},"Server API","content:docs:7.reference:3.server-api.md","7\u002F3",{"icon":330},"\u002Fdocs\u002Freference\u002Fserver-api",{"title":791,"id":792,"canonicalKey":793,"locale":8,"draft":6,"navigation":794,"icon":692,"path":795},"Error types","content:docs:7.reference:4.error-types.md","7\u002F4",{"icon":692},"\u002Fdocs\u002Freference\u002Ferror-types",{"title":797,"id":798,"canonicalKey":799,"locale":8,"draft":6,"navigation":800,"icon":801,"path":802},"Module configuration","content:docs:7.reference:5.module-configuration.md","7\u002F5",{"icon":801},"i-lucide-settings","\u002Fdocs\u002Freference\u002Fmodule-configuration",{"title":804,"id":805,"canonicalKey":806,"locale":8,"draft":6,"navigation":807,"icon":808,"path":809},"Package exports","content:docs:7.reference:6.package-exports.md","7\u002F6",{"icon":808},"i-lucide-package-open","\u002Fdocs\u002Freference\u002Fpackage-exports",{"title":811,"id":812,"canonicalKey":813,"locale":8,"draft":6,"navigation":814,"icon":815,"path":816},"API reference","content:docs:7.reference:7.api-surface.md","7\u002F7",{"icon":815},"i-lucide-list","\u002Fdocs\u002Freference\u002Fapi-surface",{"title":818,"id":819,"canonicalKey":820,"locale":8,"draft":6,"navigation":821,"icon":519,"path":822},"Experimental APIs","content:docs:7.reference:8.experimental.md","7\u002F8",{"icon":519},"\u002Fdocs\u002Freference\u002Fexperimental",{"title":824,"id":825,"canonicalKey":826,"locale":8,"draft":6,"navigation":827,"icon":828,"path":829},"Command line","content:docs:7.reference:9.cli.md","7\u002F9",{"icon":828},"i-lucide-terminal","\u002Fdocs\u002Freference\u002Fcli",{"title":831,"id":832,"canonicalKey":833,"locale":8,"draft":6,"navigation":834,"icon":835,"path":836},"Operation error codes","content:docs:7.reference:10.operation-error-codes.md","7\u002F10",{"icon":835},"i-lucide-octagon-alert","\u002Fdocs\u002Freference\u002Foperation-error-codes",{"title":838,"id":839,"canonicalKey":840,"locale":8,"draft":6,"path":841},"Better Convex documentation","content:docs:index.md","\u002F","\u002Fdocs",{"title":301,"description":843,"navigation":844,"body":845,"type":2563,"id":302,"canonicalKey":303,"draft":6,"partial":6,"locale":8,"collection":2564,"navigationFile":6,"file":2565,"route":2571,"resolution":2573},"Serve sign-in for several Nuxt applications on different domains from one Convex deployment.",{"icon":305},{"type":846,"children":847,"toc":2553},"root",[848,856,863,919,924,930,948,1075,1080,1236,1248,1254,1259,1309,1326,1331,1403,1409,1426,2012,2543],{"type":849,"tag":850,"props":851,"children":852},"element","p",{},[853],{"type":854,"value":855},"text","One Convex deployment can serve several Nuxt applications on different domains, for example one site per customer. Each site keeps its own sign-in, cookies, and email links. Convex functions still decide which site a user may change.",{"type":849,"tag":857,"props":858,"children":860},"h2",{"id":859},"how-it-works",[861],{"type":854,"value":862},"How it works",{"type":849,"tag":864,"props":865,"children":866},"ol",{},[867,888,900],{"type":849,"tag":868,"props":869,"children":870},"li",{},[871,873,879,881,886],{"type":854,"value":872},"Each Nuxt application sets its own ",{"type":849,"tag":874,"props":875,"children":876},"code",{},[877],{"type":854,"value":878},"auth.origin",{"type":854,"value":880},", such as ",{"type":849,"tag":874,"props":882,"children":883},{},[884],{"type":854,"value":885},"https:\u002F\u002Fbakery.example",{"type":854,"value":887},".",{"type":849,"tag":868,"props":889,"children":890},{},[891,893,898],{"type":854,"value":892},"The auth proxy of that application signs its origin with ",{"type":849,"tag":874,"props":894,"children":895},{},[896],{"type":854,"value":897},"BCN_AUTH_PROXY_IP_SECRET",{"type":854,"value":899}," and sends it with each auth request to Convex.",{"type":849,"tag":868,"props":901,"children":902},{},[903,905,910,912,917],{"type":854,"value":904},"Convex checks the signature and that the origin is ",{"type":849,"tag":874,"props":906,"children":907},{},[908],{"type":854,"value":909},"SITE_URL",{"type":854,"value":911}," or one of ",{"type":849,"tag":874,"props":913,"children":914},{},[915],{"type":854,"value":916},"siteOrigins",{"type":854,"value":918},". It then runs Better Auth with that origin as the base URL and the only trusted origin.",{"type":849,"tag":850,"props":920,"children":921},{},[922],{"type":854,"value":923},"Better Auth therefore sets cookies for the site that the visitor uses, and email links and redirects point back to that site. A request with a wrong signature or an origin that is not in the list fails. The browser cannot choose the origin.",{"type":849,"tag":857,"props":925,"children":927},{"id":926},"configure-convex",[928],{"type":854,"value":929},"Configure Convex",{"type":849,"tag":850,"props":931,"children":932},{},[933,935,940,942,946],{"type":854,"value":934},"List the other origins in ",{"type":849,"tag":874,"props":936,"children":937},{},[938],{"type":854,"value":939},"createBetterConvexAuth",{"type":854,"value":941},". ",{"type":849,"tag":874,"props":943,"children":944},{},[945],{"type":854,"value":909},{"type":854,"value":947}," stays the main origin.",{"type":849,"tag":949,"props":950,"children":954},"pre",{"language":951,"filename":952,"class":953},"ts","convex\u002Fauth.ts","shiki shiki-themes light-plus dark-plus dark:dark-plus",[955],{"type":849,"tag":874,"props":956,"children":958},{"class":957},"language-ts",[959,1030,1032,1066,1067],{"type":849,"tag":960,"props":961,"children":964},"span",{"class":962,"style":963},"line","display: inline",[965,971,977,983,989,994,999,1005,1010,1016,1020,1025],{"type":849,"tag":960,"props":966,"children":968},{"style":967},"color:#AF00DB;--shiki-dark:#C586C0",[969],{"type":854,"value":970},"export",{"type":849,"tag":960,"props":972,"children":974},{"style":973},"color:#0000FF;--shiki-dark:#569CD6",[975],{"type":854,"value":976}," const",{"type":849,"tag":960,"props":978,"children":980},{"style":979},"color:#0070C1;--shiki-dark:#4FC1FF",[981],{"type":854,"value":982}," auth",{"type":849,"tag":960,"props":984,"children":986},{"style":985},"color:#000000;--shiki-dark:#D4D4D4",[987],{"type":854,"value":988}," = ",{"type":849,"tag":960,"props":990,"children":992},{"style":991},"color:#795E26;--shiki-dark:#DCDCAA",[993],{"type":854,"value":939},{"type":849,"tag":960,"props":995,"children":996},{"style":985},[997],{"type":854,"value":998},"\u003C",{"type":849,"tag":960,"props":1000,"children":1002},{"style":1001},"color:#267F99;--shiki-dark:#4EC9B0",[1003],{"type":854,"value":1004},"DataModel",{"type":849,"tag":960,"props":1006,"children":1007},{"style":985},[1008],{"type":854,"value":1009},">(",{"type":849,"tag":960,"props":1011,"children":1013},{"style":1012},"color:#001080;--shiki-dark:#9CDCFE",[1014],{"type":854,"value":1015},"components",{"type":849,"tag":960,"props":1017,"children":1018},{"style":985},[1019],{"type":854,"value":887},{"type":849,"tag":960,"props":1021,"children":1022},{"style":1012},[1023],{"type":854,"value":1024},"betterAuth",{"type":849,"tag":960,"props":1026,"children":1027},{"style":985},[1028],{"type":854,"value":1029},", {",{"type":854,"value":1031},"\n",{"type":849,"tag":960,"props":1033,"children":1034},{"class":962,"style":963},[1035,1040,1045,1051,1056,1061],{"type":849,"tag":960,"props":1036,"children":1037},{"style":1012},[1038],{"type":854,"value":1039},"  siteOrigins:",{"type":849,"tag":960,"props":1041,"children":1042},{"style":985},[1043],{"type":854,"value":1044}," [",{"type":849,"tag":960,"props":1046,"children":1048},{"style":1047},"color:#A31515;--shiki-dark:#CE9178",[1049],{"type":854,"value":1050},"'https:\u002F\u002Fbakery.example'",{"type":849,"tag":960,"props":1052,"children":1053},{"style":985},[1054],{"type":854,"value":1055},", ",{"type":849,"tag":960,"props":1057,"children":1058},{"style":1047},[1059],{"type":854,"value":1060},"'https:\u002F\u002Fflorist.example'",{"type":849,"tag":960,"props":1062,"children":1063},{"style":985},[1064],{"type":854,"value":1065},"],",{"type":854,"value":1031},{"type":849,"tag":960,"props":1068,"children":1069},{"class":962,"style":963},[1070],{"type":849,"tag":960,"props":1071,"children":1072},{"style":985},[1073],{"type":854,"value":1074},"})",{"type":849,"tag":850,"props":1076,"children":1077},{},[1078],{"type":854,"value":1079},"To keep the list in the database, pass a function. Convex calls it for each auth request with the HTTP action context:",{"type":849,"tag":949,"props":1081,"children":1082},{"language":951,"filename":952,"class":953},[1083],{"type":849,"tag":874,"props":1084,"children":1085},{"class":957},[1086,1137,1138,1228,1229],{"type":849,"tag":960,"props":1087,"children":1088},{"class":962,"style":963},[1089,1093,1097,1101,1105,1109,1113,1117,1121,1125,1129,1133],{"type":849,"tag":960,"props":1090,"children":1091},{"style":967},[1092],{"type":854,"value":970},{"type":849,"tag":960,"props":1094,"children":1095},{"style":973},[1096],{"type":854,"value":976},{"type":849,"tag":960,"props":1098,"children":1099},{"style":979},[1100],{"type":854,"value":982},{"type":849,"tag":960,"props":1102,"children":1103},{"style":985},[1104],{"type":854,"value":988},{"type":849,"tag":960,"props":1106,"children":1107},{"style":991},[1108],{"type":854,"value":939},{"type":849,"tag":960,"props":1110,"children":1111},{"style":985},[1112],{"type":854,"value":998},{"type":849,"tag":960,"props":1114,"children":1115},{"style":1001},[1116],{"type":854,"value":1004},{"type":849,"tag":960,"props":1118,"children":1119},{"style":985},[1120],{"type":854,"value":1009},{"type":849,"tag":960,"props":1122,"children":1123},{"style":1012},[1124],{"type":854,"value":1015},{"type":849,"tag":960,"props":1126,"children":1127},{"style":985},[1128],{"type":854,"value":887},{"type":849,"tag":960,"props":1130,"children":1131},{"style":1012},[1132],{"type":854,"value":1024},{"type":849,"tag":960,"props":1134,"children":1135},{"style":985},[1136],{"type":854,"value":1029},{"type":854,"value":1031},{"type":849,"tag":960,"props":1139,"children":1140},{"class":962,"style":963},[1141,1146,1151,1156,1161,1166,1171,1176,1181,1186,1190,1195,1200,1205,1209,1214,1218,1223],{"type":849,"tag":960,"props":1142,"children":1143},{"style":991},[1144],{"type":854,"value":1145},"  siteOrigins",{"type":849,"tag":960,"props":1147,"children":1148},{"style":1012},[1149],{"type":854,"value":1150},":",{"type":849,"tag":960,"props":1152,"children":1153},{"style":973},[1154],{"type":854,"value":1155}," async",{"type":849,"tag":960,"props":1157,"children":1158},{"style":985},[1159],{"type":854,"value":1160}," (",{"type":849,"tag":960,"props":1162,"children":1163},{"style":1012},[1164],{"type":854,"value":1165},"ctx",{"type":849,"tag":960,"props":1167,"children":1168},{"style":985},[1169],{"type":854,"value":1170},") ",{"type":849,"tag":960,"props":1172,"children":1173},{"style":973},[1174],{"type":854,"value":1175},"=>",{"type":849,"tag":960,"props":1177,"children":1178},{"style":967},[1179],{"type":854,"value":1180}," await",{"type":849,"tag":960,"props":1182,"children":1183},{"style":1012},[1184],{"type":854,"value":1185}," ctx",{"type":849,"tag":960,"props":1187,"children":1188},{"style":985},[1189],{"type":854,"value":887},{"type":849,"tag":960,"props":1191,"children":1192},{"style":991},[1193],{"type":854,"value":1194},"runQuery",{"type":849,"tag":960,"props":1196,"children":1197},{"style":985},[1198],{"type":854,"value":1199},"(",{"type":849,"tag":960,"props":1201,"children":1202},{"style":1012},[1203],{"type":854,"value":1204},"internal",{"type":849,"tag":960,"props":1206,"children":1207},{"style":985},[1208],{"type":854,"value":887},{"type":849,"tag":960,"props":1210,"children":1211},{"style":1012},[1212],{"type":854,"value":1213},"sites",{"type":849,"tag":960,"props":1215,"children":1216},{"style":985},[1217],{"type":854,"value":887},{"type":849,"tag":960,"props":1219,"children":1220},{"style":1012},[1221],{"type":854,"value":1222},"origins",{"type":849,"tag":960,"props":1224,"children":1225},{"style":985},[1226],{"type":854,"value":1227},", {}),",{"type":854,"value":1031},{"type":849,"tag":960,"props":1230,"children":1231},{"class":962,"style":963},[1232],{"type":849,"tag":960,"props":1233,"children":1234},{"style":985},[1235],{"type":854,"value":1074},{"type":849,"tag":850,"props":1237,"children":1238},{},[1239,1241,1246],{"type":854,"value":1240},"Each entry must be an exact origin: scheme, host, and port only. A ",{"type":849,"tag":874,"props":1242,"children":1243},{},[1244],{"type":854,"value":1245},"*",{"type":854,"value":1247}," is rejected; there are no wildcard origins. Keep the query small, because every auth request runs it. If the function throws or returns something else than a list of origins, the auth request fails.",{"type":849,"tag":857,"props":1249,"children":1251},{"id":1250},"configure-each-nuxt-application",[1252],{"type":854,"value":1253},"Configure each Nuxt application",{"type":849,"tag":850,"props":1255,"children":1256},{},[1257],{"type":854,"value":1258},"Give every Nuxt application:",{"type":849,"tag":1260,"props":1261,"children":1262},"ul",{},[1263,1280,1299],{"type":849,"tag":868,"props":1264,"children":1265},{},[1266,1268,1272,1274,1278],{"type":854,"value":1267},"its own ",{"type":849,"tag":874,"props":1269,"children":1270},{},[1271],{"type":854,"value":878},{"type":854,"value":1273}," (or ",{"type":849,"tag":874,"props":1275,"children":1276},{},[1277],{"type":854,"value":909},{"type":854,"value":1279},"),",{"type":849,"tag":868,"props":1281,"children":1282},{},[1283,1285,1290,1292,1297],{"type":854,"value":1284},"the same ",{"type":849,"tag":874,"props":1286,"children":1287},{},[1288],{"type":854,"value":1289},"NUXT_PUBLIC_CONVEX_URL",{"type":854,"value":1291}," and ",{"type":849,"tag":874,"props":1293,"children":1294},{},[1295],{"type":854,"value":1296},"NUXT_PUBLIC_CONVEX_SITE_URL",{"type":854,"value":1298},",",{"type":849,"tag":868,"props":1300,"children":1301},{},[1302,1303,1307],{"type":854,"value":1284},{"type":849,"tag":874,"props":1304,"children":1305},{},[1306],{"type":854,"value":897},{"type":854,"value":1308}," as the Convex deployment.",{"type":849,"tag":850,"props":1310,"children":1311},{},[1312,1314,1318,1320,1324],{"type":854,"value":1313},"Without ",{"type":849,"tag":874,"props":1315,"children":1316},{},[1317],{"type":854,"value":897},{"type":854,"value":1319},", the proxy sends no origin, and Convex uses ",{"type":849,"tag":874,"props":1321,"children":1322},{},[1323],{"type":854,"value":909},{"type":854,"value":1325},". This is only for loopback development.",{"type":849,"tag":857,"props":1327,"children":1329},{"id":1328},"limits",[1330],{"type":854,"value":450},{"type":849,"tag":1260,"props":1332,"children":1333},{},[1334,1370,1381,1386,1391],{"type":849,"tag":868,"props":1335,"children":1336},{},[1337,1339,1344,1345,1350,1352,1356,1358,1362,1364,1368],{"type":854,"value":1338},"The OAuth provider and MCP (",{"type":849,"tag":874,"props":1340,"children":1341},{},[1342],{"type":854,"value":1343},"oauth",{"type":854,"value":1055},{"type":849,"tag":874,"props":1346,"children":1347},{},[1348],{"type":854,"value":1349},"oauthProvider",{"type":854,"value":1351},") always use ",{"type":849,"tag":874,"props":1353,"children":1354},{},[1355],{"type":854,"value":909},{"type":854,"value":1357}," as the issuer. ",{"type":849,"tag":874,"props":1359,"children":1360},{},[1361],{"type":854,"value":939},{"type":854,"value":1363}," rejects ",{"type":849,"tag":874,"props":1365,"children":1366},{},[1367],{"type":854,"value":916},{"type":854,"value":1369}," together with them.",{"type":849,"tag":868,"props":1371,"children":1372},{},[1373,1375,1380],{"type":854,"value":1374},"Social sign-in providers need the callback URL of every site, for example ",{"type":849,"tag":874,"props":1376,"children":1377},{},[1378],{"type":854,"value":1379},"https:\u002F\u002Fbakery.example\u002Fapi\u002Fauth\u002Fcallback\u002Fgoogle",{"type":854,"value":887},{"type":849,"tag":868,"props":1382,"children":1383},{},[1384],{"type":854,"value":1385},"Users and sessions are shared by the deployment. A session cookie is set per domain, so a user signs in on each site separately. Check in every Convex function that the user is a member of the site that the function changes. See the example below.",{"type":849,"tag":868,"props":1387,"children":1388},{},[1389],{"type":854,"value":1390},"A session is not bound to one site. A session cookie copied from one site works on another. Cookies are separated by host name, not by port, so treat every service on a site's host name as trusted.",{"type":849,"tag":868,"props":1392,"children":1393},{},[1394,1396,1401],{"type":854,"value":1395},"Do not set ",{"type":849,"tag":874,"props":1397,"children":1398},{},[1399],{"type":854,"value":1400},"BETTER_AUTH_TRUSTED_ORIGINS",{"type":854,"value":1402},". Better Auth would add those origins next to the verified one, so the auth setup rejects it.",{"type":849,"tag":857,"props":1404,"children":1406},{"id":1405},"check-site-membership-in-every-function",[1407],{"type":854,"value":1408},"Check site membership in every function",{"type":849,"tag":850,"props":1410,"children":1411},{},[1412,1414,1418,1419,1424],{"type":854,"value":1413},"A signed-in user may belong to one site and not another. Keep the site in your\ndata (",{"type":849,"tag":874,"props":1415,"children":1416},{},[1417],{"type":854,"value":1213},{"type":854,"value":1291},{"type":849,"tag":874,"props":1420,"children":1421},{},[1422],{"type":854,"value":1423},"siteMembers",{"type":854,"value":1425}," tables) and pass the site as an argument. Never\nread the site from a request header or the browser origin.",{"type":849,"tag":949,"props":1427,"children":1429},{"language":951,"filename":1428,"class":953},"convex\u002Flib\u002Fsites.ts",[1430],{"type":849,"tag":874,"props":1431,"children":1432},{"class":957},[1433,1466,1467,1470,1471,1505,1506,1548,1549,1578,1579,1582,1583,1661,1662,1710,1711,1744,1745,1771,1772,1883,1884,1901,1902,1973,1974,2003,2004],{"type":849,"tag":960,"props":1434,"children":1435},{"class":962,"style":963},[1436,1441,1446,1451,1456,1461],{"type":849,"tag":960,"props":1437,"children":1438},{"style":967},[1439],{"type":854,"value":1440},"import",{"type":849,"tag":960,"props":1442,"children":1443},{"style":985},[1444],{"type":854,"value":1445}," { ",{"type":849,"tag":960,"props":1447,"children":1448},{"style":1012},[1449],{"type":854,"value":1450},"ConvexError",{"type":849,"tag":960,"props":1452,"children":1453},{"style":985},[1454],{"type":854,"value":1455}," } ",{"type":849,"tag":960,"props":1457,"children":1458},{"style":967},[1459],{"type":854,"value":1460},"from",{"type":849,"tag":960,"props":1462,"children":1463},{"style":1047},[1464],{"type":854,"value":1465}," 'convex\u002Fvalues'",{"type":854,"value":1031},{"type":849,"tag":960,"props":1468,"children":1469},{"class":962,"style":963},[],{"type":854,"value":1031},{"type":849,"tag":960,"props":1472,"children":1473},{"class":962,"style":963},[1474,1478,1483,1487,1492,1496,1500],{"type":849,"tag":960,"props":1475,"children":1476},{"style":967},[1477],{"type":854,"value":1440},{"type":849,"tag":960,"props":1479,"children":1480},{"style":967},[1481],{"type":854,"value":1482}," type",{"type":849,"tag":960,"props":1484,"children":1485},{"style":985},[1486],{"type":854,"value":1445},{"type":849,"tag":960,"props":1488,"children":1489},{"style":1012},[1490],{"type":854,"value":1491},"Id",{"type":849,"tag":960,"props":1493,"children":1494},{"style":985},[1495],{"type":854,"value":1455},{"type":849,"tag":960,"props":1497,"children":1498},{"style":967},[1499],{"type":854,"value":1460},{"type":849,"tag":960,"props":1501,"children":1502},{"style":1047},[1503],{"type":854,"value":1504}," '..\u002F_generated\u002FdataModel'",{"type":854,"value":1031},{"type":849,"tag":960,"props":1507,"children":1508},{"class":962,"style":963},[1509,1513,1517,1521,1526,1530,1535,1539,1543],{"type":849,"tag":960,"props":1510,"children":1511},{"style":967},[1512],{"type":854,"value":1440},{"type":849,"tag":960,"props":1514,"children":1515},{"style":967},[1516],{"type":854,"value":1482},{"type":849,"tag":960,"props":1518,"children":1519},{"style":985},[1520],{"type":854,"value":1445},{"type":849,"tag":960,"props":1522,"children":1523},{"style":1012},[1524],{"type":854,"value":1525},"MutationCtx",{"type":849,"tag":960,"props":1527,"children":1528},{"style":985},[1529],{"type":854,"value":1055},{"type":849,"tag":960,"props":1531,"children":1532},{"style":1012},[1533],{"type":854,"value":1534},"QueryCtx",{"type":849,"tag":960,"props":1536,"children":1537},{"style":985},[1538],{"type":854,"value":1455},{"type":849,"tag":960,"props":1540,"children":1541},{"style":967},[1542],{"type":854,"value":1460},{"type":849,"tag":960,"props":1544,"children":1545},{"style":1047},[1546],{"type":854,"value":1547}," '..\u002F_generated\u002Fserver'",{"type":854,"value":1031},{"type":849,"tag":960,"props":1550,"children":1551},{"class":962,"style":963},[1552,1556,1560,1565,1569,1573],{"type":849,"tag":960,"props":1553,"children":1554},{"style":967},[1555],{"type":854,"value":1440},{"type":849,"tag":960,"props":1557,"children":1558},{"style":985},[1559],{"type":854,"value":1445},{"type":849,"tag":960,"props":1561,"children":1562},{"style":1012},[1563],{"type":854,"value":1564},"auth",{"type":849,"tag":960,"props":1566,"children":1567},{"style":985},[1568],{"type":854,"value":1455},{"type":849,"tag":960,"props":1570,"children":1571},{"style":967},[1572],{"type":854,"value":1460},{"type":849,"tag":960,"props":1574,"children":1575},{"style":1047},[1576],{"type":854,"value":1577}," '..\u002Fauth'",{"type":854,"value":1031},{"type":849,"tag":960,"props":1580,"children":1581},{"class":962,"style":963},[],{"type":854,"value":1031},{"type":849,"tag":960,"props":1584,"children":1585},{"class":962,"style":963},[1586,1590,1594,1599,1604,1608,1612,1617,1621,1626,1630,1634,1639,1643,1647,1651,1656],{"type":849,"tag":960,"props":1587,"children":1588},{"style":967},[1589],{"type":854,"value":970},{"type":849,"tag":960,"props":1591,"children":1592},{"style":973},[1593],{"type":854,"value":1155},{"type":849,"tag":960,"props":1595,"children":1596},{"style":973},[1597],{"type":854,"value":1598}," function",{"type":849,"tag":960,"props":1600,"children":1601},{"style":991},[1602],{"type":854,"value":1603}," requireSiteMember",{"type":849,"tag":960,"props":1605,"children":1606},{"style":985},[1607],{"type":854,"value":1199},{"type":849,"tag":960,"props":1609,"children":1610},{"style":1012},[1611],{"type":854,"value":1165},{"type":849,"tag":960,"props":1613,"children":1614},{"style":985},[1615],{"type":854,"value":1616},": ",{"type":849,"tag":960,"props":1618,"children":1619},{"style":1001},[1620],{"type":854,"value":1534},{"type":849,"tag":960,"props":1622,"children":1623},{"style":985},[1624],{"type":854,"value":1625}," | ",{"type":849,"tag":960,"props":1627,"children":1628},{"style":1001},[1629],{"type":854,"value":1525},{"type":849,"tag":960,"props":1631,"children":1632},{"style":985},[1633],{"type":854,"value":1055},{"type":849,"tag":960,"props":1635,"children":1636},{"style":1012},[1637],{"type":854,"value":1638},"siteId",{"type":849,"tag":960,"props":1640,"children":1641},{"style":985},[1642],{"type":854,"value":1616},{"type":849,"tag":960,"props":1644,"children":1645},{"style":1001},[1646],{"type":854,"value":1491},{"type":849,"tag":960,"props":1648,"children":1649},{"style":985},[1650],{"type":854,"value":998},{"type":849,"tag":960,"props":1652,"children":1653},{"style":1047},[1654],{"type":854,"value":1655},"'sites'",{"type":849,"tag":960,"props":1657,"children":1658},{"style":985},[1659],{"type":854,"value":1660},">) {",{"type":854,"value":1031},{"type":849,"tag":960,"props":1663,"children":1664},{"class":962,"style":963},[1665,1670,1675,1679,1684,1688,1692,1697,1701,1705],{"type":849,"tag":960,"props":1666,"children":1667},{"style":973},[1668],{"type":854,"value":1669},"  const",{"type":849,"tag":960,"props":1671,"children":1672},{"style":979},[1673],{"type":854,"value":1674}," user",{"type":849,"tag":960,"props":1676,"children":1677},{"style":985},[1678],{"type":854,"value":988},{"type":849,"tag":960,"props":1680,"children":1681},{"style":967},[1682],{"type":854,"value":1683},"await",{"type":849,"tag":960,"props":1685,"children":1686},{"style":1012},[1687],{"type":854,"value":982},{"type":849,"tag":960,"props":1689,"children":1690},{"style":985},[1691],{"type":854,"value":887},{"type":849,"tag":960,"props":1693,"children":1694},{"style":991},[1695],{"type":854,"value":1696},"requireUser",{"type":849,"tag":960,"props":1698,"children":1699},{"style":985},[1700],{"type":854,"value":1199},{"type":849,"tag":960,"props":1702,"children":1703},{"style":1012},[1704],{"type":854,"value":1165},{"type":849,"tag":960,"props":1706,"children":1707},{"style":985},[1708],{"type":854,"value":1709},")",{"type":854,"value":1031},{"type":849,"tag":960,"props":1712,"children":1713},{"class":962,"style":963},[1714,1718,1723,1727,1731,1735,1739],{"type":849,"tag":960,"props":1715,"children":1716},{"style":973},[1717],{"type":854,"value":1669},{"type":849,"tag":960,"props":1719,"children":1720},{"style":979},[1721],{"type":854,"value":1722}," member",{"type":849,"tag":960,"props":1724,"children":1725},{"style":985},[1726],{"type":854,"value":988},{"type":849,"tag":960,"props":1728,"children":1729},{"style":967},[1730],{"type":854,"value":1683},{"type":849,"tag":960,"props":1732,"children":1733},{"style":1012},[1734],{"type":854,"value":1185},{"type":849,"tag":960,"props":1736,"children":1737},{"style":985},[1738],{"type":854,"value":887},{"type":849,"tag":960,"props":1740,"children":1741},{"style":1012},[1742],{"type":854,"value":1743},"db",{"type":854,"value":1031},{"type":849,"tag":960,"props":1746,"children":1747},{"class":962,"style":963},[1748,1753,1758,1762,1767],{"type":849,"tag":960,"props":1749,"children":1750},{"style":985},[1751],{"type":854,"value":1752},"    .",{"type":849,"tag":960,"props":1754,"children":1755},{"style":991},[1756],{"type":854,"value":1757},"query",{"type":849,"tag":960,"props":1759,"children":1760},{"style":985},[1761],{"type":854,"value":1199},{"type":849,"tag":960,"props":1763,"children":1764},{"style":1047},[1765],{"type":854,"value":1766},"'siteMembers'",{"type":849,"tag":960,"props":1768,"children":1769},{"style":985},[1770],{"type":854,"value":1709},{"type":854,"value":1031},{"type":849,"tag":960,"props":1773,"children":1774},{"class":962,"style":963},[1775,1779,1784,1788,1793,1798,1803,1807,1811,1816,1820,1825,1829,1834,1838,1842,1847,1851,1855,1860,1864,1869,1873,1878],{"type":849,"tag":960,"props":1776,"children":1777},{"style":985},[1778],{"type":854,"value":1752},{"type":849,"tag":960,"props":1780,"children":1781},{"style":991},[1782],{"type":854,"value":1783},"withIndex",{"type":849,"tag":960,"props":1785,"children":1786},{"style":985},[1787],{"type":854,"value":1199},{"type":849,"tag":960,"props":1789,"children":1790},{"style":1047},[1791],{"type":854,"value":1792},"'by_site_and_user'",{"type":849,"tag":960,"props":1794,"children":1795},{"style":985},[1796],{"type":854,"value":1797},", (",{"type":849,"tag":960,"props":1799,"children":1800},{"style":1012},[1801],{"type":854,"value":1802},"q",{"type":849,"tag":960,"props":1804,"children":1805},{"style":985},[1806],{"type":854,"value":1170},{"type":849,"tag":960,"props":1808,"children":1809},{"style":973},[1810],{"type":854,"value":1175},{"type":849,"tag":960,"props":1812,"children":1813},{"style":1012},[1814],{"type":854,"value":1815}," q",{"type":849,"tag":960,"props":1817,"children":1818},{"style":985},[1819],{"type":854,"value":887},{"type":849,"tag":960,"props":1821,"children":1822},{"style":991},[1823],{"type":854,"value":1824},"eq",{"type":849,"tag":960,"props":1826,"children":1827},{"style":985},[1828],{"type":854,"value":1199},{"type":849,"tag":960,"props":1830,"children":1831},{"style":1047},[1832],{"type":854,"value":1833},"'siteId'",{"type":849,"tag":960,"props":1835,"children":1836},{"style":985},[1837],{"type":854,"value":1055},{"type":849,"tag":960,"props":1839,"children":1840},{"style":1012},[1841],{"type":854,"value":1638},{"type":849,"tag":960,"props":1843,"children":1844},{"style":985},[1845],{"type":854,"value":1846},").",{"type":849,"tag":960,"props":1848,"children":1849},{"style":991},[1850],{"type":854,"value":1824},{"type":849,"tag":960,"props":1852,"children":1853},{"style":985},[1854],{"type":854,"value":1199},{"type":849,"tag":960,"props":1856,"children":1857},{"style":1047},[1858],{"type":854,"value":1859},"'userId'",{"type":849,"tag":960,"props":1861,"children":1862},{"style":985},[1863],{"type":854,"value":1055},{"type":849,"tag":960,"props":1865,"children":1866},{"style":1012},[1867],{"type":854,"value":1868},"user",{"type":849,"tag":960,"props":1870,"children":1871},{"style":985},[1872],{"type":854,"value":887},{"type":849,"tag":960,"props":1874,"children":1875},{"style":1012},[1876],{"type":854,"value":1877},"id",{"type":849,"tag":960,"props":1879,"children":1880},{"style":985},[1881],{"type":854,"value":1882},"))",{"type":854,"value":1031},{"type":849,"tag":960,"props":1885,"children":1886},{"class":962,"style":963},[1887,1891,1896],{"type":849,"tag":960,"props":1888,"children":1889},{"style":985},[1890],{"type":854,"value":1752},{"type":849,"tag":960,"props":1892,"children":1893},{"style":991},[1894],{"type":854,"value":1895},"unique",{"type":849,"tag":960,"props":1897,"children":1898},{"style":985},[1899],{"type":854,"value":1900},"()",{"type":854,"value":1031},{"type":849,"tag":960,"props":1903,"children":1904},{"class":962,"style":963},[1905,1910,1915,1920,1924,1929,1934,1939,1944,1949,1954,1958,1963,1968],{"type":849,"tag":960,"props":1906,"children":1907},{"style":967},[1908],{"type":854,"value":1909},"  if",{"type":849,"tag":960,"props":1911,"children":1912},{"style":985},[1913],{"type":854,"value":1914}," (!",{"type":849,"tag":960,"props":1916,"children":1917},{"style":1012},[1918],{"type":854,"value":1919},"member",{"type":849,"tag":960,"props":1921,"children":1922},{"style":985},[1923],{"type":854,"value":1170},{"type":849,"tag":960,"props":1925,"children":1926},{"style":967},[1927],{"type":854,"value":1928},"throw",{"type":849,"tag":960,"props":1930,"children":1931},{"style":973},[1932],{"type":854,"value":1933}," new",{"type":849,"tag":960,"props":1935,"children":1936},{"style":991},[1937],{"type":854,"value":1938}," ConvexError",{"type":849,"tag":960,"props":1940,"children":1941},{"style":985},[1942],{"type":854,"value":1943},"({ ",{"type":849,"tag":960,"props":1945,"children":1946},{"style":1012},[1947],{"type":854,"value":1948},"code:",{"type":849,"tag":960,"props":1950,"children":1951},{"style":1047},[1952],{"type":854,"value":1953}," 'FORBIDDEN'",{"type":849,"tag":960,"props":1955,"children":1956},{"style":985},[1957],{"type":854,"value":1055},{"type":849,"tag":960,"props":1959,"children":1960},{"style":1012},[1961],{"type":854,"value":1962},"message:",{"type":849,"tag":960,"props":1964,"children":1965},{"style":1047},[1966],{"type":854,"value":1967}," 'Not a member of this site'",{"type":849,"tag":960,"props":1969,"children":1970},{"style":985},[1971],{"type":854,"value":1972}," })",{"type":854,"value":1031},{"type":849,"tag":960,"props":1975,"children":1976},{"class":962,"style":963},[1977,1982,1986,1990,1994,1998],{"type":849,"tag":960,"props":1978,"children":1979},{"style":967},[1980],{"type":854,"value":1981},"  return",{"type":849,"tag":960,"props":1983,"children":1984},{"style":985},[1985],{"type":854,"value":1445},{"type":849,"tag":960,"props":1987,"children":1988},{"style":1012},[1989],{"type":854,"value":1868},{"type":849,"tag":960,"props":1991,"children":1992},{"style":985},[1993],{"type":854,"value":1055},{"type":849,"tag":960,"props":1995,"children":1996},{"style":1012},[1997],{"type":854,"value":1919},{"type":849,"tag":960,"props":1999,"children":2000},{"style":985},[2001],{"type":854,"value":2002}," }",{"type":854,"value":1031},{"type":849,"tag":960,"props":2005,"children":2006},{"class":962,"style":963},[2007],{"type":849,"tag":960,"props":2008,"children":2009},{"style":985},[2010],{"type":854,"value":2011},"}",{"type":849,"tag":949,"props":2013,"children":2015},{"language":951,"filename":2014,"class":953},"convex\u002Fpages.ts",[2016],{"type":849,"tag":874,"props":2017,"children":2018},{"class":957},[2019,2055,2056,2059,2060,2089,2090,2119,2120,2123,2124,2153,2154,2228,2229,2275,2276,2316,2317,2380,2381,2461,2462,2526,2527,2535,2536],{"type":849,"tag":960,"props":2020,"children":2021},{"class":962,"style":963},[2022,2026,2030,2034,2038,2043,2047,2051],{"type":849,"tag":960,"props":2023,"children":2024},{"style":967},[2025],{"type":854,"value":1440},{"type":849,"tag":960,"props":2027,"children":2028},{"style":985},[2029],{"type":854,"value":1445},{"type":849,"tag":960,"props":2031,"children":2032},{"style":1012},[2033],{"type":854,"value":1450},{"type":849,"tag":960,"props":2035,"children":2036},{"style":985},[2037],{"type":854,"value":1055},{"type":849,"tag":960,"props":2039,"children":2040},{"style":1012},[2041],{"type":854,"value":2042},"v",{"type":849,"tag":960,"props":2044,"children":2045},{"style":985},[2046],{"type":854,"value":1455},{"type":849,"tag":960,"props":2048,"children":2049},{"style":967},[2050],{"type":854,"value":1460},{"type":849,"tag":960,"props":2052,"children":2053},{"style":1047},[2054],{"type":854,"value":1465},{"type":854,"value":1031},{"type":849,"tag":960,"props":2057,"children":2058},{"class":962,"style":963},[],{"type":854,"value":1031},{"type":849,"tag":960,"props":2061,"children":2062},{"class":962,"style":963},[2063,2067,2071,2076,2080,2084],{"type":849,"tag":960,"props":2064,"children":2065},{"style":967},[2066],{"type":854,"value":1440},{"type":849,"tag":960,"props":2068,"children":2069},{"style":985},[2070],{"type":854,"value":1445},{"type":849,"tag":960,"props":2072,"children":2073},{"style":1012},[2074],{"type":854,"value":2075},"mutation",{"type":849,"tag":960,"props":2077,"children":2078},{"style":985},[2079],{"type":854,"value":1455},{"type":849,"tag":960,"props":2081,"children":2082},{"style":967},[2083],{"type":854,"value":1460},{"type":849,"tag":960,"props":2085,"children":2086},{"style":1047},[2087],{"type":854,"value":2088}," '.\u002F_generated\u002Fserver'",{"type":854,"value":1031},{"type":849,"tag":960,"props":2091,"children":2092},{"class":962,"style":963},[2093,2097,2101,2106,2110,2114],{"type":849,"tag":960,"props":2094,"children":2095},{"style":967},[2096],{"type":854,"value":1440},{"type":849,"tag":960,"props":2098,"children":2099},{"style":985},[2100],{"type":854,"value":1445},{"type":849,"tag":960,"props":2102,"children":2103},{"style":1012},[2104],{"type":854,"value":2105},"requireSiteMember",{"type":849,"tag":960,"props":2107,"children":2108},{"style":985},[2109],{"type":854,"value":1455},{"type":849,"tag":960,"props":2111,"children":2112},{"style":967},[2113],{"type":854,"value":1460},{"type":849,"tag":960,"props":2115,"children":2116},{"style":1047},[2117],{"type":854,"value":2118}," '.\u002Flib\u002Fsites'",{"type":854,"value":1031},{"type":849,"tag":960,"props":2121,"children":2122},{"class":962,"style":963},[],{"type":854,"value":1031},{"type":849,"tag":960,"props":2125,"children":2126},{"class":962,"style":963},[2127,2131,2135,2140,2144,2148],{"type":849,"tag":960,"props":2128,"children":2129},{"style":967},[2130],{"type":854,"value":970},{"type":849,"tag":960,"props":2132,"children":2133},{"style":973},[2134],{"type":854,"value":976},{"type":849,"tag":960,"props":2136,"children":2137},{"style":979},[2138],{"type":854,"value":2139}," publish",{"type":849,"tag":960,"props":2141,"children":2142},{"style":985},[2143],{"type":854,"value":988},{"type":849,"tag":960,"props":2145,"children":2146},{"style":991},[2147],{"type":854,"value":2075},{"type":849,"tag":960,"props":2149,"children":2150},{"style":985},[2151],{"type":854,"value":2152},"({",{"type":854,"value":1031},{"type":849,"tag":960,"props":2155,"children":2156},{"class":962,"style":963},[2157,2162,2166,2171,2176,2180,2184,2188,2192,2197,2202,2206,2210,2214,2218,2223],{"type":849,"tag":960,"props":2158,"children":2159},{"style":1012},[2160],{"type":854,"value":2161},"  args:",{"type":849,"tag":960,"props":2163,"children":2164},{"style":985},[2165],{"type":854,"value":1445},{"type":849,"tag":960,"props":2167,"children":2168},{"style":1012},[2169],{"type":854,"value":2170},"siteId:",{"type":849,"tag":960,"props":2172,"children":2173},{"style":1012},[2174],{"type":854,"value":2175}," v",{"type":849,"tag":960,"props":2177,"children":2178},{"style":985},[2179],{"type":854,"value":887},{"type":849,"tag":960,"props":2181,"children":2182},{"style":991},[2183],{"type":854,"value":1877},{"type":849,"tag":960,"props":2185,"children":2186},{"style":985},[2187],{"type":854,"value":1199},{"type":849,"tag":960,"props":2189,"children":2190},{"style":1047},[2191],{"type":854,"value":1655},{"type":849,"tag":960,"props":2193,"children":2194},{"style":985},[2195],{"type":854,"value":2196},"), ",{"type":849,"tag":960,"props":2198,"children":2199},{"style":1012},[2200],{"type":854,"value":2201},"pageId:",{"type":849,"tag":960,"props":2203,"children":2204},{"style":1012},[2205],{"type":854,"value":2175},{"type":849,"tag":960,"props":2207,"children":2208},{"style":985},[2209],{"type":854,"value":887},{"type":849,"tag":960,"props":2211,"children":2212},{"style":991},[2213],{"type":854,"value":1877},{"type":849,"tag":960,"props":2215,"children":2216},{"style":985},[2217],{"type":854,"value":1199},{"type":849,"tag":960,"props":2219,"children":2220},{"style":1047},[2221],{"type":854,"value":2222},"'pages'",{"type":849,"tag":960,"props":2224,"children":2225},{"style":985},[2226],{"type":854,"value":2227},") },",{"type":854,"value":1031},{"type":849,"tag":960,"props":2230,"children":2231},{"class":962,"style":963},[2232,2237,2241,2245,2249,2253,2257,2262,2266,2270],{"type":849,"tag":960,"props":2233,"children":2234},{"style":991},[2235],{"type":854,"value":2236},"  handler",{"type":849,"tag":960,"props":2238,"children":2239},{"style":1012},[2240],{"type":854,"value":1150},{"type":849,"tag":960,"props":2242,"children":2243},{"style":973},[2244],{"type":854,"value":1155},{"type":849,"tag":960,"props":2246,"children":2247},{"style":985},[2248],{"type":854,"value":1160},{"type":849,"tag":960,"props":2250,"children":2251},{"style":1012},[2252],{"type":854,"value":1165},{"type":849,"tag":960,"props":2254,"children":2255},{"style":985},[2256],{"type":854,"value":1055},{"type":849,"tag":960,"props":2258,"children":2259},{"style":1012},[2260],{"type":854,"value":2261},"args",{"type":849,"tag":960,"props":2263,"children":2264},{"style":985},[2265],{"type":854,"value":1170},{"type":849,"tag":960,"props":2267,"children":2268},{"style":973},[2269],{"type":854,"value":1175},{"type":849,"tag":960,"props":2271,"children":2272},{"style":985},[2273],{"type":854,"value":2274}," {",{"type":854,"value":1031},{"type":849,"tag":960,"props":2277,"children":2278},{"class":962,"style":963},[2279,2284,2288,2292,2296,2300,2304,2308,2312],{"type":849,"tag":960,"props":2280,"children":2281},{"style":967},[2282],{"type":854,"value":2283},"    await",{"type":849,"tag":960,"props":2285,"children":2286},{"style":991},[2287],{"type":854,"value":1603},{"type":849,"tag":960,"props":2289,"children":2290},{"style":985},[2291],{"type":854,"value":1199},{"type":849,"tag":960,"props":2293,"children":2294},{"style":1012},[2295],{"type":854,"value":1165},{"type":849,"tag":960,"props":2297,"children":2298},{"style":985},[2299],{"type":854,"value":1055},{"type":849,"tag":960,"props":2301,"children":2302},{"style":1012},[2303],{"type":854,"value":2261},{"type":849,"tag":960,"props":2305,"children":2306},{"style":985},[2307],{"type":854,"value":887},{"type":849,"tag":960,"props":2309,"children":2310},{"style":1012},[2311],{"type":854,"value":1638},{"type":849,"tag":960,"props":2313,"children":2314},{"style":985},[2315],{"type":854,"value":1709},{"type":854,"value":1031},{"type":849,"tag":960,"props":2318,"children":2319},{"class":962,"style":963},[2320,2325,2330,2334,2338,2342,2346,2350,2354,2359,2363,2367,2371,2376],{"type":849,"tag":960,"props":2321,"children":2322},{"style":973},[2323],{"type":854,"value":2324},"    const",{"type":849,"tag":960,"props":2326,"children":2327},{"style":979},[2328],{"type":854,"value":2329}," page",{"type":849,"tag":960,"props":2331,"children":2332},{"style":985},[2333],{"type":854,"value":988},{"type":849,"tag":960,"props":2335,"children":2336},{"style":967},[2337],{"type":854,"value":1683},{"type":849,"tag":960,"props":2339,"children":2340},{"style":1012},[2341],{"type":854,"value":1185},{"type":849,"tag":960,"props":2343,"children":2344},{"style":985},[2345],{"type":854,"value":887},{"type":849,"tag":960,"props":2347,"children":2348},{"style":1012},[2349],{"type":854,"value":1743},{"type":849,"tag":960,"props":2351,"children":2352},{"style":985},[2353],{"type":854,"value":887},{"type":849,"tag":960,"props":2355,"children":2356},{"style":991},[2357],{"type":854,"value":2358},"get",{"type":849,"tag":960,"props":2360,"children":2361},{"style":985},[2362],{"type":854,"value":1199},{"type":849,"tag":960,"props":2364,"children":2365},{"style":1012},[2366],{"type":854,"value":2261},{"type":849,"tag":960,"props":2368,"children":2369},{"style":985},[2370],{"type":854,"value":887},{"type":849,"tag":960,"props":2372,"children":2373},{"style":1012},[2374],{"type":854,"value":2375},"pageId",{"type":849,"tag":960,"props":2377,"children":2378},{"style":985},[2379],{"type":854,"value":1709},{"type":854,"value":1031},{"type":849,"tag":960,"props":2382,"children":2383},{"class":962,"style":963},[2384,2389,2393,2398,2403,2407,2411,2415,2420,2424,2428,2432,2436,2440,2444,2448,2452,2457],{"type":849,"tag":960,"props":2385,"children":2386},{"style":967},[2387],{"type":854,"value":2388},"    if",{"type":849,"tag":960,"props":2390,"children":2391},{"style":985},[2392],{"type":854,"value":1914},{"type":849,"tag":960,"props":2394,"children":2395},{"style":1012},[2396],{"type":854,"value":2397},"page",{"type":849,"tag":960,"props":2399,"children":2400},{"style":985},[2401],{"type":854,"value":2402}," || ",{"type":849,"tag":960,"props":2404,"children":2405},{"style":1012},[2406],{"type":854,"value":2397},{"type":849,"tag":960,"props":2408,"children":2409},{"style":985},[2410],{"type":854,"value":887},{"type":849,"tag":960,"props":2412,"children":2413},{"style":1012},[2414],{"type":854,"value":1638},{"type":849,"tag":960,"props":2416,"children":2417},{"style":985},[2418],{"type":854,"value":2419}," !== ",{"type":849,"tag":960,"props":2421,"children":2422},{"style":1012},[2423],{"type":854,"value":2261},{"type":849,"tag":960,"props":2425,"children":2426},{"style":985},[2427],{"type":854,"value":887},{"type":849,"tag":960,"props":2429,"children":2430},{"style":1012},[2431],{"type":854,"value":1638},{"type":849,"tag":960,"props":2433,"children":2434},{"style":985},[2435],{"type":854,"value":1170},{"type":849,"tag":960,"props":2437,"children":2438},{"style":967},[2439],{"type":854,"value":1928},{"type":849,"tag":960,"props":2441,"children":2442},{"style":973},[2443],{"type":854,"value":1933},{"type":849,"tag":960,"props":2445,"children":2446},{"style":991},[2447],{"type":854,"value":1938},{"type":849,"tag":960,"props":2449,"children":2450},{"style":985},[2451],{"type":854,"value":1199},{"type":849,"tag":960,"props":2453,"children":2454},{"style":1047},[2455],{"type":854,"value":2456},"'Page not found'",{"type":849,"tag":960,"props":2458,"children":2459},{"style":985},[2460],{"type":854,"value":1709},{"type":854,"value":1031},{"type":849,"tag":960,"props":2463,"children":2464},{"class":962,"style":963},[2465,2469,2473,2477,2481,2485,2490,2494,2498,2502,2507,2512,2517,2522],{"type":849,"tag":960,"props":2466,"children":2467},{"style":967},[2468],{"type":854,"value":2283},{"type":849,"tag":960,"props":2470,"children":2471},{"style":1012},[2472],{"type":854,"value":1185},{"type":849,"tag":960,"props":2474,"children":2475},{"style":985},[2476],{"type":854,"value":887},{"type":849,"tag":960,"props":2478,"children":2479},{"style":1012},[2480],{"type":854,"value":1743},{"type":849,"tag":960,"props":2482,"children":2483},{"style":985},[2484],{"type":854,"value":887},{"type":849,"tag":960,"props":2486,"children":2487},{"style":991},[2488],{"type":854,"value":2489},"patch",{"type":849,"tag":960,"props":2491,"children":2492},{"style":985},[2493],{"type":854,"value":1199},{"type":849,"tag":960,"props":2495,"children":2496},{"style":1012},[2497],{"type":854,"value":2397},{"type":849,"tag":960,"props":2499,"children":2500},{"style":985},[2501],{"type":854,"value":887},{"type":849,"tag":960,"props":2503,"children":2504},{"style":1012},[2505],{"type":854,"value":2506},"_id",{"type":849,"tag":960,"props":2508,"children":2509},{"style":985},[2510],{"type":854,"value":2511},", { ",{"type":849,"tag":960,"props":2513,"children":2514},{"style":1012},[2515],{"type":854,"value":2516},"published:",{"type":849,"tag":960,"props":2518,"children":2519},{"style":973},[2520],{"type":854,"value":2521}," true",{"type":849,"tag":960,"props":2523,"children":2524},{"style":985},[2525],{"type":854,"value":1972},{"type":854,"value":1031},{"type":849,"tag":960,"props":2528,"children":2529},{"class":962,"style":963},[2530],{"type":849,"tag":960,"props":2531,"children":2532},{"style":985},[2533],{"type":854,"value":2534},"  },",{"type":854,"value":1031},{"type":849,"tag":960,"props":2537,"children":2538},{"class":962,"style":963},[2539],{"type":849,"tag":960,"props":2540,"children":2541},{"style":985},[2542],{"type":854,"value":1074},{"type":849,"tag":850,"props":2544,"children":2545},{},[2546,2548,2552],{"type":854,"value":2547},"The second check matters as much as the first: a member of site A must not\nchange a page of site B by passing a page ID from B with their own ",{"type":849,"tag":874,"props":2549,"children":2550},{},[2551],{"type":854,"value":1638},{"type":854,"value":887},{"title":2554,"searchDepth":2555,"depth":2555,"links":2556},"",4,[2557,2559,2560,2561,2562],{"id":859,"depth":2558,"text":862},2,{"id":926,"depth":2558,"text":929},{"id":1250,"depth":2558,"text":1253},{"id":1328,"depth":2558,"text":450},{"id":1405,"depth":2558,"text":1408},"markdown","docs",{"source":2566,"path":2567,"stem":2568,"dir":2569,"extension":2570},"content","docs\u002F3.build\u002F3.authentication\u002F15.multiple-site-origins.md","docs\u002F3.build\u002F3.authentication\u002F15.multiple-site-origins","authentication","md",{"requestedPath":306,"resolvedPath":306,"alternates":2572},[],{"requested":2574,"resolved":2575,"usedFallback":6},{},{"locale":8},{"previous":2577,"next":2579},{"title":294,"id":295,"canonicalKey":296,"locale":8,"draft":6,"navigation":2578,"icon":298,"path":299},{"icon":298},{"title":308,"id":309,"canonicalKey":310,"locale":8,"draft":6,"navigation":2580,"icon":312,"path":313},{"icon":312},{"left":2582,"top":2582,"width":2583,"height":2583,"rotate":2582,"vFlip":6,"hFlip":6,"body":2584},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":2582,"top":2582,"width":2586,"height":2586,"rotate":2582,"vFlip":6,"hFlip":6,"body":2587},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>",1794905484269]