[{"data":1,"prerenderedAt":9773},["ShallowReactive",2],{"docs-navigation:en":3,"content-page:docs:e_AgdSOQtwk1LpnLLk5sE3kbDiCl7nI0sPeAreRKdJw":842,"content-page-surround:docs:e_AgdSOQtwk1LpnLLk5sE3kbDiCl7nI0sPeAreRKdJw":9754,"i-lucide:braces":9759,"i-lucide:terminal":9763,"i-logos:vue":9765,"i-logos:typescript-icon":9769,"i-lucide:clipboard":9771},[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":315,"description":843,"navigation":844,"body":845,"type":9741,"id":316,"canonicalKey":317,"draft":6,"partial":6,"locale":8,"collection":9742,"navigationFile":6,"file":9743,"route":9749,"resolution":9751},"Sign in through your company's OpenID Connect identity provider, such as Keycloak, and end app sessions when the provider ends them.",{"icon":319},{"type":846,"children":847,"toc":9716},"root",[848,877,882,889,894,940,958,964,969,976,988,1039,1044,1050,1069,1075,1108,1737,1742,1957,1963,1975,2025,2048,2054,2059,2213,2218,2234,2725,2736,2871,2919,2942,3012,3037,3043,3061,3960,3978,4295,4301,4318,4340,4563,4597,4603,4608,4618,4635,4648,4653,4658,4663,4714,4725,4730,4735,4740,4745,4751,4769,5001,5007,5016,5034,5383,5399,5404,5488,5513,5518,5529,5534,5609,5614,5910,7198,7735,7782,7787,7792,7798,7808,8762,8773,8782,8798,8913,8949,8966,8971,8989,8994,9000,9005,9010,9097,9102,9107,9175,9211,9216,9271,9288,9293,9299,9304,9312,9432,9460,9465,9475,9538,9543,9691],{"type":849,"tag":850,"props":851,"children":852},"element","p",{},[853,856,862,864,869,871,875],{"type":854,"value":855},"text","Let employees sign in through your company's identity provider (IdP), such as\nKeycloak. The IdP is the service that holds the company accounts and speaks\nOpenID Connect (OIDC). The ",{"type":849,"tag":857,"props":858,"children":859},"code",{},[860],{"type":854,"value":861},"oidc",{"type":854,"value":863}," option of ",{"type":849,"tag":857,"props":865,"children":866},{},[867],{"type":854,"value":868},"createBetterConvexAuth",{"type":854,"value":870}," adds one\nIdP with the provider ID ",{"type":849,"tag":857,"props":872,"children":873},{},[874],{"type":854,"value":861},{"type":854,"value":876},".",{"type":849,"tag":850,"props":878,"children":879},{},[880],{"type":854,"value":881},"A user who signs in through the IdP, or links it, then signs in only through\nthe IdP. When the IdP ends the user's grant, the app sessions of that user end\ntoo.",{"type":849,"tag":883,"props":884,"children":886},"h2",{"id":885},"before-you-start",[887],{"type":854,"value":888},"Before you start",{"type":849,"tag":850,"props":890,"children":891},{},[892],{"type":854,"value":893},"You need:",{"type":849,"tag":895,"props":896,"children":897},"ul",{},[898,911,916],{"type":849,"tag":899,"props":900,"children":901},"li",{},[902,904,909],{"type":854,"value":903},"a working auth setup. Complete ",{"type":849,"tag":905,"props":906,"children":907},"a",{"href":81},[908],{"type":854,"value":76},{"type":854,"value":910}," first;",{"type":849,"tag":899,"props":912,"children":913},{},[914],{"type":854,"value":915},"a confidential OIDC client at the IdP: a client with a client ID and a client secret;",{"type":849,"tag":899,"props":917,"children":918},{},[919,924,926,931,933,938],{"type":849,"tag":857,"props":920,"children":921},{},[922],{"type":854,"value":923},"SITE_URL",{"type":854,"value":925}," in Convex and Nuxt, and the ",{"type":849,"tag":857,"props":927,"children":928},{},[929],{"type":854,"value":930},".convex.site",{"type":854,"value":932}," URL of your deployment\n(",{"type":849,"tag":857,"props":934,"children":935},{},[936],{"type":854,"value":937},"CONVEX_SITE_URL",{"type":854,"value":939},"). The IdP calls the deployment there for central logout.",{"type":849,"tag":850,"props":941,"children":942},{},[943,945,950,952,957],{"type":854,"value":944},"The browser reaches the IdP callback through the Nuxt auth proxy at\n",{"type":849,"tag":857,"props":946,"children":947},{},[948],{"type":854,"value":949},"https:\u002F\u002F\u003Csite>\u002Fapi\u002Fauth\u002Fcallback\u002Foidc",{"type":854,"value":951},". The IdP sends logout calls directly to\n",{"type":849,"tag":857,"props":953,"children":954},{},[955],{"type":854,"value":956},"https:\u002F\u002F\u003Cdeployment>.convex.site\u002Fapi\u002Fauth\u002Foidc\u002Fbackchannel-logout",{"type":854,"value":876},{"type":849,"tag":883,"props":959,"children":961},{"id":960},"set-up-keycloak",[962],{"type":854,"value":963},"Set up Keycloak",{"type":849,"tag":850,"props":965,"children":966},{},[967],{"type":854,"value":968},"Change the realm settings first. Then import the client.",{"type":849,"tag":970,"props":971,"children":973},"h3",{"id":972},"set-up-keycloak-realm-settings",[974],{"type":854,"value":975},"Realm settings",{"type":849,"tag":850,"props":977,"children":978},{},[979,981,986],{"type":854,"value":980},"In ",{"type":849,"tag":982,"props":983,"children":984},"strong",{},[985],{"type":854,"value":975},{"type":854,"value":987},":",{"type":849,"tag":989,"props":990,"children":991},"ol",{},[992,1010,1027],{"type":849,"tag":899,"props":993,"children":994},{},[995,997,1002,1004,1009],{"type":854,"value":996},"On the ",{"type":849,"tag":982,"props":998,"children":999},{},[1000],{"type":854,"value":1001},"Tokens",{"type":854,"value":1003}," tab, turn on ",{"type":849,"tag":982,"props":1005,"children":1006},{},[1007],{"type":854,"value":1008},"Revoke Refresh Token",{"type":854,"value":876},{"type":849,"tag":899,"props":1011,"children":1012},{},[1013,1014,1018,1020,1025],{"type":854,"value":996},{"type":849,"tag":982,"props":1015,"children":1016},{},[1017],{"type":854,"value":1001},{"type":854,"value":1019}," tab, set ",{"type":849,"tag":982,"props":1021,"children":1022},{},[1023],{"type":854,"value":1024},"Access Token Lifespan",{"type":854,"value":1026}," to a value between 2 and\n15 minutes. The default of 5 minutes is good.",{"type":849,"tag":899,"props":1028,"children":1029},{},[1030,1032,1037],{"type":854,"value":1031},"Make sure that each user has a verified email. For users from LDAP or from\nanother identity provider, turn on ",{"type":849,"tag":982,"props":1033,"children":1034},{},[1035],{"type":854,"value":1036},"Trust Email",{"type":854,"value":1038}," in that federation or\nidentity provider.",{"type":849,"tag":850,"props":1040,"children":1041},{},[1042],{"type":854,"value":1043},"Users without a verified email cannot sign in.",{"type":849,"tag":970,"props":1045,"children":1047},{"id":1046},"set-up-keycloak-server-hostname",[1048],{"type":854,"value":1049},"Server hostname",{"type":849,"tag":850,"props":1051,"children":1052},{},[1053,1055,1060,1062,1067],{"type":854,"value":1054},"Set ",{"type":849,"tag":857,"props":1056,"children":1057},{},[1058],{"type":854,"value":1059},"KC_HOSTNAME",{"type":854,"value":1061}," on the Keycloak server to its public URL, for example\n",{"type":849,"tag":857,"props":1063,"children":1064},{},[1065],{"type":854,"value":1066},"https:\u002F\u002Fsso.example.com",{"type":854,"value":1068},". Then the issuer does not change with the request\nhost.",{"type":849,"tag":970,"props":1070,"children":1072},{"id":1071},"set-up-keycloak-client",[1073],{"type":854,"value":1074},"Client",{"type":849,"tag":850,"props":1076,"children":1077},{},[1078,1080,1085,1087,1092,1094,1099,1101,1106],{"type":854,"value":1079},"Import this JSON as the client. Use ",{"type":849,"tag":982,"props":1081,"children":1082},{},[1083],{"type":854,"value":1084},"Clients",{"type":854,"value":1086},", ",{"type":849,"tag":982,"props":1088,"children":1089},{},[1090],{"type":854,"value":1091},"Import client",{"type":854,"value":1093},", or\n",{"type":849,"tag":857,"props":1095,"children":1096},{},[1097],{"type":854,"value":1098},"kcadm.sh create clients -r \u003Crealm> -f client.json",{"type":854,"value":1100},", or your Terraform\nprovider. Replace each ",{"type":849,"tag":857,"props":1102,"children":1103},{},[1104],{"type":854,"value":1105},"\u003C...>",{"type":854,"value":1107}," value first.",{"type":849,"tag":1109,"props":1110,"children":1114},"pre",{"language":1111,"filename":1112,"class":1113},"json","client.json","shiki shiki-themes light-plus dark-plus dark:dark-plus",[1115],{"type":849,"tag":857,"props":1116,"children":1118},{"class":1117},"language-json",[1119,1131,1133,1158,1159,1180,1181,1202,1203,1225,1226,1247,1248,1269,1270,1291,1292,1312,1313,1333,1334,1354,1355,1375,1376,1396,1397,1417,1418,1441,1442,1455,1456,1469,1470,1491,1492,1513,1514,1535,1536,1557,1558,1579,1580,1600,1601,1621,1622,1638,1639,1647,1648,1714,1715,1728,1729],{"type":849,"tag":1120,"props":1121,"children":1124},"span",{"class":1122,"style":1123},"line","display: inline",[1125],{"type":849,"tag":1120,"props":1126,"children":1128},{"style":1127},"color:#000000;--shiki-dark:#D4D4D4",[1129],{"type":854,"value":1130},"{",{"type":854,"value":1132},"\n",{"type":849,"tag":1120,"props":1134,"children":1135},{"class":1122,"style":1123},[1136,1142,1147,1153],{"type":849,"tag":1120,"props":1137,"children":1139},{"style":1138},"color:#0451A5;--shiki-dark:#9CDCFE",[1140],{"type":854,"value":1141},"  \"clientId\"",{"type":849,"tag":1120,"props":1143,"children":1144},{"style":1127},[1145],{"type":854,"value":1146},": ",{"type":849,"tag":1120,"props":1148,"children":1150},{"style":1149},"color:#A31515;--shiki-dark:#CE9178",[1151],{"type":854,"value":1152},"\"\u003Cclient-id>\"",{"type":849,"tag":1120,"props":1154,"children":1155},{"style":1127},[1156],{"type":854,"value":1157},",",{"type":854,"value":1132},{"type":849,"tag":1120,"props":1160,"children":1161},{"class":1122,"style":1123},[1162,1167,1171,1176],{"type":849,"tag":1120,"props":1163,"children":1164},{"style":1138},[1165],{"type":854,"value":1166},"  \"name\"",{"type":849,"tag":1120,"props":1168,"children":1169},{"style":1127},[1170],{"type":854,"value":1146},{"type":849,"tag":1120,"props":1172,"children":1173},{"style":1149},[1174],{"type":854,"value":1175},"\"\u003Capp name>\"",{"type":849,"tag":1120,"props":1177,"children":1178},{"style":1127},[1179],{"type":854,"value":1157},{"type":854,"value":1132},{"type":849,"tag":1120,"props":1182,"children":1183},{"class":1122,"style":1123},[1184,1189,1193,1198],{"type":849,"tag":1120,"props":1185,"children":1186},{"style":1138},[1187],{"type":854,"value":1188},"  \"protocol\"",{"type":849,"tag":1120,"props":1190,"children":1191},{"style":1127},[1192],{"type":854,"value":1146},{"type":849,"tag":1120,"props":1194,"children":1195},{"style":1149},[1196],{"type":854,"value":1197},"\"openid-connect\"",{"type":849,"tag":1120,"props":1199,"children":1200},{"style":1127},[1201],{"type":854,"value":1157},{"type":854,"value":1132},{"type":849,"tag":1120,"props":1204,"children":1205},{"class":1122,"style":1123},[1206,1211,1215,1221],{"type":849,"tag":1120,"props":1207,"children":1208},{"style":1138},[1209],{"type":854,"value":1210},"  \"enabled\"",{"type":849,"tag":1120,"props":1212,"children":1213},{"style":1127},[1214],{"type":854,"value":1146},{"type":849,"tag":1120,"props":1216,"children":1218},{"style":1217},"color:#0000FF;--shiki-dark:#569CD6",[1219],{"type":854,"value":1220},"true",{"type":849,"tag":1120,"props":1222,"children":1223},{"style":1127},[1224],{"type":854,"value":1157},{"type":854,"value":1132},{"type":849,"tag":1120,"props":1227,"children":1228},{"class":1122,"style":1123},[1229,1234,1238,1243],{"type":849,"tag":1120,"props":1230,"children":1231},{"style":1138},[1232],{"type":854,"value":1233},"  \"publicClient\"",{"type":849,"tag":1120,"props":1235,"children":1236},{"style":1127},[1237],{"type":854,"value":1146},{"type":849,"tag":1120,"props":1239,"children":1240},{"style":1217},[1241],{"type":854,"value":1242},"false",{"type":849,"tag":1120,"props":1244,"children":1245},{"style":1127},[1246],{"type":854,"value":1157},{"type":854,"value":1132},{"type":849,"tag":1120,"props":1249,"children":1250},{"class":1122,"style":1123},[1251,1256,1260,1265],{"type":849,"tag":1120,"props":1252,"children":1253},{"style":1138},[1254],{"type":854,"value":1255},"  \"clientAuthenticatorType\"",{"type":849,"tag":1120,"props":1257,"children":1258},{"style":1127},[1259],{"type":854,"value":1146},{"type":849,"tag":1120,"props":1261,"children":1262},{"style":1149},[1263],{"type":854,"value":1264},"\"client-secret\"",{"type":849,"tag":1120,"props":1266,"children":1267},{"style":1127},[1268],{"type":854,"value":1157},{"type":854,"value":1132},{"type":849,"tag":1120,"props":1271,"children":1272},{"class":1122,"style":1123},[1273,1278,1282,1287],{"type":849,"tag":1120,"props":1274,"children":1275},{"style":1138},[1276],{"type":854,"value":1277},"  \"secret\"",{"type":849,"tag":1120,"props":1279,"children":1280},{"style":1127},[1281],{"type":854,"value":1146},{"type":849,"tag":1120,"props":1283,"children":1284},{"style":1149},[1285],{"type":854,"value":1286},"\"\u003Cgenerated secret, or omit and copy it from the Credentials tab>\"",{"type":849,"tag":1120,"props":1288,"children":1289},{"style":1127},[1290],{"type":854,"value":1157},{"type":854,"value":1132},{"type":849,"tag":1120,"props":1293,"children":1294},{"class":1122,"style":1123},[1295,1300,1304,1308],{"type":849,"tag":1120,"props":1296,"children":1297},{"style":1138},[1298],{"type":854,"value":1299},"  \"standardFlowEnabled\"",{"type":849,"tag":1120,"props":1301,"children":1302},{"style":1127},[1303],{"type":854,"value":1146},{"type":849,"tag":1120,"props":1305,"children":1306},{"style":1217},[1307],{"type":854,"value":1220},{"type":849,"tag":1120,"props":1309,"children":1310},{"style":1127},[1311],{"type":854,"value":1157},{"type":854,"value":1132},{"type":849,"tag":1120,"props":1314,"children":1315},{"class":1122,"style":1123},[1316,1321,1325,1329],{"type":849,"tag":1120,"props":1317,"children":1318},{"style":1138},[1319],{"type":854,"value":1320},"  \"implicitFlowEnabled\"",{"type":849,"tag":1120,"props":1322,"children":1323},{"style":1127},[1324],{"type":854,"value":1146},{"type":849,"tag":1120,"props":1326,"children":1327},{"style":1217},[1328],{"type":854,"value":1242},{"type":849,"tag":1120,"props":1330,"children":1331},{"style":1127},[1332],{"type":854,"value":1157},{"type":854,"value":1132},{"type":849,"tag":1120,"props":1335,"children":1336},{"class":1122,"style":1123},[1337,1342,1346,1350],{"type":849,"tag":1120,"props":1338,"children":1339},{"style":1138},[1340],{"type":854,"value":1341},"  \"directAccessGrantsEnabled\"",{"type":849,"tag":1120,"props":1343,"children":1344},{"style":1127},[1345],{"type":854,"value":1146},{"type":849,"tag":1120,"props":1347,"children":1348},{"style":1217},[1349],{"type":854,"value":1242},{"type":849,"tag":1120,"props":1351,"children":1352},{"style":1127},[1353],{"type":854,"value":1157},{"type":854,"value":1132},{"type":849,"tag":1120,"props":1356,"children":1357},{"class":1122,"style":1123},[1358,1363,1367,1371],{"type":849,"tag":1120,"props":1359,"children":1360},{"style":1138},[1361],{"type":854,"value":1362},"  \"serviceAccountsEnabled\"",{"type":849,"tag":1120,"props":1364,"children":1365},{"style":1127},[1366],{"type":854,"value":1146},{"type":849,"tag":1120,"props":1368,"children":1369},{"style":1217},[1370],{"type":854,"value":1242},{"type":849,"tag":1120,"props":1372,"children":1373},{"style":1127},[1374],{"type":854,"value":1157},{"type":854,"value":1132},{"type":849,"tag":1120,"props":1377,"children":1378},{"class":1122,"style":1123},[1379,1384,1388,1392],{"type":849,"tag":1120,"props":1380,"children":1381},{"style":1138},[1382],{"type":854,"value":1383},"  \"consentRequired\"",{"type":849,"tag":1120,"props":1385,"children":1386},{"style":1127},[1387],{"type":854,"value":1146},{"type":849,"tag":1120,"props":1389,"children":1390},{"style":1217},[1391],{"type":854,"value":1242},{"type":849,"tag":1120,"props":1393,"children":1394},{"style":1127},[1395],{"type":854,"value":1157},{"type":854,"value":1132},{"type":849,"tag":1120,"props":1398,"children":1399},{"class":1122,"style":1123},[1400,1405,1409,1413],{"type":849,"tag":1120,"props":1401,"children":1402},{"style":1138},[1403],{"type":854,"value":1404},"  \"frontchannelLogout\"",{"type":849,"tag":1120,"props":1406,"children":1407},{"style":1127},[1408],{"type":854,"value":1146},{"type":849,"tag":1120,"props":1410,"children":1411},{"style":1217},[1412],{"type":854,"value":1242},{"type":849,"tag":1120,"props":1414,"children":1415},{"style":1127},[1416],{"type":854,"value":1157},{"type":854,"value":1132},{"type":849,"tag":1120,"props":1419,"children":1420},{"class":1122,"style":1123},[1421,1426,1431,1436],{"type":849,"tag":1120,"props":1422,"children":1423},{"style":1138},[1424],{"type":854,"value":1425},"  \"redirectUris\"",{"type":849,"tag":1120,"props":1427,"children":1428},{"style":1127},[1429],{"type":854,"value":1430},": [",{"type":849,"tag":1120,"props":1432,"children":1433},{"style":1149},[1434],{"type":854,"value":1435},"\"https:\u002F\u002F\u003Csite>\u002Fapi\u002Fauth\u002Fcallback\u002Foidc\"",{"type":849,"tag":1120,"props":1437,"children":1438},{"style":1127},[1439],{"type":854,"value":1440},"],",{"type":854,"value":1132},{"type":849,"tag":1120,"props":1443,"children":1444},{"class":1122,"style":1123},[1445,1450],{"type":849,"tag":1120,"props":1446,"children":1447},{"style":1138},[1448],{"type":854,"value":1449},"  \"webOrigins\"",{"type":849,"tag":1120,"props":1451,"children":1452},{"style":1127},[1453],{"type":854,"value":1454},": [],",{"type":854,"value":1132},{"type":849,"tag":1120,"props":1457,"children":1458},{"class":1122,"style":1123},[1459,1464],{"type":849,"tag":1120,"props":1460,"children":1461},{"style":1138},[1462],{"type":854,"value":1463},"  \"attributes\"",{"type":849,"tag":1120,"props":1465,"children":1466},{"style":1127},[1467],{"type":854,"value":1468},": {",{"type":854,"value":1132},{"type":849,"tag":1120,"props":1471,"children":1472},{"class":1122,"style":1123},[1473,1478,1482,1487],{"type":849,"tag":1120,"props":1474,"children":1475},{"style":1138},[1476],{"type":854,"value":1477},"    \"pkce.code.challenge.method\"",{"type":849,"tag":1120,"props":1479,"children":1480},{"style":1127},[1481],{"type":854,"value":1146},{"type":849,"tag":1120,"props":1483,"children":1484},{"style":1149},[1485],{"type":854,"value":1486},"\"S256\"",{"type":849,"tag":1120,"props":1488,"children":1489},{"style":1127},[1490],{"type":854,"value":1157},{"type":854,"value":1132},{"type":849,"tag":1120,"props":1493,"children":1494},{"class":1122,"style":1123},[1495,1500,1504,1509],{"type":849,"tag":1120,"props":1496,"children":1497},{"style":1138},[1498],{"type":854,"value":1499},"    \"post.logout.redirect.uris\"",{"type":849,"tag":1120,"props":1501,"children":1502},{"style":1127},[1503],{"type":854,"value":1146},{"type":849,"tag":1120,"props":1505,"children":1506},{"style":1149},[1507],{"type":854,"value":1508},"\"https:\u002F\u002F\u003Csite>\u002Fsigned-out\"",{"type":849,"tag":1120,"props":1510,"children":1511},{"style":1127},[1512],{"type":854,"value":1157},{"type":854,"value":1132},{"type":849,"tag":1120,"props":1515,"children":1516},{"class":1122,"style":1123},[1517,1522,1526,1531],{"type":849,"tag":1120,"props":1518,"children":1519},{"style":1138},[1520],{"type":854,"value":1521},"    \"backchannel.logout.url\"",{"type":849,"tag":1120,"props":1523,"children":1524},{"style":1127},[1525],{"type":854,"value":1146},{"type":849,"tag":1120,"props":1527,"children":1528},{"style":1149},[1529],{"type":854,"value":1530},"\"https:\u002F\u002F\u003Cdeployment>.convex.site\u002Fapi\u002Fauth\u002Foidc\u002Fbackchannel-logout\"",{"type":849,"tag":1120,"props":1532,"children":1533},{"style":1127},[1534],{"type":854,"value":1157},{"type":854,"value":1132},{"type":849,"tag":1120,"props":1537,"children":1538},{"class":1122,"style":1123},[1539,1544,1548,1553],{"type":849,"tag":1120,"props":1540,"children":1541},{"style":1138},[1542],{"type":854,"value":1543},"    \"backchannel.logout.session.required\"",{"type":849,"tag":1120,"props":1545,"children":1546},{"style":1127},[1547],{"type":854,"value":1146},{"type":849,"tag":1120,"props":1549,"children":1550},{"style":1149},[1551],{"type":854,"value":1552},"\"true\"",{"type":849,"tag":1120,"props":1554,"children":1555},{"style":1127},[1556],{"type":854,"value":1157},{"type":854,"value":1132},{"type":849,"tag":1120,"props":1559,"children":1560},{"class":1122,"style":1123},[1561,1566,1570,1575],{"type":849,"tag":1120,"props":1562,"children":1563},{"style":1138},[1564],{"type":854,"value":1565},"    \"backchannel.logout.revoke.offline.tokens\"",{"type":849,"tag":1120,"props":1567,"children":1568},{"style":1127},[1569],{"type":854,"value":1146},{"type":849,"tag":1120,"props":1571,"children":1572},{"style":1149},[1573],{"type":854,"value":1574},"\"false\"",{"type":849,"tag":1120,"props":1576,"children":1577},{"style":1127},[1578],{"type":854,"value":1157},{"type":854,"value":1132},{"type":849,"tag":1120,"props":1581,"children":1582},{"class":1122,"style":1123},[1583,1588,1592,1596],{"type":849,"tag":1120,"props":1584,"children":1585},{"style":1138},[1586],{"type":854,"value":1587},"    \"use.refresh.tokens\"",{"type":849,"tag":1120,"props":1589,"children":1590},{"style":1127},[1591],{"type":854,"value":1146},{"type":849,"tag":1120,"props":1593,"children":1594},{"style":1149},[1595],{"type":854,"value":1552},{"type":849,"tag":1120,"props":1597,"children":1598},{"style":1127},[1599],{"type":854,"value":1157},{"type":854,"value":1132},{"type":849,"tag":1120,"props":1602,"children":1603},{"class":1122,"style":1123},[1604,1609,1613,1617],{"type":849,"tag":1120,"props":1605,"children":1606},{"style":1138},[1607],{"type":854,"value":1608},"    \"oauth2.device.authorization.grant.enabled\"",{"type":849,"tag":1120,"props":1610,"children":1611},{"style":1127},[1612],{"type":854,"value":1146},{"type":849,"tag":1120,"props":1614,"children":1615},{"style":1149},[1616],{"type":854,"value":1574},{"type":849,"tag":1120,"props":1618,"children":1619},{"style":1127},[1620],{"type":854,"value":1157},{"type":854,"value":1132},{"type":849,"tag":1120,"props":1623,"children":1624},{"class":1122,"style":1123},[1625,1630,1634],{"type":849,"tag":1120,"props":1626,"children":1627},{"style":1138},[1628],{"type":854,"value":1629},"    \"oidc.ciba.grant.enabled\"",{"type":849,"tag":1120,"props":1631,"children":1632},{"style":1127},[1633],{"type":854,"value":1146},{"type":849,"tag":1120,"props":1635,"children":1636},{"style":1149},[1637],{"type":854,"value":1574},{"type":854,"value":1132},{"type":849,"tag":1120,"props":1640,"children":1641},{"class":1122,"style":1123},[1642],{"type":849,"tag":1120,"props":1643,"children":1644},{"style":1127},[1645],{"type":854,"value":1646},"  },",{"type":854,"value":1132},{"type":849,"tag":1120,"props":1649,"children":1650},{"class":1122,"style":1123},[1651,1656,1660,1665,1669,1674,1678,1683,1687,1692,1696,1701,1705,1710],{"type":849,"tag":1120,"props":1652,"children":1653},{"style":1138},[1654],{"type":854,"value":1655},"  \"defaultClientScopes\"",{"type":849,"tag":1120,"props":1657,"children":1658},{"style":1127},[1659],{"type":854,"value":1430},{"type":849,"tag":1120,"props":1661,"children":1662},{"style":1149},[1663],{"type":854,"value":1664},"\"web-origins\"",{"type":849,"tag":1120,"props":1666,"children":1667},{"style":1127},[1668],{"type":854,"value":1086},{"type":849,"tag":1120,"props":1670,"children":1671},{"style":1149},[1672],{"type":854,"value":1673},"\"acr\"",{"type":849,"tag":1120,"props":1675,"children":1676},{"style":1127},[1677],{"type":854,"value":1086},{"type":849,"tag":1120,"props":1679,"children":1680},{"style":1149},[1681],{"type":854,"value":1682},"\"profile\"",{"type":849,"tag":1120,"props":1684,"children":1685},{"style":1127},[1686],{"type":854,"value":1086},{"type":849,"tag":1120,"props":1688,"children":1689},{"style":1149},[1690],{"type":854,"value":1691},"\"roles\"",{"type":849,"tag":1120,"props":1693,"children":1694},{"style":1127},[1695],{"type":854,"value":1086},{"type":849,"tag":1120,"props":1697,"children":1698},{"style":1149},[1699],{"type":854,"value":1700},"\"basic\"",{"type":849,"tag":1120,"props":1702,"children":1703},{"style":1127},[1704],{"type":854,"value":1086},{"type":849,"tag":1120,"props":1706,"children":1707},{"style":1149},[1708],{"type":854,"value":1709},"\"email\"",{"type":849,"tag":1120,"props":1711,"children":1712},{"style":1127},[1713],{"type":854,"value":1440},{"type":854,"value":1132},{"type":849,"tag":1120,"props":1716,"children":1717},{"class":1122,"style":1123},[1718,1723],{"type":849,"tag":1120,"props":1719,"children":1720},{"style":1138},[1721],{"type":854,"value":1722},"  \"optionalClientScopes\"",{"type":849,"tag":1120,"props":1724,"children":1725},{"style":1127},[1726],{"type":854,"value":1727},": []",{"type":854,"value":1132},{"type":849,"tag":1120,"props":1730,"children":1731},{"class":1122,"style":1123},[1732],{"type":849,"tag":1120,"props":1733,"children":1734},{"style":1127},[1735],{"type":854,"value":1736},"}",{"type":849,"tag":850,"props":1738,"children":1739},{},[1740],{"type":854,"value":1741},"What the settings do:",{"type":849,"tag":895,"props":1743,"children":1744},{},[1745,1762,1785,1807,1843,1871,1894,1904,1914,1937],{"type":849,"tag":899,"props":1746,"children":1747},{},[1748,1753,1755,1760],{"type":849,"tag":857,"props":1749,"children":1750},{},[1751],{"type":854,"value":1752},"publicClient: false",{"type":854,"value":1754}," and ",{"type":849,"tag":857,"props":1756,"children":1757},{},[1758],{"type":854,"value":1759},"clientAuthenticatorType",{"type":854,"value":1761},": the app proves itself\nwith the client secret. Keep the secret out of the repository.",{"type":849,"tag":899,"props":1763,"children":1764},{},[1765,1770,1772,1777,1779,1784],{"type":849,"tag":857,"props":1766,"children":1767},{},[1768],{"type":854,"value":1769},"standardFlowEnabled",{"type":854,"value":1771},": the browser signs in with the authorization code flow.\nThe app always sends PKCE S256, a ",{"type":849,"tag":857,"props":1773,"children":1774},{},[1775],{"type":854,"value":1776},"state",{"type":854,"value":1778},", and a ",{"type":849,"tag":857,"props":1780,"children":1781},{},[1782],{"type":854,"value":1783},"nonce",{"type":854,"value":876},{"type":849,"tag":899,"props":1786,"children":1787},{},[1788,1793,1794,1799,1800,1805],{"type":849,"tag":857,"props":1789,"children":1790},{},[1791],{"type":854,"value":1792},"implicitFlowEnabled",{"type":854,"value":1086},{"type":849,"tag":857,"props":1795,"children":1796},{},[1797],{"type":854,"value":1798},"directAccessGrantsEnabled",{"type":854,"value":1086},{"type":849,"tag":857,"props":1801,"children":1802},{},[1803],{"type":854,"value":1804},"serviceAccountsEnabled",{"type":854,"value":1806},",\nthe device grant, and CIBA: keep them off. The app does not use them. Direct\naccess grants would let a script send passwords to the IdP.",{"type":849,"tag":899,"props":1808,"children":1809},{},[1810,1815,1817,1822,1823,1828,1830,1835,1837,1842],{"type":849,"tag":857,"props":1811,"children":1812},{},[1813],{"type":854,"value":1814},"consentRequired",{"type":854,"value":1816},": keep it off. The app asks for ",{"type":849,"tag":857,"props":1818,"children":1819},{},[1820],{"type":854,"value":1821},"openid",{"type":854,"value":1086},{"type":849,"tag":857,"props":1824,"children":1825},{},[1826],{"type":854,"value":1827},"email",{"type":854,"value":1829},",\n",{"type":849,"tag":857,"props":1831,"children":1832},{},[1833],{"type":854,"value":1834},"profile",{"type":854,"value":1836},", and the scopes in ",{"type":849,"tag":857,"props":1838,"children":1839},{},[1840],{"type":854,"value":1841},"oidc.scopes",{"type":854,"value":876},{"type":849,"tag":899,"props":1844,"children":1845},{},[1846,1851,1853,1858,1860,1864,1865,1870],{"type":849,"tag":857,"props":1847,"children":1848},{},[1849],{"type":854,"value":1850},"redirectUris",{"type":854,"value":1852},": the callback of each site origin. Use ",{"type":849,"tag":982,"props":1854,"children":1855},{},[1856],{"type":854,"value":1857},"exact URIs, no\nwildcards",{"type":854,"value":1859},". Add one URI for each origin in ",{"type":849,"tag":857,"props":1861,"children":1862},{},[1863],{"type":854,"value":923},{"type":854,"value":1754},{"type":849,"tag":857,"props":1866,"children":1867},{},[1868],{"type":854,"value":1869},"siteOrigins",{"type":854,"value":876},{"type":849,"tag":899,"props":1872,"children":1873},{},[1874,1879,1881,1886,1888,1893],{"type":849,"tag":857,"props":1875,"children":1876},{},[1877],{"type":854,"value":1878},"post.logout.redirect.uris",{"type":854,"value":1880},": the pages that the IdP may return to after\nsign-out. Use ",{"type":849,"tag":982,"props":1882,"children":1883},{},[1884],{"type":854,"value":1885},"exact URIs, no wildcards",{"type":854,"value":1887},", one for each site origin.\nSeparate several URIs with ",{"type":849,"tag":857,"props":1889,"children":1890},{},[1891],{"type":854,"value":1892},"##",{"type":854,"value":876},{"type":849,"tag":899,"props":1895,"children":1896},{},[1897,1902],{"type":849,"tag":857,"props":1898,"children":1899},{},[1900],{"type":854,"value":1901},"backchannel.logout.url",{"type":854,"value":1903},": the route that ends app sessions when a user signs\nout at the IdP (central logout).",{"type":849,"tag":899,"props":1905,"children":1906},{},[1907,1912],{"type":849,"tag":857,"props":1908,"children":1909},{},[1910],{"type":854,"value":1911},"frontchannelLogout",{"type":854,"value":1913},": keep it off. The app supports back-channel logout only.",{"type":849,"tag":899,"props":1915,"children":1916},{},[1917,1922,1924,1929,1931,1935],{"type":849,"tag":857,"props":1918,"children":1919},{},[1920],{"type":854,"value":1921},"use.refresh.tokens",{"type":854,"value":1923},": keep it on. The app needs refresh tokens for the\nliveness check. Do not add ",{"type":849,"tag":857,"props":1925,"children":1926},{},[1927],{"type":854,"value":1928},"offline_access",{"type":854,"value":1930}," to ",{"type":849,"tag":857,"props":1932,"children":1933},{},[1934],{"type":854,"value":1841},{"type":854,"value":1936}," on Keycloak:\noffline tokens outlive the SSO session, so the liveness check would no\nlonger follow it.",{"type":849,"tag":899,"props":1938,"children":1939},{},[1940,1945,1946,1950,1951,1955],{"type":849,"tag":857,"props":1941,"children":1942},{},[1943],{"type":854,"value":1944},"defaultClientScopes",{"type":854,"value":1146},{"type":849,"tag":857,"props":1947,"children":1948},{},[1949],{"type":854,"value":1827},{"type":854,"value":1754},{"type":849,"tag":857,"props":1952,"children":1953},{},[1954],{"type":854,"value":1834},{"type":854,"value":1956}," put the email and the name into\nthe ID token.",{"type":849,"tag":970,"props":1958,"children":1960},{"id":1959},"set-up-keycloak-audience-for-your-own-services",[1961],{"type":854,"value":1962},"Audience for your own services",{"type":849,"tag":850,"props":1964,"children":1965},{},[1966,1968,1973],{"type":854,"value":1967},"If the app calls your own services with the user's access token, each service\nmust find itself in the token's ",{"type":849,"tag":857,"props":1969,"children":1970},{},[1971],{"type":854,"value":1972},"aud",{"type":854,"value":1974}," claim. For each service:",{"type":849,"tag":989,"props":1976,"children":1977},{},[1978,1989,2008],{"type":849,"tag":899,"props":1979,"children":1980},{},[1981,1982,1987],{"type":854,"value":980},{"type":849,"tag":982,"props":1983,"children":1984},{},[1985],{"type":854,"value":1986},"Client scopes",{"type":854,"value":1988},", create a client scope.",{"type":849,"tag":899,"props":1990,"children":1991},{},[1992,1994,1999,2001,2006],{"type":854,"value":1993},"In that scope, add an ",{"type":849,"tag":982,"props":1995,"children":1996},{},[1997],{"type":854,"value":1998},"Audience",{"type":854,"value":2000}," mapper. Set ",{"type":849,"tag":982,"props":2002,"children":2003},{},[2004],{"type":854,"value":2005},"Included Client Audience",{"type":854,"value":2007},"\nto the client of the service.",{"type":849,"tag":899,"props":2009,"children":2010},{},[2011,2013,2017,2019,2024],{"type":854,"value":2012},"In the app client, on ",{"type":849,"tag":982,"props":2014,"children":2015},{},[2016],{"type":854,"value":1986},{"type":854,"value":2018},", add the scope as ",{"type":849,"tag":982,"props":2020,"children":2021},{},[2022],{"type":854,"value":2023},"Default",{"type":854,"value":876},{"type":849,"tag":850,"props":2026,"children":2027},{},[2028,2030,2034,2036,2041,2043,2047],{"type":854,"value":2029},"Add the scope as ",{"type":849,"tag":982,"props":2031,"children":2032},{},[2033],{"type":854,"value":2023},{"type":854,"value":2035},", or as ",{"type":849,"tag":982,"props":2037,"children":2038},{},[2039],{"type":854,"value":2040},"Optional",{"type":854,"value":2042}," and name it in ",{"type":849,"tag":857,"props":2044,"children":2045},{},[2046],{"type":854,"value":1841},{"type":854,"value":876},{"type":849,"tag":883,"props":2049,"children":2051},{"id":2050},"configure-the-app",[2052],{"type":854,"value":2053},"Configure the app",{"type":849,"tag":850,"props":2055,"children":2056},{},[2057],{"type":854,"value":2058},"Store the IdP values in the Convex environment. Set them for each deployment:",{"type":849,"tag":1109,"props":2060,"children":2062},{"language":2061,"class":1113},"bash",[2063],{"type":849,"tag":857,"props":2064,"children":2066},{"class":2065},"language-bash",[2067,2111,2112,2149,2150],{"type":849,"tag":1120,"props":2068,"children":2069},{"class":1122,"style":1123},[2070,2076,2081,2086,2091,2096,2101,2106],{"type":849,"tag":1120,"props":2071,"children":2073},{"style":2072},"color:#795E26;--shiki-dark:#DCDCAA",[2074],{"type":854,"value":2075},"pnpm",{"type":849,"tag":1120,"props":2077,"children":2078},{"style":1149},[2079],{"type":854,"value":2080}," exec",{"type":849,"tag":1120,"props":2082,"children":2083},{"style":1149},[2084],{"type":854,"value":2085}," better-convex-nuxt",{"type":849,"tag":1120,"props":2087,"children":2088},{"style":1149},[2089],{"type":854,"value":2090}," convex",{"type":849,"tag":1120,"props":2092,"children":2093},{"style":1149},[2094],{"type":854,"value":2095}," env",{"type":849,"tag":1120,"props":2097,"children":2098},{"style":1149},[2099],{"type":854,"value":2100}," set",{"type":849,"tag":1120,"props":2102,"children":2103},{"style":1149},[2104],{"type":854,"value":2105}," OIDC_ISSUER",{"type":849,"tag":1120,"props":2107,"children":2108},{"style":1149},[2109],{"type":854,"value":2110}," https:\u002F\u002Fsso.example.com\u002Frealms\u002Facme",{"type":854,"value":1132},{"type":849,"tag":1120,"props":2113,"children":2114},{"class":1122,"style":1123},[2115,2119,2123,2127,2131,2135,2139,2144],{"type":849,"tag":1120,"props":2116,"children":2117},{"style":2072},[2118],{"type":854,"value":2075},{"type":849,"tag":1120,"props":2120,"children":2121},{"style":1149},[2122],{"type":854,"value":2080},{"type":849,"tag":1120,"props":2124,"children":2125},{"style":1149},[2126],{"type":854,"value":2085},{"type":849,"tag":1120,"props":2128,"children":2129},{"style":1149},[2130],{"type":854,"value":2090},{"type":849,"tag":1120,"props":2132,"children":2133},{"style":1149},[2134],{"type":854,"value":2095},{"type":849,"tag":1120,"props":2136,"children":2137},{"style":1149},[2138],{"type":854,"value":2100},{"type":849,"tag":1120,"props":2140,"children":2141},{"style":1149},[2142],{"type":854,"value":2143}," OIDC_CLIENT_ID",{"type":849,"tag":1120,"props":2145,"children":2146},{"style":1149},[2147],{"type":854,"value":2148}," acme-app",{"type":854,"value":1132},{"type":849,"tag":1120,"props":2151,"children":2152},{"class":1122,"style":1123},[2153,2158,2163,2168,2174,2179,2184,2188,2192,2196,2200,2204,2208],{"type":849,"tag":1120,"props":2154,"children":2155},{"style":2072},[2156],{"type":854,"value":2157},"printf",{"type":849,"tag":1120,"props":2159,"children":2160},{"style":1149},[2161],{"type":854,"value":2162}," '%s'",{"type":849,"tag":1120,"props":2164,"children":2165},{"style":1149},[2166],{"type":854,"value":2167}," \"",{"type":849,"tag":1120,"props":2169,"children":2171},{"style":2170},"color:#001080;--shiki-dark:#9CDCFE",[2172],{"type":854,"value":2173},"$OIDC_CLIENT_SECRET",{"type":849,"tag":1120,"props":2175,"children":2176},{"style":1149},[2177],{"type":854,"value":2178},"\"",{"type":849,"tag":1120,"props":2180,"children":2181},{"style":1127},[2182],{"type":854,"value":2183}," | ",{"type":849,"tag":1120,"props":2185,"children":2186},{"style":2072},[2187],{"type":854,"value":2075},{"type":849,"tag":1120,"props":2189,"children":2190},{"style":1149},[2191],{"type":854,"value":2080},{"type":849,"tag":1120,"props":2193,"children":2194},{"style":1149},[2195],{"type":854,"value":2085},{"type":849,"tag":1120,"props":2197,"children":2198},{"style":1149},[2199],{"type":854,"value":2090},{"type":849,"tag":1120,"props":2201,"children":2202},{"style":1149},[2203],{"type":854,"value":2095},{"type":849,"tag":1120,"props":2205,"children":2206},{"style":1149},[2207],{"type":854,"value":2100},{"type":849,"tag":1120,"props":2209,"children":2210},{"style":1149},[2211],{"type":854,"value":2212}," OIDC_CLIENT_SECRET",{"type":849,"tag":850,"props":2214,"children":2215},{},[2216],{"type":854,"value":2217},"Do not print or commit the client secret.",{"type":849,"tag":850,"props":2219,"children":2220},{},[2221,2223,2227,2229,2233],{"type":854,"value":2222},"Pass ",{"type":849,"tag":857,"props":2224,"children":2225},{},[2226],{"type":854,"value":861},{"type":854,"value":2228}," as a function. Convex calls it when it builds Better Auth, so a\nmissing variable fails that request and not the first deployment. Add it next\nto the options you already have; the example shows only ",{"type":849,"tag":857,"props":2230,"children":2231},{},[2232],{"type":854,"value":861},{"type":854,"value":987},{"type":849,"tag":1109,"props":2235,"children":2238},{"language":2236,"filename":2237,"class":1113},"ts","convex\u002Fauth.ts",[2239],{"type":849,"tag":857,"props":2240,"children":2242},{"class":2241},"language-ts",[2243,2276,2277,2280,2281,2310,2311,2345,2346,2349,2350,2397,2398,2445,2446,2516,2517,2529,2530,2537,2538,2541,2542,2600,2601,2628,2629,2655,2656,2681,2682,2707,2708,2716,2717],{"type":849,"tag":1120,"props":2244,"children":2245},{"class":1122,"style":1123},[2246,2252,2257,2261,2266,2271],{"type":849,"tag":1120,"props":2247,"children":2249},{"style":2248},"color:#AF00DB;--shiki-dark:#C586C0",[2250],{"type":854,"value":2251},"import",{"type":849,"tag":1120,"props":2253,"children":2254},{"style":1127},[2255],{"type":854,"value":2256}," { ",{"type":849,"tag":1120,"props":2258,"children":2259},{"style":2170},[2260],{"type":854,"value":868},{"type":849,"tag":1120,"props":2262,"children":2263},{"style":1127},[2264],{"type":854,"value":2265}," } ",{"type":849,"tag":1120,"props":2267,"children":2268},{"style":2248},[2269],{"type":854,"value":2270},"from",{"type":849,"tag":1120,"props":2272,"children":2273},{"style":1149},[2274],{"type":854,"value":2275}," '@lupinum\u002Fbetter-convex-nuxt\u002Fbetter-auth\u002Fserver'",{"type":854,"value":1132},{"type":849,"tag":1120,"props":2278,"children":2279},{"class":1122,"style":1123},[],{"type":854,"value":1132},{"type":849,"tag":1120,"props":2282,"children":2283},{"class":1122,"style":1123},[2284,2288,2292,2297,2301,2305],{"type":849,"tag":1120,"props":2285,"children":2286},{"style":2248},[2287],{"type":854,"value":2251},{"type":849,"tag":1120,"props":2289,"children":2290},{"style":1127},[2291],{"type":854,"value":2256},{"type":849,"tag":1120,"props":2293,"children":2294},{"style":2170},[2295],{"type":854,"value":2296},"components",{"type":849,"tag":1120,"props":2298,"children":2299},{"style":1127},[2300],{"type":854,"value":2265},{"type":849,"tag":1120,"props":2302,"children":2303},{"style":2248},[2304],{"type":854,"value":2270},{"type":849,"tag":1120,"props":2306,"children":2307},{"style":1149},[2308],{"type":854,"value":2309}," '.\u002F_generated\u002Fapi'",{"type":854,"value":1132},{"type":849,"tag":1120,"props":2312,"children":2313},{"class":1122,"style":1123},[2314,2318,2323,2327,2332,2336,2340],{"type":849,"tag":1120,"props":2315,"children":2316},{"style":2248},[2317],{"type":854,"value":2251},{"type":849,"tag":1120,"props":2319,"children":2320},{"style":2248},[2321],{"type":854,"value":2322}," type",{"type":849,"tag":1120,"props":2324,"children":2325},{"style":1127},[2326],{"type":854,"value":2256},{"type":849,"tag":1120,"props":2328,"children":2329},{"style":2170},[2330],{"type":854,"value":2331},"DataModel",{"type":849,"tag":1120,"props":2333,"children":2334},{"style":1127},[2335],{"type":854,"value":2265},{"type":849,"tag":1120,"props":2337,"children":2338},{"style":2248},[2339],{"type":854,"value":2270},{"type":849,"tag":1120,"props":2341,"children":2342},{"style":1149},[2343],{"type":854,"value":2344}," '.\u002F_generated\u002FdataModel'",{"type":854,"value":1132},{"type":849,"tag":1120,"props":2347,"children":2348},{"class":1122,"style":1123},[],{"type":854,"value":1132},{"type":849,"tag":1120,"props":2351,"children":2352},{"class":1122,"style":1123},[2353,2358,2363,2368,2373,2377,2383,2388,2392],{"type":849,"tag":1120,"props":2354,"children":2355},{"style":1217},[2356],{"type":854,"value":2357},"function",{"type":849,"tag":1120,"props":2359,"children":2360},{"style":2072},[2361],{"type":854,"value":2362}," requireEnv",{"type":849,"tag":1120,"props":2364,"children":2365},{"style":1127},[2366],{"type":854,"value":2367},"(",{"type":849,"tag":1120,"props":2369,"children":2370},{"style":2170},[2371],{"type":854,"value":2372},"name",{"type":849,"tag":1120,"props":2374,"children":2375},{"style":1127},[2376],{"type":854,"value":1146},{"type":849,"tag":1120,"props":2378,"children":2380},{"style":2379},"color:#267F99;--shiki-dark:#4EC9B0",[2381],{"type":854,"value":2382},"string",{"type":849,"tag":1120,"props":2384,"children":2385},{"style":1127},[2386],{"type":854,"value":2387},"): ",{"type":849,"tag":1120,"props":2389,"children":2390},{"style":2379},[2391],{"type":854,"value":2382},{"type":849,"tag":1120,"props":2393,"children":2394},{"style":1127},[2395],{"type":854,"value":2396}," {",{"type":854,"value":1132},{"type":849,"tag":1120,"props":2399,"children":2400},{"class":1122,"style":1123},[2401,2406,2412,2417,2422,2426,2431,2436,2440],{"type":849,"tag":1120,"props":2402,"children":2403},{"style":1217},[2404],{"type":854,"value":2405},"  const",{"type":849,"tag":1120,"props":2407,"children":2409},{"style":2408},"color:#0070C1;--shiki-dark:#4FC1FF",[2410],{"type":854,"value":2411}," value",{"type":849,"tag":1120,"props":2413,"children":2414},{"style":1127},[2415],{"type":854,"value":2416}," = ",{"type":849,"tag":1120,"props":2418,"children":2419},{"style":2170},[2420],{"type":854,"value":2421},"process",{"type":849,"tag":1120,"props":2423,"children":2424},{"style":1127},[2425],{"type":854,"value":876},{"type":849,"tag":1120,"props":2427,"children":2428},{"style":2170},[2429],{"type":854,"value":2430},"env",{"type":849,"tag":1120,"props":2432,"children":2433},{"style":1127},[2434],{"type":854,"value":2435},"[",{"type":849,"tag":1120,"props":2437,"children":2438},{"style":2170},[2439],{"type":854,"value":2372},{"type":849,"tag":1120,"props":2441,"children":2442},{"style":1127},[2443],{"type":854,"value":2444},"]",{"type":854,"value":1132},{"type":849,"tag":1120,"props":2447,"children":2448},{"class":1122,"style":1123},[2449,2454,2459,2464,2469,2474,2479,2484,2488,2493,2498,2502,2506,2511],{"type":849,"tag":1120,"props":2450,"children":2451},{"style":2248},[2452],{"type":854,"value":2453},"  if",{"type":849,"tag":1120,"props":2455,"children":2456},{"style":1127},[2457],{"type":854,"value":2458}," (!",{"type":849,"tag":1120,"props":2460,"children":2461},{"style":2170},[2462],{"type":854,"value":2463},"value",{"type":849,"tag":1120,"props":2465,"children":2466},{"style":1127},[2467],{"type":854,"value":2468},") ",{"type":849,"tag":1120,"props":2470,"children":2471},{"style":2248},[2472],{"type":854,"value":2473},"throw",{"type":849,"tag":1120,"props":2475,"children":2476},{"style":1217},[2477],{"type":854,"value":2478}," new",{"type":849,"tag":1120,"props":2480,"children":2481},{"style":2072},[2482],{"type":854,"value":2483}," Error",{"type":849,"tag":1120,"props":2485,"children":2486},{"style":1127},[2487],{"type":854,"value":2367},{"type":849,"tag":1120,"props":2489,"children":2490},{"style":1149},[2491],{"type":854,"value":2492},"`",{"type":849,"tag":1120,"props":2494,"children":2495},{"style":1217},[2496],{"type":854,"value":2497},"${",{"type":849,"tag":1120,"props":2499,"children":2500},{"style":2170},[2501],{"type":854,"value":2372},{"type":849,"tag":1120,"props":2503,"children":2504},{"style":1217},[2505],{"type":854,"value":1736},{"type":849,"tag":1120,"props":2507,"children":2508},{"style":1149},[2509],{"type":854,"value":2510}," is required`",{"type":849,"tag":1120,"props":2512,"children":2513},{"style":1127},[2514],{"type":854,"value":2515},")",{"type":854,"value":1132},{"type":849,"tag":1120,"props":2518,"children":2519},{"class":1122,"style":1123},[2520,2525],{"type":849,"tag":1120,"props":2521,"children":2522},{"style":2248},[2523],{"type":854,"value":2524},"  return",{"type":849,"tag":1120,"props":2526,"children":2527},{"style":2170},[2528],{"type":854,"value":2411},{"type":854,"value":1132},{"type":849,"tag":1120,"props":2531,"children":2532},{"class":1122,"style":1123},[2533],{"type":849,"tag":1120,"props":2534,"children":2535},{"style":1127},[2536],{"type":854,"value":1736},{"type":854,"value":1132},{"type":849,"tag":1120,"props":2539,"children":2540},{"class":1122,"style":1123},[],{"type":854,"value":1132},{"type":849,"tag":1120,"props":2543,"children":2544},{"class":1122,"style":1123},[2545,2550,2555,2560,2564,2568,2573,2577,2582,2586,2590,2595],{"type":849,"tag":1120,"props":2546,"children":2547},{"style":2248},[2548],{"type":854,"value":2549},"export",{"type":849,"tag":1120,"props":2551,"children":2552},{"style":1217},[2553],{"type":854,"value":2554}," const",{"type":849,"tag":1120,"props":2556,"children":2557},{"style":2408},[2558],{"type":854,"value":2559}," auth",{"type":849,"tag":1120,"props":2561,"children":2562},{"style":1127},[2563],{"type":854,"value":2416},{"type":849,"tag":1120,"props":2565,"children":2566},{"style":2072},[2567],{"type":854,"value":868},{"type":849,"tag":1120,"props":2569,"children":2570},{"style":1127},[2571],{"type":854,"value":2572},"\u003C",{"type":849,"tag":1120,"props":2574,"children":2575},{"style":2379},[2576],{"type":854,"value":2331},{"type":849,"tag":1120,"props":2578,"children":2579},{"style":1127},[2580],{"type":854,"value":2581},">(",{"type":849,"tag":1120,"props":2583,"children":2584},{"style":2170},[2585],{"type":854,"value":2296},{"type":849,"tag":1120,"props":2587,"children":2588},{"style":1127},[2589],{"type":854,"value":876},{"type":849,"tag":1120,"props":2591,"children":2592},{"style":2170},[2593],{"type":854,"value":2594},"betterAuth",{"type":849,"tag":1120,"props":2596,"children":2597},{"style":1127},[2598],{"type":854,"value":2599},", {",{"type":854,"value":1132},{"type":849,"tag":1120,"props":2602,"children":2603},{"class":1122,"style":1123},[2604,2609,2613,2618,2623],{"type":849,"tag":1120,"props":2605,"children":2606},{"style":2072},[2607],{"type":854,"value":2608},"  oidc",{"type":849,"tag":1120,"props":2610,"children":2611},{"style":2170},[2612],{"type":854,"value":987},{"type":849,"tag":1120,"props":2614,"children":2615},{"style":1127},[2616],{"type":854,"value":2617}," () ",{"type":849,"tag":1120,"props":2619,"children":2620},{"style":1217},[2621],{"type":854,"value":2622},"=>",{"type":849,"tag":1120,"props":2624,"children":2625},{"style":1127},[2626],{"type":854,"value":2627}," ({",{"type":854,"value":1132},{"type":849,"tag":1120,"props":2630,"children":2631},{"class":1122,"style":1123},[2632,2637,2641,2645,2650],{"type":849,"tag":1120,"props":2633,"children":2634},{"style":2170},[2635],{"type":854,"value":2636},"    issuer:",{"type":849,"tag":1120,"props":2638,"children":2639},{"style":2072},[2640],{"type":854,"value":2362},{"type":849,"tag":1120,"props":2642,"children":2643},{"style":1127},[2644],{"type":854,"value":2367},{"type":849,"tag":1120,"props":2646,"children":2647},{"style":1149},[2648],{"type":854,"value":2649},"'OIDC_ISSUER'",{"type":849,"tag":1120,"props":2651,"children":2652},{"style":1127},[2653],{"type":854,"value":2654},"),",{"type":854,"value":1132},{"type":849,"tag":1120,"props":2657,"children":2658},{"class":1122,"style":1123},[2659,2664,2668,2672,2677],{"type":849,"tag":1120,"props":2660,"children":2661},{"style":2170},[2662],{"type":854,"value":2663},"    clientId:",{"type":849,"tag":1120,"props":2665,"children":2666},{"style":2072},[2667],{"type":854,"value":2362},{"type":849,"tag":1120,"props":2669,"children":2670},{"style":1127},[2671],{"type":854,"value":2367},{"type":849,"tag":1120,"props":2673,"children":2674},{"style":1149},[2675],{"type":854,"value":2676},"'OIDC_CLIENT_ID'",{"type":849,"tag":1120,"props":2678,"children":2679},{"style":1127},[2680],{"type":854,"value":2654},{"type":854,"value":1132},{"type":849,"tag":1120,"props":2683,"children":2684},{"class":1122,"style":1123},[2685,2690,2694,2698,2703],{"type":849,"tag":1120,"props":2686,"children":2687},{"style":2170},[2688],{"type":854,"value":2689},"    clientSecret:",{"type":849,"tag":1120,"props":2691,"children":2692},{"style":2072},[2693],{"type":854,"value":2362},{"type":849,"tag":1120,"props":2695,"children":2696},{"style":1127},[2697],{"type":854,"value":2367},{"type":849,"tag":1120,"props":2699,"children":2700},{"style":1149},[2701],{"type":854,"value":2702},"'OIDC_CLIENT_SECRET'",{"type":849,"tag":1120,"props":2704,"children":2705},{"style":1127},[2706],{"type":854,"value":2654},{"type":854,"value":1132},{"type":849,"tag":1120,"props":2709,"children":2710},{"class":1122,"style":1123},[2711],{"type":849,"tag":1120,"props":2712,"children":2713},{"style":1127},[2714],{"type":854,"value":2715},"  }),",{"type":854,"value":1132},{"type":849,"tag":1120,"props":2718,"children":2719},{"class":1122,"style":1123},[2720],{"type":849,"tag":1120,"props":2721,"children":2722},{"style":1127},[2723],{"type":854,"value":2724},"})",{"type":849,"tag":850,"props":2726,"children":2727},{},[2728,2730,2734],{"type":854,"value":2729},"The ",{"type":849,"tag":857,"props":2731,"children":2732},{},[2733],{"type":854,"value":861},{"type":854,"value":2735}," options:",{"type":849,"tag":2737,"props":2738,"children":2739},"table",{},[2740,2759],{"type":849,"tag":2741,"props":2742,"children":2743},"thead",{},[2744],{"type":849,"tag":2745,"props":2746,"children":2747},"tr",{},[2748,2754],{"type":849,"tag":2749,"props":2750,"children":2751},"th",{},[2752],{"type":854,"value":2753},"Option",{"type":849,"tag":2749,"props":2755,"children":2756},{},[2757],{"type":854,"value":2758},"Meaning",{"type":849,"tag":2760,"props":2761,"children":2762},"tbody",{},[2763,2780,2796,2812,2848],{"type":849,"tag":2745,"props":2764,"children":2765},{},[2766,2775],{"type":849,"tag":2767,"props":2768,"children":2769},"td",{},[2770],{"type":849,"tag":857,"props":2771,"children":2772},{},[2773],{"type":854,"value":2774},"issuer",{"type":849,"tag":2767,"props":2776,"children":2777},{},[2778],{"type":854,"value":2779},"The IdP's issuer URL. Required.",{"type":849,"tag":2745,"props":2781,"children":2782},{},[2783,2791],{"type":849,"tag":2767,"props":2784,"children":2785},{},[2786],{"type":849,"tag":857,"props":2787,"children":2788},{},[2789],{"type":854,"value":2790},"clientId",{"type":849,"tag":2767,"props":2792,"children":2793},{},[2794],{"type":854,"value":2795},"The client ID. Required.",{"type":849,"tag":2745,"props":2797,"children":2798},{},[2799,2807],{"type":849,"tag":2767,"props":2800,"children":2801},{},[2802],{"type":849,"tag":857,"props":2803,"children":2804},{},[2805],{"type":854,"value":2806},"clientSecret",{"type":849,"tag":2767,"props":2808,"children":2809},{},[2810],{"type":854,"value":2811},"The client secret. Required.",{"type":849,"tag":2745,"props":2813,"children":2814},{},[2815,2823],{"type":849,"tag":2767,"props":2816,"children":2817},{},[2818],{"type":849,"tag":857,"props":2819,"children":2820},{},[2821],{"type":854,"value":2822},"scopes",{"type":849,"tag":2767,"props":2824,"children":2825},{},[2826,2828,2833,2835,2839,2841,2847],{"type":854,"value":2827},"More scopes besides ",{"type":849,"tag":857,"props":2829,"children":2830},{},[2831],{"type":854,"value":2832},"openid email profile",{"type":854,"value":2834},", for example ",{"type":849,"tag":857,"props":2836,"children":2837},{},[2838],{"type":854,"value":1928},{"type":854,"value":2840}," on Entra ID and Okta. See ",{"type":849,"tag":905,"props":2842,"children":2844},{"href":2843},"#other-identity-providers",[2845],{"type":854,"value":2846},"Other identity providers",{"type":854,"value":876},{"type":849,"tag":2745,"props":2849,"children":2850},{},[2851,2859],{"type":849,"tag":2767,"props":2852,"children":2853},{},[2854],{"type":849,"tag":857,"props":2855,"children":2856},{},[2857],{"type":854,"value":2858},"onSignIn",{"type":849,"tag":2767,"props":2860,"children":2861},{},[2862,2864,2870],{"type":854,"value":2863},"A function that runs at every IdP sign-in with the verified ID-token claims. See ",{"type":849,"tag":905,"props":2865,"children":2867},{"href":2866},"#roles-and-groups-from-the-idp",[2868],{"type":854,"value":2869},"Roles and groups from the IdP",{"type":854,"value":876},{"type":849,"tag":850,"props":2872,"children":2873},{},[2874,2878,2880,2885,2887,2891,2893,2898,2900,2905,2907,2912,2913,2918],{"type":849,"tag":857,"props":2875,"children":2876},{},[2877],{"type":854,"value":2774},{"type":854,"value":2879}," must be an ",{"type":849,"tag":857,"props":2881,"children":2882},{},[2883],{"type":854,"value":2884},"https",{"type":854,"value":2886}," URL. It must equal the ",{"type":849,"tag":857,"props":2888,"children":2889},{},[2890],{"type":854,"value":2774},{"type":854,"value":2892}," value of the IdP's\ndiscovery document (",{"type":849,"tag":857,"props":2894,"children":2895},{},[2896],{"type":854,"value":2897},"\u003Cissuer>\u002F.well-known\u002Fopenid-configuration",{"type":854,"value":2899},") exactly,\nincluding a trailing slash. When the values differ, sign-in fails and the\nConvex log shows ",{"type":849,"tag":857,"props":2901,"children":2902},{},[2903],{"type":854,"value":2904},"AUTH_OIDC_ISSUER_MISMATCH",{"type":854,"value":2906}," with ",{"type":849,"tag":857,"props":2908,"children":2909},{},[2910],{"type":854,"value":2911},"expected",{"type":854,"value":1754},{"type":849,"tag":857,"props":2914,"children":2915},{},[2916],{"type":854,"value":2917},"received",{"type":854,"value":876},{"type":849,"tag":850,"props":2920,"children":2921},{},[2922,2927,2929,2934,2936,2940],{"type":849,"tag":982,"props":2923,"children":2924},{},[2925],{"type":854,"value":2926},"Warning:",{"type":854,"value":2928}," The issuer is part of the account key of every IdP user. If you\nchange the issuer, no IdP user can sign in to their old account again. They get\n",{"type":849,"tag":857,"props":2930,"children":2931},{},[2932],{"type":854,"value":2933},"account_not_linked",{"type":854,"value":2935},". Pin the issuer with ",{"type":849,"tag":857,"props":2937,"children":2938},{},[2939],{"type":854,"value":1059},{"type":854,"value":2941}," before the first user\nsigns in.",{"type":849,"tag":850,"props":2943,"children":2944},{},[2945,2947,2951,2953,2958,2960,2965,2967,2971,2973,2977,2979,2984,2986,2990,2992,2996,2998,3003,3005,3010],{"type":854,"value":2946},"The factory rejects ",{"type":849,"tag":857,"props":2948,"children":2949},{},[2950],{"type":854,"value":861},{"type":854,"value":2952}," together with ",{"type":849,"tag":857,"props":2954,"children":2955},{},[2956],{"type":854,"value":2957},"twoFactor",{"type":854,"value":2959},", a ",{"type":849,"tag":857,"props":2961,"children":2962},{},[2963],{"type":854,"value":2964},"socialProviders",{"type":854,"value":2966}," entry\nnamed ",{"type":849,"tag":857,"props":2968,"children":2969},{},[2970],{"type":854,"value":861},{"type":854,"value":2972},", and ",{"type":849,"tag":857,"props":2974,"children":2975},{},[2976],{"type":854,"value":861},{"type":854,"value":2978}," in ",{"type":849,"tag":857,"props":2980,"children":2981},{},[2982],{"type":854,"value":2983},"account.accountLinking.trustedProviders",{"type":854,"value":2985},". It throws\nwhen the module loads, with a message that names the conflicting option. One\ncase is later: when ",{"type":849,"tag":857,"props":2987,"children":2988},{},[2989],{"type":854,"value":2964},{"type":854,"value":2991}," is a function that returns an ",{"type":849,"tag":857,"props":2993,"children":2994},{},[2995],{"type":854,"value":861},{"type":854,"value":2997},"\nentry, ",{"type":849,"tag":857,"props":2999,"children":3000},{},[3001],{"type":854,"value":3002},"createAuth",{"type":854,"value":3004}," fails with ",{"type":849,"tag":857,"props":3006,"children":3007},{},[3008],{"type":854,"value":3009},"AUTH_CONFIG_INVALID",{"type":854,"value":3011},", and the Convex log shows\nthe message.",{"type":849,"tag":850,"props":3013,"children":3014},{},[3015,3017,3022,3024,3029,3030,3035],{"type":854,"value":3016},"Nothing changes in ",{"type":849,"tag":857,"props":3018,"children":3019},{},[3020],{"type":854,"value":3021},"nuxt.config.ts",{"type":854,"value":3023},". The auth proxy already forwards\n",{"type":849,"tag":857,"props":3025,"children":3026},{},[3027],{"type":854,"value":3028},"\u002Fapi\u002Fauth\u002Fcallback\u002F*",{"type":854,"value":2972},{"type":849,"tag":857,"props":3031,"children":3032},{},[3033],{"type":854,"value":3034},"auth.registerRoutes(http)",{"type":854,"value":3036}," adds the logout route.",{"type":849,"tag":883,"props":3038,"children":3040},{"id":3039},"sign-in",[3041],{"type":854,"value":3042},"Sign in",{"type":849,"tag":850,"props":3044,"children":3045},{},[3046,3048,3053,3055,3059],{"type":854,"value":3047},"Call ",{"type":849,"tag":857,"props":3049,"children":3050},{},[3051],{"type":854,"value":3052},"client.signIn.social()",{"type":854,"value":3054}," with the provider ",{"type":849,"tag":857,"props":3056,"children":3057},{},[3058],{"type":854,"value":861},{"type":854,"value":3060},". Better Auth redirects the\nbrowser to the IdP:",{"type":849,"tag":1109,"props":3062,"children":3065},{"language":3063,"filename":3064,"class":1113},"vue","app\u002Fpages\u002Fsign-in.vue",[3066],{"type":849,"tag":857,"props":3067,"children":3069},{"class":3068},"language-vue",[3070,3111,3112,3140,3141,3144,3145,3172,3173,3203,3204,3229,3230,3263,3264,3288,3289,3325,3326,3339,3340,3369,3370,3383,3384,3401,3402,3409,3410,3413,3414,3437,3438,3462,3463,3487,3488,3537,3538,3555,3556,3590,3591,3608,3609,3617,3618,3648,3649,3673,3674,3695,3696,3729,3730,3743,3744,3756,3757,3765,3766,3773,3774,3790,3791,3794,3795,3811,3812,3857,3858,3866,3867,3883,3884,3944,3945],{"type":849,"tag":1120,"props":3071,"children":3072},{"class":1122,"style":1123},[3073,3078,3084,3090,3095,3100,3106],{"type":849,"tag":1120,"props":3074,"children":3076},{"style":3075},"color:#800000;--shiki-dark:#808080",[3077],{"type":854,"value":2572},{"type":849,"tag":1120,"props":3079,"children":3081},{"style":3080},"color:#800000;--shiki-dark:#569CD6",[3082],{"type":854,"value":3083},"script",{"type":849,"tag":1120,"props":3085,"children":3087},{"style":3086},"color:#E50000;--shiki-dark:#9CDCFE",[3088],{"type":854,"value":3089}," setup",{"type":849,"tag":1120,"props":3091,"children":3092},{"style":3086},[3093],{"type":854,"value":3094}," lang",{"type":849,"tag":1120,"props":3096,"children":3097},{"style":1127},[3098],{"type":854,"value":3099},"=",{"type":849,"tag":1120,"props":3101,"children":3103},{"style":3102},"color:#0000FF;--shiki-dark:#CE9178",[3104],{"type":854,"value":3105},"\"ts\"",{"type":849,"tag":1120,"props":3107,"children":3108},{"style":3075},[3109],{"type":854,"value":3110},">",{"type":854,"value":1132},{"type":849,"tag":1120,"props":3113,"children":3114},{"class":1122,"style":1123},[3115,3120,3125,3130,3135],{"type":849,"tag":1120,"props":3116,"children":3117},{"style":2072},[3118],{"type":854,"value":3119},"definePageMeta",{"type":849,"tag":1120,"props":3121,"children":3122},{"style":1127},[3123],{"type":854,"value":3124},"({ ",{"type":849,"tag":1120,"props":3126,"children":3127},{"style":2170},[3128],{"type":854,"value":3129},"convexAuth:",{"type":849,"tag":1120,"props":3131,"children":3132},{"style":1149},[3133],{"type":854,"value":3134}," 'guest'",{"type":849,"tag":1120,"props":3136,"children":3137},{"style":1127},[3138],{"type":854,"value":3139}," })",{"type":854,"value":1132},{"type":849,"tag":1120,"props":3142,"children":3143},{"class":1122,"style":1123},[],{"type":854,"value":1132},{"type":849,"tag":1120,"props":3146,"children":3147},{"class":1122,"style":1123},[3148,3153,3158,3162,3167],{"type":849,"tag":1120,"props":3149,"children":3150},{"style":1217},[3151],{"type":854,"value":3152},"const",{"type":849,"tag":1120,"props":3154,"children":3155},{"style":2408},[3156],{"type":854,"value":3157}," route",{"type":849,"tag":1120,"props":3159,"children":3160},{"style":1127},[3161],{"type":854,"value":2416},{"type":849,"tag":1120,"props":3163,"children":3164},{"style":2072},[3165],{"type":854,"value":3166},"useRoute",{"type":849,"tag":1120,"props":3168,"children":3169},{"style":1127},[3170],{"type":854,"value":3171},"()",{"type":854,"value":1132},{"type":849,"tag":1120,"props":3174,"children":3175},{"class":1122,"style":1123},[3176,3180,3184,3189,3194,3199],{"type":849,"tag":1120,"props":3177,"children":3178},{"style":1217},[3179],{"type":854,"value":3152},{"type":849,"tag":1120,"props":3181,"children":3182},{"style":1127},[3183],{"type":854,"value":2256},{"type":849,"tag":1120,"props":3185,"children":3186},{"style":2408},[3187],{"type":854,"value":3188},"client",{"type":849,"tag":1120,"props":3190,"children":3191},{"style":1127},[3192],{"type":854,"value":3193}," } = ",{"type":849,"tag":1120,"props":3195,"children":3196},{"style":2072},[3197],{"type":854,"value":3198},"useConvexAuth",{"type":849,"tag":1120,"props":3200,"children":3201},{"style":1127},[3202],{"type":854,"value":3171},{"type":854,"value":1132},{"type":849,"tag":1120,"props":3205,"children":3206},{"class":1122,"style":1123},[3207,3211,3216,3220,3225],{"type":849,"tag":1120,"props":3208,"children":3209},{"style":1217},[3210],{"type":854,"value":3152},{"type":849,"tag":1120,"props":3212,"children":3213},{"style":2408},[3214],{"type":854,"value":3215}," returnTo",{"type":849,"tag":1120,"props":3217,"children":3218},{"style":1127},[3219],{"type":854,"value":2416},{"type":849,"tag":1120,"props":3221,"children":3222},{"style":2072},[3223],{"type":854,"value":3224},"useConvexAuthReturnTo",{"type":849,"tag":1120,"props":3226,"children":3227},{"style":1127},[3228],{"type":854,"value":3171},{"type":854,"value":1132},{"type":849,"tag":1120,"props":3231,"children":3232},{"class":1122,"style":1123},[3233,3237,3242,3246,3251,3255,3259],{"type":849,"tag":1120,"props":3234,"children":3235},{"style":1217},[3236],{"type":854,"value":3152},{"type":849,"tag":1120,"props":3238,"children":3239},{"style":2408},[3240],{"type":854,"value":3241}," redirecting",{"type":849,"tag":1120,"props":3243,"children":3244},{"style":1127},[3245],{"type":854,"value":2416},{"type":849,"tag":1120,"props":3247,"children":3248},{"style":2072},[3249],{"type":854,"value":3250},"ref",{"type":849,"tag":1120,"props":3252,"children":3253},{"style":1127},[3254],{"type":854,"value":2367},{"type":849,"tag":1120,"props":3256,"children":3257},{"style":1217},[3258],{"type":854,"value":1242},{"type":849,"tag":1120,"props":3260,"children":3261},{"style":1127},[3262],{"type":854,"value":2515},{"type":854,"value":1132},{"type":849,"tag":1120,"props":3265,"children":3266},{"class":1122,"style":1123},[3267,3271,3276,3280,3284],{"type":849,"tag":1120,"props":3268,"children":3269},{"style":1217},[3270],{"type":854,"value":3152},{"type":849,"tag":1120,"props":3272,"children":3273},{"style":2408},[3274],{"type":854,"value":3275}," signInError",{"type":849,"tag":1120,"props":3277,"children":3278},{"style":1127},[3279],{"type":854,"value":2416},{"type":849,"tag":1120,"props":3281,"children":3282},{"style":2072},[3283],{"type":854,"value":3250},{"type":849,"tag":1120,"props":3285,"children":3286},{"style":1127},[3287],{"type":854,"value":2367},{"type":854,"value":1132},{"type":849,"tag":1120,"props":3290,"children":3291},{"class":1122,"style":1123},[3292,3297,3301,3306,3310,3315,3320],{"type":849,"tag":1120,"props":3293,"children":3294},{"style":2170},[3295],{"type":854,"value":3296},"  route",{"type":849,"tag":1120,"props":3298,"children":3299},{"style":1127},[3300],{"type":854,"value":876},{"type":849,"tag":1120,"props":3302,"children":3303},{"style":2170},[3304],{"type":854,"value":3305},"query",{"type":849,"tag":1120,"props":3307,"children":3308},{"style":1127},[3309],{"type":854,"value":876},{"type":849,"tag":1120,"props":3311,"children":3312},{"style":2170},[3313],{"type":854,"value":3314},"error",{"type":849,"tag":1120,"props":3316,"children":3317},{"style":1127},[3318],{"type":854,"value":3319}," === ",{"type":849,"tag":1120,"props":3321,"children":3322},{"style":1149},[3323],{"type":854,"value":3324},"'account_not_linked'",{"type":854,"value":1132},{"type":849,"tag":1120,"props":3327,"children":3328},{"class":1122,"style":1123},[3329,3334],{"type":849,"tag":1120,"props":3330,"children":3331},{"style":1127},[3332],{"type":854,"value":3333},"    ? ",{"type":849,"tag":1120,"props":3335,"children":3336},{"style":1149},[3337],{"type":854,"value":3338},"'This email already has an account. Sign in with your old method first, then link your company account in the settings. If you never had an account here, contact support.'",{"type":854,"value":1132},{"type":849,"tag":1120,"props":3341,"children":3342},{"class":1122,"style":1123},[3343,3348,3353,3357,3361,3365],{"type":849,"tag":1120,"props":3344,"children":3345},{"style":1127},[3346],{"type":854,"value":3347},"    : ",{"type":849,"tag":1120,"props":3349,"children":3350},{"style":2170},[3351],{"type":854,"value":3352},"route",{"type":849,"tag":1120,"props":3354,"children":3355},{"style":1127},[3356],{"type":854,"value":876},{"type":849,"tag":1120,"props":3358,"children":3359},{"style":2170},[3360],{"type":854,"value":3305},{"type":849,"tag":1120,"props":3362,"children":3363},{"style":1127},[3364],{"type":854,"value":876},{"type":849,"tag":1120,"props":3366,"children":3367},{"style":2170},[3368],{"type":854,"value":3314},{"type":854,"value":1132},{"type":849,"tag":1120,"props":3371,"children":3372},{"class":1122,"style":1123},[3373,3378],{"type":849,"tag":1120,"props":3374,"children":3375},{"style":1127},[3376],{"type":854,"value":3377},"      ? ",{"type":849,"tag":1120,"props":3379,"children":3380},{"style":1149},[3381],{"type":854,"value":3382},"'Sign in could not be completed.'",{"type":854,"value":1132},{"type":849,"tag":1120,"props":3385,"children":3386},{"class":1122,"style":1123},[3387,3392,3397],{"type":849,"tag":1120,"props":3388,"children":3389},{"style":1127},[3390],{"type":854,"value":3391},"      : ",{"type":849,"tag":1120,"props":3393,"children":3394},{"style":1149},[3395],{"type":854,"value":3396},"''",{"type":849,"tag":1120,"props":3398,"children":3399},{"style":1127},[3400],{"type":854,"value":1157},{"type":854,"value":1132},{"type":849,"tag":1120,"props":3403,"children":3404},{"class":1122,"style":1123},[3405],{"type":849,"tag":1120,"props":3406,"children":3407},{"style":1127},[3408],{"type":854,"value":2515},{"type":854,"value":1132},{"type":849,"tag":1120,"props":3411,"children":3412},{"class":1122,"style":1123},[],{"type":854,"value":1132},{"type":849,"tag":1120,"props":3415,"children":3416},{"class":1122,"style":1123},[3417,3422,3427,3432],{"type":849,"tag":1120,"props":3418,"children":3419},{"style":1217},[3420],{"type":854,"value":3421},"async",{"type":849,"tag":1120,"props":3423,"children":3424},{"style":1217},[3425],{"type":854,"value":3426}," function",{"type":849,"tag":1120,"props":3428,"children":3429},{"style":2072},[3430],{"type":854,"value":3431}," signInWithCompany",{"type":849,"tag":1120,"props":3433,"children":3434},{"style":1127},[3435],{"type":854,"value":3436},"() {",{"type":854,"value":1132},{"type":849,"tag":1120,"props":3439,"children":3440},{"class":1122,"style":1123},[3441,3446,3450,3454,3458],{"type":849,"tag":1120,"props":3442,"children":3443},{"style":2170},[3444],{"type":854,"value":3445},"  signInError",{"type":849,"tag":1120,"props":3447,"children":3448},{"style":1127},[3449],{"type":854,"value":876},{"type":849,"tag":1120,"props":3451,"children":3452},{"style":2170},[3453],{"type":854,"value":2463},{"type":849,"tag":1120,"props":3455,"children":3456},{"style":1127},[3457],{"type":854,"value":2416},{"type":849,"tag":1120,"props":3459,"children":3460},{"style":1149},[3461],{"type":854,"value":3396},{"type":854,"value":1132},{"type":849,"tag":1120,"props":3464,"children":3465},{"class":1122,"style":1123},[3466,3471,3475,3479,3483],{"type":849,"tag":1120,"props":3467,"children":3468},{"style":2170},[3469],{"type":854,"value":3470},"  redirecting",{"type":849,"tag":1120,"props":3472,"children":3473},{"style":1127},[3474],{"type":854,"value":876},{"type":849,"tag":1120,"props":3476,"children":3477},{"style":2170},[3478],{"type":854,"value":2463},{"type":849,"tag":1120,"props":3480,"children":3481},{"style":1127},[3482],{"type":854,"value":2416},{"type":849,"tag":1120,"props":3484,"children":3485},{"style":1217},[3486],{"type":854,"value":1220},{"type":854,"value":1132},{"type":849,"tag":1120,"props":3489,"children":3490},{"class":1122,"style":1123},[3491,3495,3500,3504,3509,3514,3518,3523,3527,3532],{"type":849,"tag":1120,"props":3492,"children":3493},{"style":1217},[3494],{"type":854,"value":2405},{"type":849,"tag":1120,"props":3496,"children":3497},{"style":2408},[3498],{"type":854,"value":3499}," result",{"type":849,"tag":1120,"props":3501,"children":3502},{"style":1127},[3503],{"type":854,"value":2416},{"type":849,"tag":1120,"props":3505,"children":3506},{"style":2248},[3507],{"type":854,"value":3508},"await",{"type":849,"tag":1120,"props":3510,"children":3511},{"style":2170},[3512],{"type":854,"value":3513}," client",{"type":849,"tag":1120,"props":3515,"children":3516},{"style":1127},[3517],{"type":854,"value":876},{"type":849,"tag":1120,"props":3519,"children":3520},{"style":2170},[3521],{"type":854,"value":3522},"signIn",{"type":849,"tag":1120,"props":3524,"children":3525},{"style":1127},[3526],{"type":854,"value":876},{"type":849,"tag":1120,"props":3528,"children":3529},{"style":2072},[3530],{"type":854,"value":3531},"social",{"type":849,"tag":1120,"props":3533,"children":3534},{"style":1127},[3535],{"type":854,"value":3536},"({",{"type":854,"value":1132},{"type":849,"tag":1120,"props":3539,"children":3540},{"class":1122,"style":1123},[3541,3546,3551],{"type":849,"tag":1120,"props":3542,"children":3543},{"style":2170},[3544],{"type":854,"value":3545},"    provider:",{"type":849,"tag":1120,"props":3547,"children":3548},{"style":1149},[3549],{"type":854,"value":3550}," 'oidc'",{"type":849,"tag":1120,"props":3552,"children":3553},{"style":1127},[3554],{"type":854,"value":1157},{"type":854,"value":1132},{"type":849,"tag":1120,"props":3557,"children":3558},{"class":1122,"style":1123},[3559,3564,3568,3572,3576,3581,3586],{"type":849,"tag":1120,"props":3560,"children":3561},{"style":2170},[3562],{"type":854,"value":3563},"    callbackURL:",{"type":849,"tag":1120,"props":3565,"children":3566},{"style":2170},[3567],{"type":854,"value":3215},{"type":849,"tag":1120,"props":3569,"children":3570},{"style":1127},[3571],{"type":854,"value":876},{"type":849,"tag":1120,"props":3573,"children":3574},{"style":2170},[3575],{"type":854,"value":2463},{"type":849,"tag":1120,"props":3577,"children":3578},{"style":1127},[3579],{"type":854,"value":3580}," ?? ",{"type":849,"tag":1120,"props":3582,"children":3583},{"style":1149},[3584],{"type":854,"value":3585},"'\u002Fapp'",{"type":849,"tag":1120,"props":3587,"children":3588},{"style":1127},[3589],{"type":854,"value":1157},{"type":854,"value":1132},{"type":849,"tag":1120,"props":3592,"children":3593},{"class":1122,"style":1123},[3594,3599,3604],{"type":849,"tag":1120,"props":3595,"children":3596},{"style":2170},[3597],{"type":854,"value":3598},"    errorCallbackURL:",{"type":849,"tag":1120,"props":3600,"children":3601},{"style":1149},[3602],{"type":854,"value":3603}," '\u002Fsign-in'",{"type":849,"tag":1120,"props":3605,"children":3606},{"style":1127},[3607],{"type":854,"value":1157},{"type":854,"value":1132},{"type":849,"tag":1120,"props":3610,"children":3611},{"class":1122,"style":1123},[3612],{"type":849,"tag":1120,"props":3613,"children":3614},{"style":1127},[3615],{"type":854,"value":3616},"  })",{"type":854,"value":1132},{"type":849,"tag":1120,"props":3619,"children":3620},{"class":1122,"style":1123},[3621,3625,3630,3635,3639,3643],{"type":849,"tag":1120,"props":3622,"children":3623},{"style":2248},[3624],{"type":854,"value":2453},{"type":849,"tag":1120,"props":3626,"children":3627},{"style":1127},[3628],{"type":854,"value":3629}," (",{"type":849,"tag":1120,"props":3631,"children":3632},{"style":2170},[3633],{"type":854,"value":3634},"result",{"type":849,"tag":1120,"props":3636,"children":3637},{"style":1127},[3638],{"type":854,"value":876},{"type":849,"tag":1120,"props":3640,"children":3641},{"style":2170},[3642],{"type":854,"value":3314},{"type":849,"tag":1120,"props":3644,"children":3645},{"style":1127},[3646],{"type":854,"value":3647},") {",{"type":854,"value":1132},{"type":849,"tag":1120,"props":3650,"children":3651},{"class":1122,"style":1123},[3652,3657,3661,3665,3669],{"type":849,"tag":1120,"props":3653,"children":3654},{"style":2170},[3655],{"type":854,"value":3656},"    redirecting",{"type":849,"tag":1120,"props":3658,"children":3659},{"style":1127},[3660],{"type":854,"value":876},{"type":849,"tag":1120,"props":3662,"children":3663},{"style":2170},[3664],{"type":854,"value":2463},{"type":849,"tag":1120,"props":3666,"children":3667},{"style":1127},[3668],{"type":854,"value":2416},{"type":849,"tag":1120,"props":3670,"children":3671},{"style":1217},[3672],{"type":854,"value":1242},{"type":854,"value":1132},{"type":849,"tag":1120,"props":3675,"children":3676},{"class":1122,"style":1123},[3677,3682,3686,3690],{"type":849,"tag":1120,"props":3678,"children":3679},{"style":2170},[3680],{"type":854,"value":3681},"    signInError",{"type":849,"tag":1120,"props":3683,"children":3684},{"style":1127},[3685],{"type":854,"value":876},{"type":849,"tag":1120,"props":3687,"children":3688},{"style":2170},[3689],{"type":854,"value":2463},{"type":849,"tag":1120,"props":3691,"children":3692},{"style":1127},[3693],{"type":854,"value":3694}," =",{"type":854,"value":1132},{"type":849,"tag":1120,"props":3697,"children":3698},{"class":1122,"style":1123},[3699,3704,3708,3712,3716,3720,3724],{"type":849,"tag":1120,"props":3700,"children":3701},{"style":2170},[3702],{"type":854,"value":3703},"      result",{"type":849,"tag":1120,"props":3705,"children":3706},{"style":1127},[3707],{"type":854,"value":876},{"type":849,"tag":1120,"props":3709,"children":3710},{"style":2170},[3711],{"type":854,"value":3314},{"type":849,"tag":1120,"props":3713,"children":3714},{"style":1127},[3715],{"type":854,"value":876},{"type":849,"tag":1120,"props":3717,"children":3718},{"style":2170},[3719],{"type":854,"value":857},{"type":849,"tag":1120,"props":3721,"children":3722},{"style":1127},[3723],{"type":854,"value":3319},{"type":849,"tag":1120,"props":3725,"children":3726},{"style":1149},[3727],{"type":854,"value":3728},"'OIDC_UNAVAILABLE'",{"type":854,"value":1132},{"type":849,"tag":1120,"props":3731,"children":3732},{"class":1122,"style":1123},[3733,3738],{"type":849,"tag":1120,"props":3734,"children":3735},{"style":1127},[3736],{"type":854,"value":3737},"        ? ",{"type":849,"tag":1120,"props":3739,"children":3740},{"style":1149},[3741],{"type":854,"value":3742},"'Company sign-in is not available. Try again in a minute.'",{"type":854,"value":1132},{"type":849,"tag":1120,"props":3745,"children":3746},{"class":1122,"style":1123},[3747,3752],{"type":849,"tag":1120,"props":3748,"children":3749},{"style":1127},[3750],{"type":854,"value":3751},"        : ",{"type":849,"tag":1120,"props":3753,"children":3754},{"style":1149},[3755],{"type":854,"value":3382},{"type":854,"value":1132},{"type":849,"tag":1120,"props":3758,"children":3759},{"class":1122,"style":1123},[3760],{"type":849,"tag":1120,"props":3761,"children":3762},{"style":1127},[3763],{"type":854,"value":3764},"  }",{"type":854,"value":1132},{"type":849,"tag":1120,"props":3767,"children":3768},{"class":1122,"style":1123},[3769],{"type":849,"tag":1120,"props":3770,"children":3771},{"style":1127},[3772],{"type":854,"value":1736},{"type":854,"value":1132},{"type":849,"tag":1120,"props":3775,"children":3776},{"class":1122,"style":1123},[3777,3782,3786],{"type":849,"tag":1120,"props":3778,"children":3779},{"style":3075},[3780],{"type":854,"value":3781},"\u003C\u002F",{"type":849,"tag":1120,"props":3783,"children":3784},{"style":3080},[3785],{"type":854,"value":3083},{"type":849,"tag":1120,"props":3787,"children":3788},{"style":3075},[3789],{"type":854,"value":3110},{"type":854,"value":1132},{"type":849,"tag":1120,"props":3792,"children":3793},{"class":1122,"style":1123},[],{"type":854,"value":1132},{"type":849,"tag":1120,"props":3796,"children":3797},{"class":1122,"style":1123},[3798,3802,3807],{"type":849,"tag":1120,"props":3799,"children":3800},{"style":3075},[3801],{"type":854,"value":2572},{"type":849,"tag":1120,"props":3803,"children":3804},{"style":3080},[3805],{"type":854,"value":3806},"template",{"type":849,"tag":1120,"props":3808,"children":3809},{"style":3075},[3810],{"type":854,"value":3110},{"type":854,"value":1132},{"type":849,"tag":1120,"props":3813,"children":3814},{"class":1122,"style":1123},[3815,3820,3825,3830,3834,3839,3844,3848,3853],{"type":849,"tag":1120,"props":3816,"children":3817},{"style":3075},[3818],{"type":854,"value":3819},"  \u003C",{"type":849,"tag":1120,"props":3821,"children":3822},{"style":3080},[3823],{"type":854,"value":3824},"button",{"type":849,"tag":1120,"props":3826,"children":3827},{"style":3086},[3828],{"type":854,"value":3829}," :disabled",{"type":849,"tag":1120,"props":3831,"children":3832},{"style":1127},[3833],{"type":854,"value":3099},{"type":849,"tag":1120,"props":3835,"children":3836},{"style":3102},[3837],{"type":854,"value":3838},"\"redirecting\"",{"type":849,"tag":1120,"props":3840,"children":3841},{"style":3086},[3842],{"type":854,"value":3843}," @click",{"type":849,"tag":1120,"props":3845,"children":3846},{"style":1127},[3847],{"type":854,"value":3099},{"type":849,"tag":1120,"props":3849,"children":3850},{"style":3102},[3851],{"type":854,"value":3852},"\"signInWithCompany\"",{"type":849,"tag":1120,"props":3854,"children":3855},{"style":3075},[3856],{"type":854,"value":3110},{"type":854,"value":1132},{"type":849,"tag":1120,"props":3859,"children":3860},{"class":1122,"style":1123},[3861],{"type":849,"tag":1120,"props":3862,"children":3863},{"style":1127},[3864],{"type":854,"value":3865},"    Sign in with your company account",{"type":854,"value":1132},{"type":849,"tag":1120,"props":3868,"children":3869},{"class":1122,"style":1123},[3870,3875,3879],{"type":849,"tag":1120,"props":3871,"children":3872},{"style":3075},[3873],{"type":854,"value":3874},"  \u003C\u002F",{"type":849,"tag":1120,"props":3876,"children":3877},{"style":3080},[3878],{"type":854,"value":3824},{"type":849,"tag":1120,"props":3880,"children":3881},{"style":3075},[3882],{"type":854,"value":3110},{"type":854,"value":1132},{"type":849,"tag":1120,"props":3885,"children":3886},{"class":1122,"style":1123},[3887,3891,3895,3900,3904,3909,3914,3918,3923,3927,3932,3936,3940],{"type":849,"tag":1120,"props":3888,"children":3889},{"style":3075},[3890],{"type":854,"value":3819},{"type":849,"tag":1120,"props":3892,"children":3893},{"style":3080},[3894],{"type":854,"value":850},{"type":849,"tag":1120,"props":3896,"children":3897},{"style":3086},[3898],{"type":854,"value":3899}," v-if",{"type":849,"tag":1120,"props":3901,"children":3902},{"style":1127},[3903],{"type":854,"value":3099},{"type":849,"tag":1120,"props":3905,"children":3906},{"style":3102},[3907],{"type":854,"value":3908},"\"signInError\"",{"type":849,"tag":1120,"props":3910,"children":3911},{"style":3086},[3912],{"type":854,"value":3913}," role",{"type":849,"tag":1120,"props":3915,"children":3916},{"style":1127},[3917],{"type":854,"value":3099},{"type":849,"tag":1120,"props":3919,"children":3920},{"style":3102},[3921],{"type":854,"value":3922},"\"alert\"",{"type":849,"tag":1120,"props":3924,"children":3925},{"style":3075},[3926],{"type":854,"value":3110},{"type":849,"tag":1120,"props":3928,"children":3929},{"style":1127},[3930],{"type":854,"value":3931},"{{ signInError }}",{"type":849,"tag":1120,"props":3933,"children":3934},{"style":3075},[3935],{"type":854,"value":3781},{"type":849,"tag":1120,"props":3937,"children":3938},{"style":3080},[3939],{"type":854,"value":850},{"type":849,"tag":1120,"props":3941,"children":3942},{"style":3075},[3943],{"type":854,"value":3110},{"type":854,"value":1132},{"type":849,"tag":1120,"props":3946,"children":3947},{"class":1122,"style":1123},[3948,3952,3956],{"type":849,"tag":1120,"props":3949,"children":3950},{"style":3075},[3951],{"type":854,"value":3781},{"type":849,"tag":1120,"props":3953,"children":3954},{"style":3080},[3955],{"type":854,"value":3806},{"type":849,"tag":1120,"props":3957,"children":3958},{"style":3075},[3959],{"type":854,"value":3110},{"type":849,"tag":850,"props":3961,"children":3962},{},[3963,3965,3970,3972,3976],{"type":854,"value":3964},"When the IdP step fails, Better Auth sends the browser to ",{"type":849,"tag":857,"props":3966,"children":3967},{},[3968],{"type":854,"value":3969},"errorCallbackURL",{"type":854,"value":3971},"\nwith an ",{"type":849,"tag":857,"props":3973,"children":3974},{},[3975],{"type":854,"value":3314},{"type":854,"value":3977}," query parameter:",{"type":849,"tag":2737,"props":3979,"children":3980},{},[3981,4001],{"type":849,"tag":2741,"props":3982,"children":3983},{},[3984],{"type":849,"tag":2745,"props":3985,"children":3986},{},[3987,3992,3997],{"type":849,"tag":2749,"props":3988,"children":3989},{},[3990],{"type":854,"value":3991},"Where",{"type":849,"tag":2749,"props":3993,"children":3994},{},[3995],{"type":854,"value":3996},"Error",{"type":849,"tag":2749,"props":3998,"children":3999},{},[4000],{"type":854,"value":2758},{"type":849,"tag":2760,"props":4002,"children":4003},{},[4004,4027,4051,4074,4102,4131,4159,4182,4205,4240,4267],{"type":849,"tag":2745,"props":4005,"children":4006},{},[4007,4012,4022],{"type":849,"tag":2767,"props":4008,"children":4009},{},[4010],{"type":854,"value":4011},"Sign-in start",{"type":849,"tag":2767,"props":4013,"children":4014},{},[4015,4020],{"type":849,"tag":857,"props":4016,"children":4017},{},[4018],{"type":854,"value":4019},"OIDC_UNAVAILABLE",{"type":854,"value":4021}," (503)",{"type":849,"tag":2767,"props":4023,"children":4024},{},[4025],{"type":854,"value":4026},"The IdP did not answer, or its discovery document is not valid. No redirect happens. Try again after 10 seconds.",{"type":849,"tag":2745,"props":4028,"children":4029},{},[4030,4038,4046],{"type":849,"tag":2767,"props":4031,"children":4032},{},[4033],{"type":849,"tag":857,"props":4034,"children":4035},{},[4036],{"type":854,"value":4037},"?error=",{"type":849,"tag":2767,"props":4039,"children":4040},{},[4041],{"type":849,"tag":857,"props":4042,"children":4043},{},[4044],{"type":854,"value":4045},"issuer_mismatch",{"type":849,"tag":2767,"props":4047,"children":4048},{},[4049],{"type":854,"value":4050},"The callback names another issuer.",{"type":849,"tag":2745,"props":4052,"children":4053},{},[4054,4061,4069],{"type":849,"tag":2767,"props":4055,"children":4056},{},[4057],{"type":849,"tag":857,"props":4058,"children":4059},{},[4060],{"type":854,"value":4037},{"type":849,"tag":2767,"props":4062,"children":4063},{},[4064],{"type":849,"tag":857,"props":4065,"children":4066},{},[4067],{"type":854,"value":4068},"invalid_code",{"type":849,"tag":2767,"props":4070,"children":4071},{},[4072],{"type":854,"value":4073},"The IdP refused the authorization code, or the code was already used.",{"type":849,"tag":2745,"props":4075,"children":4076},{},[4077,4084,4092],{"type":849,"tag":2767,"props":4078,"children":4079},{},[4080],{"type":849,"tag":857,"props":4081,"children":4082},{},[4083],{"type":854,"value":4037},{"type":849,"tag":2767,"props":4085,"children":4086},{},[4087],{"type":849,"tag":857,"props":4088,"children":4089},{},[4090],{"type":854,"value":4091},"unable_to_get_user_info",{"type":849,"tag":2767,"props":4093,"children":4094},{},[4095,4097,4101],{"type":854,"value":4096},"The ID token is not valid: signature, issuer, audience, expiry, or ",{"type":849,"tag":857,"props":4098,"children":4099},{},[4100],{"type":854,"value":1783},{"type":854,"value":876},{"type":849,"tag":2745,"props":4103,"children":4104},{},[4105,4112,4119],{"type":849,"tag":2767,"props":4106,"children":4107},{},[4108],{"type":849,"tag":857,"props":4109,"children":4110},{},[4111],{"type":854,"value":4037},{"type":849,"tag":2767,"props":4113,"children":4114},{},[4115],{"type":849,"tag":857,"props":4116,"children":4117},{},[4118],{"type":854,"value":2933},{"type":849,"tag":2767,"props":4120,"children":4121},{},[4122,4124,4130],{"type":854,"value":4123},"A user with this email exists but has not linked the IdP. See ",{"type":849,"tag":905,"props":4125,"children":4127},{"href":4126},"#move-existing-password-users-to-the-idp",[4128],{"type":854,"value":4129},"Move existing password users",{"type":854,"value":876},{"type":849,"tag":2745,"props":4132,"children":4133},{},[4134,4141,4149],{"type":849,"tag":2767,"props":4135,"children":4136},{},[4137],{"type":849,"tag":857,"props":4138,"children":4139},{},[4140],{"type":854,"value":4037},{"type":849,"tag":2767,"props":4142,"children":4143},{},[4144],{"type":849,"tag":857,"props":4145,"children":4146},{},[4147],{"type":854,"value":4148},"email_not_found",{"type":849,"tag":2767,"props":4150,"children":4151},{},[4152,4154,4158],{"type":854,"value":4153},"The ID token has no ",{"type":849,"tag":857,"props":4155,"children":4156},{},[4157],{"type":854,"value":1827},{"type":854,"value":876},{"type":849,"tag":2745,"props":4160,"children":4161},{},[4162,4169,4177],{"type":849,"tag":2767,"props":4163,"children":4164},{},[4165],{"type":849,"tag":857,"props":4166,"children":4167},{},[4168],{"type":854,"value":4037},{"type":849,"tag":2767,"props":4170,"children":4171},{},[4172],{"type":849,"tag":857,"props":4173,"children":4174},{},[4175],{"type":854,"value":4176},"nonce_binding_missing",{"type":849,"tag":2767,"props":4178,"children":4179},{},[4180],{"type":854,"value":4181},"The sign-in was not started by this app for this provider.",{"type":849,"tag":2745,"props":4183,"children":4184},{},[4185,4192,4200],{"type":849,"tag":2767,"props":4186,"children":4187},{},[4188],{"type":849,"tag":857,"props":4189,"children":4190},{},[4191],{"type":854,"value":4037},{"type":849,"tag":2767,"props":4193,"children":4194},{},[4195],{"type":849,"tag":857,"props":4196,"children":4197},{},[4198],{"type":854,"value":4199},"AUTH_USER_CREATE_UNVERIFIED_EMAIL",{"type":849,"tag":2767,"props":4201,"children":4202},{},[4203],{"type":854,"value":4204},"The IdP does not mark the email as verified. No user is created.",{"type":849,"tag":2745,"props":4206,"children":4207},{},[4208,4215,4223],{"type":849,"tag":2767,"props":4209,"children":4210},{},[4211],{"type":849,"tag":857,"props":4212,"children":4213},{},[4214],{"type":854,"value":4037},{"type":849,"tag":2767,"props":4216,"children":4217},{},[4218],{"type":849,"tag":857,"props":4219,"children":4220},{},[4221],{"type":854,"value":4222},"OIDC_SIGN_IN_REFUSED",{"type":849,"tag":2767,"props":4224,"children":4225},{},[4226,4231,4233,4238],{"type":849,"tag":857,"props":4227,"children":4228},{},[4229],{"type":854,"value":4230},"oidc.onSignIn",{"type":854,"value":4232}," threw. No session is created. The Convex log shows ",{"type":849,"tag":857,"props":4234,"children":4235},{},[4236],{"type":854,"value":4237},"AUTH_OIDC_SIGN_IN_HOOK_REFUSED",{"type":854,"value":4239}," with the error.",{"type":849,"tag":2745,"props":4241,"children":4242},{},[4243,4250,4255],{"type":849,"tag":2767,"props":4244,"children":4245},{},[4246],{"type":849,"tag":857,"props":4247,"children":4248},{},[4249],{"type":854,"value":4037},{"type":849,"tag":2767,"props":4251,"children":4252},{},[4253],{"type":854,"value":4254},"Any other value",{"type":849,"tag":2767,"props":4256,"children":4257},{},[4258,4260,4265],{"type":854,"value":4259},"The IdP refused the request, for example ",{"type":849,"tag":857,"props":4261,"children":4262},{},[4263],{"type":854,"value":4264},"access_denied",{"type":854,"value":4266},". The value comes from the IdP.",{"type":849,"tag":2745,"props":4268,"children":4269},{},[4270,4275,4285],{"type":849,"tag":2767,"props":4271,"children":4272},{},[4273],{"type":854,"value":4274},"Callback response",{"type":849,"tag":2767,"props":4276,"children":4277},{},[4278,4280],{"type":854,"value":4279},"403 ",{"type":849,"tag":857,"props":4281,"children":4282},{},[4283],{"type":854,"value":4284},"AUTH_USER_CREATE_REJECTED",{"type":849,"tag":2767,"props":4286,"children":4287},{},[4288,4293],{"type":849,"tag":857,"props":4289,"children":4290},{},[4291],{"type":854,"value":4292},"beforeUserCreate",{"type":854,"value":4294}," refused the new user. Better Auth answers with an error response and does not redirect.",{"type":849,"tag":883,"props":4296,"children":4298},{"id":4297},"sign-out-of-the-app-and-the-idp",[4299],{"type":854,"value":4300},"Sign out of the app and the IdP",{"type":849,"tag":850,"props":4302,"children":4303},{},[4304,4305,4310,4311,4316],{"type":854,"value":2222},{"type":849,"tag":857,"props":4306,"children":4307},{},[4308],{"type":854,"value":4309},"disableRedirect: true",{"type":854,"value":1930},{"type":849,"tag":857,"props":4312,"children":4313},{},[4314],{"type":854,"value":4315},"client.signOut()",{"type":854,"value":4317},". Better Auth then returns\nthe IdP's sign-out URL, and your code navigates to it:",{"type":849,"tag":850,"props":4319,"children":4320},{},[4321,4325,4327,4331,4333,4338],{"type":849,"tag":982,"props":4322,"children":4323},{},[4324],{"type":854,"value":2926},{"type":854,"value":4326}," Always pass ",{"type":849,"tag":857,"props":4328,"children":4329},{},[4330],{"type":854,"value":4309},{"type":854,"value":4332},". Without it, Better Auth starts\nits own navigation, and that navigation races your ",{"type":849,"tag":857,"props":4334,"children":4335},{},[4336],{"type":854,"value":4337},"navigateTo()",{"type":854,"value":4339}," call.",{"type":849,"tag":1109,"props":4341,"children":4342},{"language":2236,"class":1113},[4343],{"type":849,"tag":857,"props":4344,"children":4345},{"class":2241},[4346,4373,4374,4377,4378,4447,4448,4457,4458,4531,4532],{"type":849,"tag":1120,"props":4347,"children":4348},{"class":1122,"style":1123},[4349,4353,4357,4361,4365,4369],{"type":849,"tag":1120,"props":4350,"children":4351},{"style":1217},[4352],{"type":854,"value":3152},{"type":849,"tag":1120,"props":4354,"children":4355},{"style":1127},[4356],{"type":854,"value":2256},{"type":849,"tag":1120,"props":4358,"children":4359},{"style":2408},[4360],{"type":854,"value":3188},{"type":849,"tag":1120,"props":4362,"children":4363},{"style":1127},[4364],{"type":854,"value":3193},{"type":849,"tag":1120,"props":4366,"children":4367},{"style":2072},[4368],{"type":854,"value":3198},{"type":849,"tag":1120,"props":4370,"children":4371},{"style":1127},[4372],{"type":854,"value":3171},{"type":854,"value":1132},{"type":849,"tag":1120,"props":4375,"children":4376},{"class":1122,"style":1123},[],{"type":854,"value":1132},{"type":849,"tag":1120,"props":4379,"children":4380},{"class":1122,"style":1123},[4381,4385,4389,4394,4398,4402,4406,4410,4415,4419,4424,4429,4433,4438,4443],{"type":849,"tag":1120,"props":4382,"children":4383},{"style":1217},[4384],{"type":854,"value":3152},{"type":849,"tag":1120,"props":4386,"children":4387},{"style":1127},[4388],{"type":854,"value":2256},{"type":849,"tag":1120,"props":4390,"children":4391},{"style":2408},[4392],{"type":854,"value":4393},"data",{"type":849,"tag":1120,"props":4395,"children":4396},{"style":1127},[4397],{"type":854,"value":3193},{"type":849,"tag":1120,"props":4399,"children":4400},{"style":2248},[4401],{"type":854,"value":3508},{"type":849,"tag":1120,"props":4403,"children":4404},{"style":2170},[4405],{"type":854,"value":3513},{"type":849,"tag":1120,"props":4407,"children":4408},{"style":1127},[4409],{"type":854,"value":876},{"type":849,"tag":1120,"props":4411,"children":4412},{"style":2072},[4413],{"type":854,"value":4414},"signOut",{"type":849,"tag":1120,"props":4416,"children":4417},{"style":1127},[4418],{"type":854,"value":3124},{"type":849,"tag":1120,"props":4420,"children":4421},{"style":2170},[4422],{"type":854,"value":4423},"disableRedirect:",{"type":849,"tag":1120,"props":4425,"children":4426},{"style":1217},[4427],{"type":854,"value":4428}," true",{"type":849,"tag":1120,"props":4430,"children":4431},{"style":1127},[4432],{"type":854,"value":1086},{"type":849,"tag":1120,"props":4434,"children":4435},{"style":2170},[4436],{"type":854,"value":4437},"callbackURL:",{"type":849,"tag":1120,"props":4439,"children":4440},{"style":1149},[4441],{"type":854,"value":4442}," '\u002Fsigned-out'",{"type":849,"tag":1120,"props":4444,"children":4445},{"style":1127},[4446],{"type":854,"value":3139},{"type":854,"value":1132},{"type":849,"tag":1120,"props":4449,"children":4450},{"class":1122,"style":1123},[4451],{"type":849,"tag":1120,"props":4452,"children":4454},{"style":4453},"color:#008000;--shiki-dark:#6A9955",[4455],{"type":854,"value":4456},"\u002F\u002F The IdP ends its session, then returns to \u002Fsigned-out.",{"type":854,"value":1132},{"type":849,"tag":1120,"props":4459,"children":4460},{"class":1122,"style":1123},[4461,4466,4470,4474,4479,4484,4488,4493,4497,4502,4506,4511,4515,4519,4523,4527],{"type":849,"tag":1120,"props":4462,"children":4463},{"style":2248},[4464],{"type":854,"value":4465},"if",{"type":849,"tag":1120,"props":4467,"children":4468},{"style":1127},[4469],{"type":854,"value":3629},{"type":849,"tag":1120,"props":4471,"children":4472},{"style":2170},[4473],{"type":854,"value":4393},{"type":849,"tag":1120,"props":4475,"children":4476},{"style":1127},[4477],{"type":854,"value":4478},"?.",{"type":849,"tag":1120,"props":4480,"children":4481},{"style":2170},[4482],{"type":854,"value":4483},"url",{"type":849,"tag":1120,"props":4485,"children":4486},{"style":1127},[4487],{"type":854,"value":2468},{"type":849,"tag":1120,"props":4489,"children":4490},{"style":2170},[4491],{"type":854,"value":4492},"window",{"type":849,"tag":1120,"props":4494,"children":4495},{"style":1127},[4496],{"type":854,"value":876},{"type":849,"tag":1120,"props":4498,"children":4499},{"style":2170},[4500],{"type":854,"value":4501},"location",{"type":849,"tag":1120,"props":4503,"children":4504},{"style":1127},[4505],{"type":854,"value":876},{"type":849,"tag":1120,"props":4507,"children":4508},{"style":2072},[4509],{"type":854,"value":4510},"assign",{"type":849,"tag":1120,"props":4512,"children":4513},{"style":1127},[4514],{"type":854,"value":2367},{"type":849,"tag":1120,"props":4516,"children":4517},{"style":2170},[4518],{"type":854,"value":4393},{"type":849,"tag":1120,"props":4520,"children":4521},{"style":1127},[4522],{"type":854,"value":876},{"type":849,"tag":1120,"props":4524,"children":4525},{"style":2170},[4526],{"type":854,"value":4483},{"type":849,"tag":1120,"props":4528,"children":4529},{"style":1127},[4530],{"type":854,"value":2515},{"type":854,"value":1132},{"type":849,"tag":1120,"props":4533,"children":4534},{"class":1122,"style":1123},[4535,4540,4545,4550,4554,4559],{"type":849,"tag":1120,"props":4536,"children":4537},{"style":2248},[4538],{"type":854,"value":4539},"else",{"type":849,"tag":1120,"props":4541,"children":4542},{"style":2248},[4543],{"type":854,"value":4544}," await",{"type":849,"tag":1120,"props":4546,"children":4547},{"style":2072},[4548],{"type":854,"value":4549}," navigateTo",{"type":849,"tag":1120,"props":4551,"children":4552},{"style":1127},[4553],{"type":854,"value":2367},{"type":849,"tag":1120,"props":4555,"children":4556},{"style":1149},[4557],{"type":854,"value":4558},"'\u002F'",{"type":849,"tag":1120,"props":4560,"children":4561},{"style":1127},[4562],{"type":854,"value":2515},{"type":849,"tag":850,"props":4564,"children":4565},{},[4566,4571,4573,4578,4580,4584,4586,4590,4592,4596],{"type":849,"tag":857,"props":4567,"children":4568},{},[4569],{"type":854,"value":4570},"callbackURL",{"type":854,"value":4572}," is a public page in your app, such as ",{"type":849,"tag":857,"props":4574,"children":4575},{},[4576],{"type":854,"value":4577},"\u002Fsigned-out",{"type":854,"value":4579},". Register\nits full URL in ",{"type":849,"tag":857,"props":4581,"children":4582},{},[4583],{"type":854,"value":1878},{"type":854,"value":4585},". The app session ends before the\nbrowser leaves. A user without an IdP account gets no ",{"type":849,"tag":857,"props":4587,"children":4588},{},[4589],{"type":854,"value":4483},{"type":854,"value":4591},". When the IdP does\nnot answer, the app signs out locally only and returns no ",{"type":849,"tag":857,"props":4593,"children":4594},{},[4595],{"type":854,"value":4483},{"type":854,"value":876},{"type":849,"tag":883,"props":4598,"children":4600},{"id":4599},"central-logout-and-liveness",[4601],{"type":854,"value":4602},"Central logout and liveness",{"type":849,"tag":850,"props":4604,"children":4605},{},[4606],{"type":854,"value":4607},"Two mechanisms end app sessions when the IdP ends the user's grant.",{"type":849,"tag":850,"props":4609,"children":4610},{},[4611,4616],{"type":849,"tag":982,"props":4612,"children":4613},{},[4614],{"type":854,"value":4615},"Back-channel logout.",{"type":854,"value":4617}," The IdP calls the logout route when the user signs out\nat the IdP or an administrator ends the user's IdP sessions. The route ends\nevery app session of that user, on every device, and deletes the stored IdP\ntokens. It works for all site origins. When the route cannot load the IdP\nkeys, it answers 503. When it cannot end the sessions, it answers 500 and\naccepts the IdP's retry of the same logout token, up to three tries. If the\nIdP does not retry, the sessions end only when the liveness check later finds\na refused refresh token. That does not happen with an IdP that keeps the\nrefresh token after a sign-out, or with Google (see below). There the sessions\nstay until you revoke them with the Better Auth session API.",{"type":849,"tag":850,"props":4619,"children":4620},{},[4621,4626,4628,4633],{"type":849,"tag":982,"props":4622,"children":4623},{},[4624],{"type":854,"value":4625},"Liveness check.",{"type":854,"value":4627}," Before the app issues a Convex session token or an access\ntoken for an MCP client, it checks the stored IdP access token. When that\ntoken expires within 60 seconds, the app refreshes it at the IdP. If the IdP\nrefuses the refresh token, every app session of the user ends, and the MCP\nclient's token request fails with ",{"type":849,"tag":857,"props":4629,"children":4630},{},[4631],{"type":854,"value":4632},"invalid_grant",{"type":854,"value":4634},". Keycloak refuses it when:",{"type":849,"tag":895,"props":4636,"children":4637},{},[4638,4643],{"type":849,"tag":899,"props":4639,"children":4640},{},[4641],{"type":854,"value":4642},"an administrator revoked the grant or disabled the user;",{"type":849,"tag":899,"props":4644,"children":4645},{},[4646],{"type":854,"value":4647},"the IdP session ended, also by idle or maximum time.",{"type":849,"tag":850,"props":4649,"children":4650},{},[4651],{"type":854,"value":4652},"The app stores the IdP token's expiry at most 15 minutes ahead, so it asks the\nIdP at least every 15 minutes while the user is active, whatever lifetime the\nIdP gives its access tokens. With Keycloak's 5-minute default, almost every\nConvex token issue asks the IdP.",{"type":849,"tag":850,"props":4654,"children":4655},{},[4656],{"type":854,"value":4657},"Microsoft Entra ID and Okta keep the refresh token after a sign-out at the\nIdP. There the check ends sessions only after a revocation or a disabled user,\nnot after an IdP sign-out. Google issues no refresh token to this app, so there\nis no liveness check with Google.",{"type":849,"tag":850,"props":4659,"children":4660},{},[4661],{"type":854,"value":4662},"How long a session can live after the IdP refused the grant:",{"type":849,"tag":895,"props":4664,"children":4665},{},[4666,4685,4697,4709],{"type":849,"tag":899,"props":4667,"children":4668},{},[4669,4671,4676,4678,4683],{"type":854,"value":4670},"functions that use ",{"type":849,"tag":857,"props":4672,"children":4673},{},[4674],{"type":854,"value":4675},"auth.getUser(ctx)",{"type":854,"value":4677}," or ",{"type":849,"tag":857,"props":4679,"children":4680},{},[4681],{"type":854,"value":4682},"auth.requireUser(ctx)",{"type":854,"value":4684},": the\nIdP access-token lifetime (counted as at most 15 minutes) plus 15 minutes,\nso about 20 minutes with Keycloak's 5-minute default and at most 30 minutes;",{"type":849,"tag":899,"props":4686,"children":4687},{},[4688,4690,4695],{"type":854,"value":4689},"functions that use only ",{"type":849,"tag":857,"props":4691,"children":4692},{},[4693],{"type":854,"value":4694},"ctx.auth.getUserIdentity()",{"type":854,"value":4696},": 15 minutes more (about\n35 minutes with Keycloak's default);",{"type":849,"tag":899,"props":4698,"children":4699},{},[4700,4702,4707],{"type":854,"value":4701},"an MCP client: until its next token request (MCP access tokens last 10\nminutes). Tools that check ",{"type":849,"tag":857,"props":4703,"children":4704},{},[4705],{"type":854,"value":4706},"requireMcpPrincipal",{"type":854,"value":4708}," stop as soon as the sessions\nend;",{"type":849,"tag":899,"props":4710,"children":4711},{},[4712],{"type":854,"value":4713},"without an open tab or MCP client: until the next visit.",{"type":849,"tag":850,"props":4715,"children":4716},{},[4717,4719,4723],{"type":854,"value":4718},"An IdP that does not answer signs nobody out. But the app issues no new Convex\nor MCP token for a grant it could not confirm for more than an hour after the\nstored access token expired. It answers 503 ",{"type":849,"tag":857,"props":4720,"children":4721},{},[4722],{"type":854,"value":4019},{"type":854,"value":4724}," until the IdP\nanswers again. The sessions stay, so nobody has to sign in again. The same\nhappens when the IdP rejects the client secret: rotate the secret in the IdP\nand in Convex together.",{"type":849,"tag":850,"props":4726,"children":4727},{},[4728],{"type":854,"value":4729},"When the stored IdP tokens cannot be read (for example after the auth secret\nchanged without keeping the old one), the app cannot ask the IdP again, so the\ngrant ends: the user's sessions end, and the user signs in again through the\nIdP.",{"type":849,"tag":850,"props":4731,"children":4732},{},[4733],{"type":854,"value":4734},"One exception: if a refresh times out after the IdP already issued a new\nrefresh token, the stored token is lost. The next refresh then signs the user\nout. The user signs in again through the IdP, usually without a password\nprompt.",{"type":849,"tag":850,"props":4736,"children":4737},{},[4738],{"type":854,"value":4739},"A slow IdP can make one request fail. The refresh may take up to 10 seconds,\nbut server rendering waits only 5 seconds for the Convex session token, and\nthe browser 8 seconds. That page render or token request fails. The refresh\nstill finishes and is stored, so the next request works and nobody is signed\nout.",{"type":849,"tag":850,"props":4741,"children":4742},{},[4743],{"type":854,"value":4744},"With Keycloak, the app session follows the IdP session. Keycloak's SSO idle\ntimeout (30 minutes by default) ends the app session after the tab was closed.\nAn open tab keeps the IdP session alive up to Keycloak's SSO maximum. Without\nrefresh tokens there is no liveness check, and only back-channel logout ends\nsessions.",{"type":849,"tag":970,"props":4746,"children":4748},{"id":4747},"central-logout-and-liveness-log-codes",[4749],{"type":854,"value":4750},"Log codes",{"type":849,"tag":850,"props":4752,"children":4753},{},[4754,4756,4761,4763,4768],{"type":854,"value":4755},"The Convex log shows these codes with ",{"type":849,"tag":857,"props":4757,"children":4758},{},[4759],{"type":854,"value":4760},"[better-convex] AUTH_OIDC_FAILURE",{"type":854,"value":4762},". Lines\nabout one user carry the Better Auth ",{"type":849,"tag":857,"props":4764,"children":4765},{},[4766],{"type":854,"value":4767},"userId",{"type":854,"value":876},{"type":849,"tag":2737,"props":4770,"children":4771},{},[4772,4787],{"type":849,"tag":2741,"props":4773,"children":4774},{},[4775],{"type":849,"tag":2745,"props":4776,"children":4777},{},[4778,4783],{"type":849,"tag":2749,"props":4779,"children":4780},{},[4781],{"type":854,"value":4782},"Code",{"type":849,"tag":2749,"props":4784,"children":4785},{},[4786],{"type":854,"value":2758},{"type":849,"tag":2760,"props":4788,"children":4789},{},[4790,4806,4822,4838,4860,4902,4918,4941,4957,4976],{"type":849,"tag":2745,"props":4791,"children":4792},{},[4793,4801],{"type":849,"tag":2767,"props":4794,"children":4795},{},[4796],{"type":849,"tag":857,"props":4797,"children":4798},{},[4799],{"type":854,"value":4800},"AUTH_OIDC_GRANT_ENDED",{"type":849,"tag":2767,"props":4802,"children":4803},{},[4804],{"type":854,"value":4805},"The IdP refused the refresh token. The user's sessions ended.",{"type":849,"tag":2745,"props":4807,"children":4808},{},[4809,4817],{"type":849,"tag":2767,"props":4810,"children":4811},{},[4812],{"type":849,"tag":857,"props":4813,"children":4814},{},[4815],{"type":854,"value":4816},"AUTH_OIDC_LOGOUT_ENDED",{"type":849,"tag":2767,"props":4818,"children":4819},{},[4820],{"type":854,"value":4821},"A back-channel logout ended the user's sessions.",{"type":849,"tag":2745,"props":4823,"children":4824},{},[4825,4833],{"type":849,"tag":2767,"props":4826,"children":4827},{},[4828],{"type":849,"tag":857,"props":4829,"children":4830},{},[4831],{"type":854,"value":4832},"AUTH_OIDC_GRANT_UNCHECKED",{"type":849,"tag":2767,"props":4834,"children":4835},{},[4836],{"type":854,"value":4837},"The IdP did not answer for more than an hour. New tokens are refused until it answers.",{"type":849,"tag":2745,"props":4839,"children":4840},{},[4841,4849],{"type":849,"tag":2767,"props":4842,"children":4843},{},[4844],{"type":849,"tag":857,"props":4845,"children":4846},{},[4847],{"type":854,"value":4848},"AUTH_OIDC_CLIENT_REJECTED",{"type":849,"tag":2767,"props":4850,"children":4851},{},[4852,4854,4859],{"type":854,"value":4853},"The IdP rejected the client ID or secret. Check ",{"type":849,"tag":857,"props":4855,"children":4856},{},[4857],{"type":854,"value":4858},"OIDC_CLIENT_SECRET",{"type":854,"value":876},{"type":849,"tag":2745,"props":4861,"children":4862},{},[4863,4871],{"type":849,"tag":2767,"props":4864,"children":4865},{},[4866],{"type":849,"tag":857,"props":4867,"children":4868},{},[4869],{"type":854,"value":4870},"AUTH_OIDC_REFRESH_FAILED:\u003Cdetail>",{"type":849,"tag":2767,"props":4872,"children":4873},{},[4874,4876,4881,4882,4887,4889,4894,4895,4900],{"type":854,"value":4875},"A refresh failed, for example ",{"type":849,"tag":857,"props":4877,"children":4878},{},[4879],{"type":854,"value":4880},"network",{"type":854,"value":4677},{"type":849,"tag":857,"props":4883,"children":4884},{},[4885],{"type":854,"value":4886},"timeout",{"type":854,"value":4888},". After ",{"type":849,"tag":857,"props":4890,"children":4891},{},[4892],{"type":854,"value":4893},"decrypt",{"type":854,"value":4677},{"type":849,"tag":857,"props":4896,"children":4897},{},[4898],{"type":854,"value":4899},"subject",{"type":854,"value":4901},", the grant ends.",{"type":849,"tag":2745,"props":4903,"children":4904},{},[4905,4913],{"type":849,"tag":2767,"props":4906,"children":4907},{},[4908],{"type":849,"tag":857,"props":4909,"children":4910},{},[4911],{"type":854,"value":4912},"AUTH_OIDC_JWKS_FAILED",{"type":849,"tag":2767,"props":4914,"children":4915},{},[4916],{"type":854,"value":4917},"The IdP signing keys could not be loaded.",{"type":849,"tag":2745,"props":4919,"children":4920},{},[4921,4929],{"type":849,"tag":2767,"props":4922,"children":4923},{},[4924],{"type":849,"tag":857,"props":4925,"children":4926},{},[4927],{"type":854,"value":4928},"AUTH_OIDC_KEY_UNKNOWN",{"type":849,"tag":2767,"props":4930,"children":4931},{},[4932,4934,4939],{"type":854,"value":4933},"A token named a signing key that the app has not loaded. The app loads the IdP keys again at most every 30 seconds, so a logout token signed with a new key within that time is refused. Then only the liveness check can end those sessions; see ",{"type":849,"tag":905,"props":4935,"children":4937},{"href":4936},"#central-logout-and-liveness",[4938],{"type":854,"value":4602},{"type":854,"value":4940},". Often a forged logout request.",{"type":849,"tag":2745,"props":4942,"children":4943},{},[4944,4952],{"type":849,"tag":2767,"props":4945,"children":4946},{},[4947],{"type":849,"tag":857,"props":4948,"children":4949},{},[4950],{"type":854,"value":4951},"AUTH_OIDC_LOGOUT_REVOKE_FAILED",{"type":849,"tag":2767,"props":4953,"children":4954},{},[4955],{"type":854,"value":4956},"A back-channel logout could not end the sessions. The IdP may retry.",{"type":849,"tag":2745,"props":4958,"children":4959},{},[4960,4967],{"type":849,"tag":2767,"props":4961,"children":4962},{},[4963],{"type":849,"tag":857,"props":4964,"children":4965},{},[4966],{"type":854,"value":4237},{"type":849,"tag":2767,"props":4968,"children":4969},{},[4970,4974],{"type":849,"tag":857,"props":4971,"children":4972},{},[4973],{"type":854,"value":4230},{"type":854,"value":4975}," threw, so the sign-in was refused.",{"type":849,"tag":2745,"props":4977,"children":4978},{},[4979,4986],{"type":849,"tag":2767,"props":4980,"children":4981},{},[4982],{"type":849,"tag":857,"props":4983,"children":4984},{},[4985],{"type":854,"value":2904},{"type":849,"tag":2767,"props":4987,"children":4988},{},[4989,4991,4995,4996,5000],{"type":854,"value":4990},"The discovery document names another issuer. The line shows ",{"type":849,"tag":857,"props":4992,"children":4993},{},[4994],{"type":854,"value":2911},{"type":854,"value":1754},{"type":849,"tag":857,"props":4997,"children":4998},{},[4999],{"type":854,"value":2917},{"type":854,"value":876},{"type":849,"tag":883,"props":5002,"children":5004},{"id":5003},"who-may-use-the-app",[5005],{"type":854,"value":5006},"Who may use the app",{"type":849,"tag":850,"props":5008,"children":5009},{},[5010,5014],{"type":849,"tag":857,"props":5011,"children":5012},{},[5013],{"type":854,"value":4230},{"type":854,"value":5015}," runs at every sign-in through the IdP, after the user exists\nand before the session is created. Throw to refuse the sign-in. The example\nlets in only members of one Keycloak group.",{"type":849,"tag":850,"props":5017,"children":5018},{},[5019,5021,5026,5028,5032],{"type":854,"value":5020},"The example reads the ",{"type":849,"tag":857,"props":5022,"children":5023},{},[5024],{"type":854,"value":5025},"groups",{"type":854,"value":5027}," claim. Keycloak adds it only after you add the\ngroup mapper; see ",{"type":849,"tag":905,"props":5029,"children":5030},{"href":2866},[5031],{"type":854,"value":2869},{"type":854,"value":5033},".\nWithout the mapper, the example refuses every user.",{"type":849,"tag":1109,"props":5035,"children":5036},{"language":2236,"filename":2237,"class":1113},[5037],{"type":849,"tag":857,"props":5038,"children":5039},{"class":2241},[5040,5091,5092,5115,5116,5139,5140,5163,5164,5187,5188,5223,5224,5293,5294,5358,5359,5367,5368,5375,5376],{"type":849,"tag":1120,"props":5041,"children":5042},{"class":1122,"style":1123},[5043,5047,5051,5055,5059,5063,5067,5071,5075,5079,5083,5087],{"type":849,"tag":1120,"props":5044,"children":5045},{"style":2248},[5046],{"type":854,"value":2549},{"type":849,"tag":1120,"props":5048,"children":5049},{"style":1217},[5050],{"type":854,"value":2554},{"type":849,"tag":1120,"props":5052,"children":5053},{"style":2408},[5054],{"type":854,"value":2559},{"type":849,"tag":1120,"props":5056,"children":5057},{"style":1127},[5058],{"type":854,"value":2416},{"type":849,"tag":1120,"props":5060,"children":5061},{"style":2072},[5062],{"type":854,"value":868},{"type":849,"tag":1120,"props":5064,"children":5065},{"style":1127},[5066],{"type":854,"value":2572},{"type":849,"tag":1120,"props":5068,"children":5069},{"style":2379},[5070],{"type":854,"value":2331},{"type":849,"tag":1120,"props":5072,"children":5073},{"style":1127},[5074],{"type":854,"value":2581},{"type":849,"tag":1120,"props":5076,"children":5077},{"style":2170},[5078],{"type":854,"value":2296},{"type":849,"tag":1120,"props":5080,"children":5081},{"style":1127},[5082],{"type":854,"value":876},{"type":849,"tag":1120,"props":5084,"children":5085},{"style":2170},[5086],{"type":854,"value":2594},{"type":849,"tag":1120,"props":5088,"children":5089},{"style":1127},[5090],{"type":854,"value":2599},{"type":854,"value":1132},{"type":849,"tag":1120,"props":5093,"children":5094},{"class":1122,"style":1123},[5095,5099,5103,5107,5111],{"type":849,"tag":1120,"props":5096,"children":5097},{"style":2072},[5098],{"type":854,"value":2608},{"type":849,"tag":1120,"props":5100,"children":5101},{"style":2170},[5102],{"type":854,"value":987},{"type":849,"tag":1120,"props":5104,"children":5105},{"style":1127},[5106],{"type":854,"value":2617},{"type":849,"tag":1120,"props":5108,"children":5109},{"style":1217},[5110],{"type":854,"value":2622},{"type":849,"tag":1120,"props":5112,"children":5113},{"style":1127},[5114],{"type":854,"value":2627},{"type":854,"value":1132},{"type":849,"tag":1120,"props":5117,"children":5118},{"class":1122,"style":1123},[5119,5123,5127,5131,5135],{"type":849,"tag":1120,"props":5120,"children":5121},{"style":2170},[5122],{"type":854,"value":2636},{"type":849,"tag":1120,"props":5124,"children":5125},{"style":2072},[5126],{"type":854,"value":2362},{"type":849,"tag":1120,"props":5128,"children":5129},{"style":1127},[5130],{"type":854,"value":2367},{"type":849,"tag":1120,"props":5132,"children":5133},{"style":1149},[5134],{"type":854,"value":2649},{"type":849,"tag":1120,"props":5136,"children":5137},{"style":1127},[5138],{"type":854,"value":2654},{"type":854,"value":1132},{"type":849,"tag":1120,"props":5141,"children":5142},{"class":1122,"style":1123},[5143,5147,5151,5155,5159],{"type":849,"tag":1120,"props":5144,"children":5145},{"style":2170},[5146],{"type":854,"value":2663},{"type":849,"tag":1120,"props":5148,"children":5149},{"style":2072},[5150],{"type":854,"value":2362},{"type":849,"tag":1120,"props":5152,"children":5153},{"style":1127},[5154],{"type":854,"value":2367},{"type":849,"tag":1120,"props":5156,"children":5157},{"style":1149},[5158],{"type":854,"value":2676},{"type":849,"tag":1120,"props":5160,"children":5161},{"style":1127},[5162],{"type":854,"value":2654},{"type":854,"value":1132},{"type":849,"tag":1120,"props":5165,"children":5166},{"class":1122,"style":1123},[5167,5171,5175,5179,5183],{"type":849,"tag":1120,"props":5168,"children":5169},{"style":2170},[5170],{"type":854,"value":2689},{"type":849,"tag":1120,"props":5172,"children":5173},{"style":2072},[5174],{"type":854,"value":2362},{"type":849,"tag":1120,"props":5176,"children":5177},{"style":1127},[5178],{"type":854,"value":2367},{"type":849,"tag":1120,"props":5180,"children":5181},{"style":1149},[5182],{"type":854,"value":2702},{"type":849,"tag":1120,"props":5184,"children":5185},{"style":1127},[5186],{"type":854,"value":2654},{"type":854,"value":1132},{"type":849,"tag":1120,"props":5189,"children":5190},{"class":1122,"style":1123},[5191,5196,5200,5205,5210,5215,5219],{"type":849,"tag":1120,"props":5192,"children":5193},{"style":2072},[5194],{"type":854,"value":5195},"    onSignIn",{"type":849,"tag":1120,"props":5197,"children":5198},{"style":2170},[5199],{"type":854,"value":987},{"type":849,"tag":1120,"props":5201,"children":5202},{"style":1127},[5203],{"type":854,"value":5204}," ({ ",{"type":849,"tag":1120,"props":5206,"children":5207},{"style":2170},[5208],{"type":854,"value":5209},"claims",{"type":849,"tag":1120,"props":5211,"children":5212},{"style":1127},[5213],{"type":854,"value":5214}," }) ",{"type":849,"tag":1120,"props":5216,"children":5217},{"style":1217},[5218],{"type":854,"value":2622},{"type":849,"tag":1120,"props":5220,"children":5221},{"style":1127},[5222],{"type":854,"value":2396},{"type":854,"value":1132},{"type":849,"tag":1120,"props":5225,"children":5226},{"class":1122,"style":1123},[5227,5232,5237,5241,5246,5250,5255,5259,5263,5267,5271,5276,5280,5284,5288],{"type":849,"tag":1120,"props":5228,"children":5229},{"style":1217},[5230],{"type":854,"value":5231},"      const",{"type":849,"tag":1120,"props":5233,"children":5234},{"style":2408},[5235],{"type":854,"value":5236}," groups",{"type":849,"tag":1120,"props":5238,"children":5239},{"style":1127},[5240],{"type":854,"value":2416},{"type":849,"tag":1120,"props":5242,"children":5243},{"style":2170},[5244],{"type":854,"value":5245},"Array",{"type":849,"tag":1120,"props":5247,"children":5248},{"style":1127},[5249],{"type":854,"value":876},{"type":849,"tag":1120,"props":5251,"children":5252},{"style":2072},[5253],{"type":854,"value":5254},"isArray",{"type":849,"tag":1120,"props":5256,"children":5257},{"style":1127},[5258],{"type":854,"value":2367},{"type":849,"tag":1120,"props":5260,"children":5261},{"style":2170},[5262],{"type":854,"value":5209},{"type":849,"tag":1120,"props":5264,"children":5265},{"style":1127},[5266],{"type":854,"value":876},{"type":849,"tag":1120,"props":5268,"children":5269},{"style":2170},[5270],{"type":854,"value":5025},{"type":849,"tag":1120,"props":5272,"children":5273},{"style":1127},[5274],{"type":854,"value":5275},") ? ",{"type":849,"tag":1120,"props":5277,"children":5278},{"style":2170},[5279],{"type":854,"value":5209},{"type":849,"tag":1120,"props":5281,"children":5282},{"style":1127},[5283],{"type":854,"value":876},{"type":849,"tag":1120,"props":5285,"children":5286},{"style":2170},[5287],{"type":854,"value":5025},{"type":849,"tag":1120,"props":5289,"children":5290},{"style":1127},[5291],{"type":854,"value":5292}," : []",{"type":854,"value":1132},{"type":849,"tag":1120,"props":5295,"children":5296},{"class":1122,"style":1123},[5297,5302,5306,5310,5314,5319,5323,5328,5333,5337,5341,5345,5349,5354],{"type":849,"tag":1120,"props":5298,"children":5299},{"style":2248},[5300],{"type":854,"value":5301},"      if",{"type":849,"tag":1120,"props":5303,"children":5304},{"style":1127},[5305],{"type":854,"value":2458},{"type":849,"tag":1120,"props":5307,"children":5308},{"style":2170},[5309],{"type":854,"value":5025},{"type":849,"tag":1120,"props":5311,"children":5312},{"style":1127},[5313],{"type":854,"value":876},{"type":849,"tag":1120,"props":5315,"children":5316},{"style":2072},[5317],{"type":854,"value":5318},"includes",{"type":849,"tag":1120,"props":5320,"children":5321},{"style":1127},[5322],{"type":854,"value":2367},{"type":849,"tag":1120,"props":5324,"children":5325},{"style":1149},[5326],{"type":854,"value":5327},"'\u002Facme-app\u002Fusers'",{"type":849,"tag":1120,"props":5329,"children":5330},{"style":1127},[5331],{"type":854,"value":5332},")) ",{"type":849,"tag":1120,"props":5334,"children":5335},{"style":2248},[5336],{"type":854,"value":2473},{"type":849,"tag":1120,"props":5338,"children":5339},{"style":1217},[5340],{"type":854,"value":2478},{"type":849,"tag":1120,"props":5342,"children":5343},{"style":2072},[5344],{"type":854,"value":2483},{"type":849,"tag":1120,"props":5346,"children":5347},{"style":1127},[5348],{"type":854,"value":2367},{"type":849,"tag":1120,"props":5350,"children":5351},{"style":1149},[5352],{"type":854,"value":5353},"'Not a member of \u002Facme-app\u002Fusers'",{"type":849,"tag":1120,"props":5355,"children":5356},{"style":1127},[5357],{"type":854,"value":2515},{"type":854,"value":1132},{"type":849,"tag":1120,"props":5360,"children":5361},{"class":1122,"style":1123},[5362],{"type":849,"tag":1120,"props":5363,"children":5364},{"style":1127},[5365],{"type":854,"value":5366},"    },",{"type":854,"value":1132},{"type":849,"tag":1120,"props":5369,"children":5370},{"class":1122,"style":1123},[5371],{"type":849,"tag":1120,"props":5372,"children":5373},{"style":1127},[5374],{"type":854,"value":2715},{"type":854,"value":1132},{"type":849,"tag":1120,"props":5377,"children":5378},{"class":1122,"style":1123},[5379],{"type":849,"tag":1120,"props":5380,"children":5381},{"style":1127},[5382],{"type":854,"value":2724},{"type":849,"tag":850,"props":5384,"children":5385},{},[5386,5388,5392,5394,5398],{"type":854,"value":5387},"A refused user gets no session. The user row stays, and the next sign-in runs\nthe check again. To limit new users only, use ",{"type":849,"tag":857,"props":5389,"children":5390},{},[5391],{"type":854,"value":4292},{"type":854,"value":5393},"; see\n",{"type":849,"tag":905,"props":5395,"children":5396},{"href":216},[5397],{"type":854,"value":211},{"type":854,"value":876},{"type":849,"tag":850,"props":5400,"children":5401},{},[5402],{"type":854,"value":5403},"You can also gate the client in Keycloak, so the IdP refuses the sign-in\nbefore it reaches the app:",{"type":849,"tag":989,"props":5405,"children":5406},{},[5407,5424,5435,5453,5463],{"type":849,"tag":899,"props":5408,"children":5409},{},[5410,5411,5415,5417,5422],{"type":854,"value":980},{"type":849,"tag":982,"props":5412,"children":5413},{},[5414],{"type":854,"value":201},{"type":854,"value":5416},", duplicate the ",{"type":849,"tag":982,"props":5418,"children":5419},{},[5420],{"type":854,"value":5421},"browser",{"type":854,"value":5423}," flow.",{"type":849,"tag":899,"props":5425,"children":5426},{},[5427,5429,5434],{"type":854,"value":5428},"In the copy, add a sub-flow with the requirement ",{"type":849,"tag":982,"props":5430,"children":5431},{},[5432],{"type":854,"value":5433},"Conditional",{"type":854,"value":876},{"type":849,"tag":899,"props":5436,"children":5437},{},[5438,5440,5445,5447,5452],{"type":854,"value":5439},"In the sub-flow, add ",{"type":849,"tag":982,"props":5441,"children":5442},{},[5443],{"type":854,"value":5444},"Condition - User Role",{"type":854,"value":5446},". Select the app role and turn\non ",{"type":849,"tag":982,"props":5448,"children":5449},{},[5450],{"type":854,"value":5451},"Negate output",{"type":854,"value":876},{"type":849,"tag":899,"props":5454,"children":5455},{},[5456,5457,5462],{"type":854,"value":5439},{"type":849,"tag":982,"props":5458,"children":5459},{},[5460],{"type":854,"value":5461},"Deny Access",{"type":854,"value":876},{"type":849,"tag":899,"props":5464,"children":5465},{},[5466,5468,5473,5474,5479,5481,5486],{"type":854,"value":5467},"In the app client, open ",{"type":849,"tag":982,"props":5469,"children":5470},{},[5471],{"type":854,"value":5472},"Advanced",{"type":854,"value":1086},{"type":849,"tag":982,"props":5475,"children":5476},{},[5477],{"type":854,"value":5478},"Authentication flow overrides",{"type":854,"value":5480},", and\nset ",{"type":849,"tag":982,"props":5482,"children":5483},{},[5484],{"type":854,"value":5485},"Browser Flow",{"type":854,"value":5487}," to the copy.",{"type":849,"tag":850,"props":5489,"children":5490},{},[5491,5493,5498,5500,5505,5506,5511],{"type":854,"value":5492},"Both checks run at sign-in. Removing a group or role takes effect at the\nuser's next IdP sign-in. To end the user's app sessions now, sign the user out\nin Keycloak: ",{"type":849,"tag":982,"props":5494,"children":5495},{},[5496],{"type":854,"value":5497},"Users",{"type":854,"value":5499},", the user, ",{"type":849,"tag":982,"props":5501,"children":5502},{},[5503],{"type":854,"value":5504},"Sessions",{"type":854,"value":1086},{"type":849,"tag":982,"props":5507,"children":5508},{},[5509],{"type":854,"value":5510},"Sign out",{"type":854,"value":5512},". Keycloak then\nsends back-channel logout. If you disable the user in Keycloak, the app\nsessions end at the next refresh (see the liveness check above).",{"type":849,"tag":883,"props":5514,"children":5516},{"id":5515},"roles-and-groups-from-the-idp",[5517],{"type":854,"value":2869},{"type":849,"tag":850,"props":5519,"children":5520},{},[5521,5523,5527],{"type":854,"value":5522},"Copy roles or groups from the ID token into your own table in ",{"type":849,"tag":857,"props":5524,"children":5525},{},[5526],{"type":854,"value":4230},{"type":854,"value":5528},".\nThen your Convex functions check the table, in the same transaction as the\nread or write they protect.",{"type":849,"tag":850,"props":5530,"children":5531},{},[5532],{"type":854,"value":5533},"First put the groups into the ID token. In Keycloak:",{"type":849,"tag":989,"props":5535,"children":5536},{},[5537,5552,5588],{"type":849,"tag":899,"props":5538,"children":5539},{},[5540,5541,5545,5547,5551],{"type":854,"value":980},{"type":849,"tag":982,"props":5542,"children":5543},{},[5544],{"type":854,"value":1986},{"type":854,"value":5546},", create a client scope ",{"type":849,"tag":857,"props":5548,"children":5549},{},[5550],{"type":854,"value":5025},{"type":854,"value":876},{"type":849,"tag":899,"props":5553,"children":5554},{},[5555,5557,5562,5563,5568,5570,5574,5576,5581,5582,5587],{"type":854,"value":5556},"Add a mapper ",{"type":849,"tag":982,"props":5558,"children":5559},{},[5560],{"type":854,"value":5561},"Group Membership",{"type":854,"value":2906},{"type":849,"tag":982,"props":5564,"children":5565},{},[5566],{"type":854,"value":5567},"Token Claim Name",{"type":854,"value":5569}," ",{"type":849,"tag":857,"props":5571,"children":5572},{},[5573],{"type":854,"value":5025},{"type":854,"value":5575},". Turn\non ",{"type":849,"tag":982,"props":5577,"children":5578},{},[5579],{"type":854,"value":5580},"Full group path",{"type":854,"value":1754},{"type":849,"tag":982,"props":5583,"children":5584},{},[5585],{"type":854,"value":5586},"Add to ID token",{"type":854,"value":876},{"type":849,"tag":899,"props":5589,"children":5590},{},[5591,5592,5596,5598,5602,5604,5608],{"type":854,"value":2012},{"type":849,"tag":982,"props":5593,"children":5594},{},[5595],{"type":854,"value":1986},{"type":854,"value":5597},", add ",{"type":849,"tag":857,"props":5599,"children":5600},{},[5601],{"type":854,"value":5025},{"type":854,"value":5603}," as ",{"type":849,"tag":982,"props":5605,"children":5606},{},[5607],{"type":854,"value":2023},{"type":854,"value":876},{"type":849,"tag":850,"props":5610,"children":5611},{},[5612],{"type":854,"value":5613},"Store the role per user:",{"type":849,"tag":1109,"props":5615,"children":5617},{"language":2236,"filename":5616,"class":1113},"convex\u002Fschema.ts",[5618],{"type":849,"tag":857,"props":5619,"children":5620},{"class":2241},[5621,5659,5660,5689,5690,5693,5694,5715,5716,5733,5734,5760,5761,5864,5865,5902,5903],{"type":849,"tag":1120,"props":5622,"children":5623},{"class":1122,"style":1123},[5624,5628,5632,5637,5641,5646,5650,5654],{"type":849,"tag":1120,"props":5625,"children":5626},{"style":2248},[5627],{"type":854,"value":2251},{"type":849,"tag":1120,"props":5629,"children":5630},{"style":1127},[5631],{"type":854,"value":2256},{"type":849,"tag":1120,"props":5633,"children":5634},{"style":2170},[5635],{"type":854,"value":5636},"defineSchema",{"type":849,"tag":1120,"props":5638,"children":5639},{"style":1127},[5640],{"type":854,"value":1086},{"type":849,"tag":1120,"props":5642,"children":5643},{"style":2170},[5644],{"type":854,"value":5645},"defineTable",{"type":849,"tag":1120,"props":5647,"children":5648},{"style":1127},[5649],{"type":854,"value":2265},{"type":849,"tag":1120,"props":5651,"children":5652},{"style":2248},[5653],{"type":854,"value":2270},{"type":849,"tag":1120,"props":5655,"children":5656},{"style":1149},[5657],{"type":854,"value":5658}," 'convex\u002Fserver'",{"type":854,"value":1132},{"type":849,"tag":1120,"props":5661,"children":5662},{"class":1122,"style":1123},[5663,5667,5671,5676,5680,5684],{"type":849,"tag":1120,"props":5664,"children":5665},{"style":2248},[5666],{"type":854,"value":2251},{"type":849,"tag":1120,"props":5668,"children":5669},{"style":1127},[5670],{"type":854,"value":2256},{"type":849,"tag":1120,"props":5672,"children":5673},{"style":2170},[5674],{"type":854,"value":5675},"v",{"type":849,"tag":1120,"props":5677,"children":5678},{"style":1127},[5679],{"type":854,"value":2265},{"type":849,"tag":1120,"props":5681,"children":5682},{"style":2248},[5683],{"type":854,"value":2270},{"type":849,"tag":1120,"props":5685,"children":5686},{"style":1149},[5687],{"type":854,"value":5688}," 'convex\u002Fvalues'",{"type":854,"value":1132},{"type":849,"tag":1120,"props":5691,"children":5692},{"class":1122,"style":1123},[],{"type":854,"value":1132},{"type":849,"tag":1120,"props":5695,"children":5696},{"class":1122,"style":1123},[5697,5701,5706,5711],{"type":849,"tag":1120,"props":5698,"children":5699},{"style":2248},[5700],{"type":854,"value":2549},{"type":849,"tag":1120,"props":5702,"children":5703},{"style":2248},[5704],{"type":854,"value":5705}," default",{"type":849,"tag":1120,"props":5707,"children":5708},{"style":2072},[5709],{"type":854,"value":5710}," defineSchema",{"type":849,"tag":1120,"props":5712,"children":5713},{"style":1127},[5714],{"type":854,"value":3536},{"type":854,"value":1132},{"type":849,"tag":1120,"props":5717,"children":5718},{"class":1122,"style":1123},[5719,5724,5729],{"type":849,"tag":1120,"props":5720,"children":5721},{"style":2170},[5722],{"type":854,"value":5723},"  members:",{"type":849,"tag":1120,"props":5725,"children":5726},{"style":2072},[5727],{"type":854,"value":5728}," defineTable",{"type":849,"tag":1120,"props":5730,"children":5731},{"style":1127},[5732],{"type":854,"value":3536},{"type":854,"value":1132},{"type":849,"tag":1120,"props":5735,"children":5736},{"class":1122,"style":1123},[5737,5742,5747,5751,5755],{"type":849,"tag":1120,"props":5738,"children":5739},{"style":2170},[5740],{"type":854,"value":5741},"    userId:",{"type":849,"tag":1120,"props":5743,"children":5744},{"style":2170},[5745],{"type":854,"value":5746}," v",{"type":849,"tag":1120,"props":5748,"children":5749},{"style":1127},[5750],{"type":854,"value":876},{"type":849,"tag":1120,"props":5752,"children":5753},{"style":2072},[5754],{"type":854,"value":2382},{"type":849,"tag":1120,"props":5756,"children":5757},{"style":1127},[5758],{"type":854,"value":5759},"(),",{"type":854,"value":1132},{"type":849,"tag":1120,"props":5762,"children":5763},{"class":1122,"style":1123},[5764,5769,5773,5777,5782,5786,5790,5794,5799,5803,5808,5813,5817,5821,5825,5829,5834,5838,5842,5846,5850,5854,5859],{"type":849,"tag":1120,"props":5765,"children":5766},{"style":2170},[5767],{"type":854,"value":5768},"    role:",{"type":849,"tag":1120,"props":5770,"children":5771},{"style":2170},[5772],{"type":854,"value":5746},{"type":849,"tag":1120,"props":5774,"children":5775},{"style":1127},[5776],{"type":854,"value":876},{"type":849,"tag":1120,"props":5778,"children":5779},{"style":2072},[5780],{"type":854,"value":5781},"union",{"type":849,"tag":1120,"props":5783,"children":5784},{"style":1127},[5785],{"type":854,"value":2367},{"type":849,"tag":1120,"props":5787,"children":5788},{"style":2170},[5789],{"type":854,"value":5675},{"type":849,"tag":1120,"props":5791,"children":5792},{"style":1127},[5793],{"type":854,"value":876},{"type":849,"tag":1120,"props":5795,"children":5796},{"style":2072},[5797],{"type":854,"value":5798},"literal",{"type":849,"tag":1120,"props":5800,"children":5801},{"style":1127},[5802],{"type":854,"value":2367},{"type":849,"tag":1120,"props":5804,"children":5805},{"style":1149},[5806],{"type":854,"value":5807},"'admin'",{"type":849,"tag":1120,"props":5809,"children":5810},{"style":1127},[5811],{"type":854,"value":5812},"), ",{"type":849,"tag":1120,"props":5814,"children":5815},{"style":2170},[5816],{"type":854,"value":5675},{"type":849,"tag":1120,"props":5818,"children":5819},{"style":1127},[5820],{"type":854,"value":876},{"type":849,"tag":1120,"props":5822,"children":5823},{"style":2072},[5824],{"type":854,"value":5798},{"type":849,"tag":1120,"props":5826,"children":5827},{"style":1127},[5828],{"type":854,"value":2367},{"type":849,"tag":1120,"props":5830,"children":5831},{"style":1149},[5832],{"type":854,"value":5833},"'lead'",{"type":849,"tag":1120,"props":5835,"children":5836},{"style":1127},[5837],{"type":854,"value":5812},{"type":849,"tag":1120,"props":5839,"children":5840},{"style":2170},[5841],{"type":854,"value":5675},{"type":849,"tag":1120,"props":5843,"children":5844},{"style":1127},[5845],{"type":854,"value":876},{"type":849,"tag":1120,"props":5847,"children":5848},{"style":2072},[5849],{"type":854,"value":5798},{"type":849,"tag":1120,"props":5851,"children":5852},{"style":1127},[5853],{"type":854,"value":2367},{"type":849,"tag":1120,"props":5855,"children":5856},{"style":1149},[5857],{"type":854,"value":5858},"'member'",{"type":849,"tag":1120,"props":5860,"children":5861},{"style":1127},[5862],{"type":854,"value":5863},")),",{"type":854,"value":1132},{"type":849,"tag":1120,"props":5866,"children":5867},{"class":1122,"style":1123},[5868,5873,5878,5882,5887,5892,5897],{"type":849,"tag":1120,"props":5869,"children":5870},{"style":1127},[5871],{"type":854,"value":5872},"  }).",{"type":849,"tag":1120,"props":5874,"children":5875},{"style":2072},[5876],{"type":854,"value":5877},"index",{"type":849,"tag":1120,"props":5879,"children":5880},{"style":1127},[5881],{"type":854,"value":2367},{"type":849,"tag":1120,"props":5883,"children":5884},{"style":1149},[5885],{"type":854,"value":5886},"'by_userId'",{"type":849,"tag":1120,"props":5888,"children":5889},{"style":1127},[5890],{"type":854,"value":5891},", [",{"type":849,"tag":1120,"props":5893,"children":5894},{"style":1149},[5895],{"type":854,"value":5896},"'userId'",{"type":849,"tag":1120,"props":5898,"children":5899},{"style":1127},[5900],{"type":854,"value":5901},"]),",{"type":854,"value":1132},{"type":849,"tag":1120,"props":5904,"children":5905},{"class":1122,"style":1123},[5906],{"type":849,"tag":1120,"props":5907,"children":5908},{"style":1127},[5909],{"type":854,"value":2724},{"type":849,"tag":1109,"props":5911,"children":5913},{"language":2236,"filename":5912,"class":1113},"convex\u002Fmembers.ts",[5914],{"type":849,"tag":857,"props":5915,"children":5916},{"class":2241},[5917,5953,5954,5957,5958,5995,5996,6025,6026,6029,6030,6038,6039,6047,6048,6076,6077,6150,6151,6206,6207,6242,6243,6268,6269,6342,6343,6359,6360,6397,6398,6464,6465,6478,6479,6487,6488,6528,6529,6540,6541,6573,6574,6585,6586,6597,6598,6671,6672,6733,6734,6746,6747,6754,6755,6762,6763,6766,6767,6795,6796,6808,6809,6844,6845,6890,6891,6922,6923,6946,6947,7024,7025,7040,7041,7108,7109,7182,7183,7190,7191],{"type":849,"tag":1120,"props":5918,"children":5919},{"class":1122,"style":1123},[5920,5924,5928,5933,5937,5941,5945,5949],{"type":849,"tag":1120,"props":5921,"children":5922},{"style":2248},[5923],{"type":854,"value":2251},{"type":849,"tag":1120,"props":5925,"children":5926},{"style":1127},[5927],{"type":854,"value":2256},{"type":849,"tag":1120,"props":5929,"children":5930},{"style":2170},[5931],{"type":854,"value":5932},"ConvexError",{"type":849,"tag":1120,"props":5934,"children":5935},{"style":1127},[5936],{"type":854,"value":1086},{"type":849,"tag":1120,"props":5938,"children":5939},{"style":2170},[5940],{"type":854,"value":5675},{"type":849,"tag":1120,"props":5942,"children":5943},{"style":1127},[5944],{"type":854,"value":2265},{"type":849,"tag":1120,"props":5946,"children":5947},{"style":2248},[5948],{"type":854,"value":2270},{"type":849,"tag":1120,"props":5950,"children":5951},{"style":1149},[5952],{"type":854,"value":5688},{"type":854,"value":1132},{"type":849,"tag":1120,"props":5955,"children":5956},{"class":1122,"style":1123},[],{"type":854,"value":1132},{"type":849,"tag":1120,"props":5959,"children":5960},{"class":1122,"style":1123},[5961,5965,5969,5974,5978,5982,5986,5990],{"type":849,"tag":1120,"props":5962,"children":5963},{"style":2248},[5964],{"type":854,"value":2251},{"type":849,"tag":1120,"props":5966,"children":5967},{"style":1127},[5968],{"type":854,"value":2256},{"type":849,"tag":1120,"props":5970,"children":5971},{"style":2170},[5972],{"type":854,"value":5973},"internalMutation",{"type":849,"tag":1120,"props":5975,"children":5976},{"style":1127},[5977],{"type":854,"value":1086},{"type":849,"tag":1120,"props":5979,"children":5980},{"style":2170},[5981],{"type":854,"value":3305},{"type":849,"tag":1120,"props":5983,"children":5984},{"style":1127},[5985],{"type":854,"value":2265},{"type":849,"tag":1120,"props":5987,"children":5988},{"style":2248},[5989],{"type":854,"value":2270},{"type":849,"tag":1120,"props":5991,"children":5992},{"style":1149},[5993],{"type":854,"value":5994}," '.\u002F_generated\u002Fserver'",{"type":854,"value":1132},{"type":849,"tag":1120,"props":5997,"children":5998},{"class":1122,"style":1123},[5999,6003,6007,6012,6016,6020],{"type":849,"tag":1120,"props":6000,"children":6001},{"style":2248},[6002],{"type":854,"value":2251},{"type":849,"tag":1120,"props":6004,"children":6005},{"style":1127},[6006],{"type":854,"value":2256},{"type":849,"tag":1120,"props":6008,"children":6009},{"style":2170},[6010],{"type":854,"value":6011},"auth",{"type":849,"tag":1120,"props":6013,"children":6014},{"style":1127},[6015],{"type":854,"value":2265},{"type":849,"tag":1120,"props":6017,"children":6018},{"style":2248},[6019],{"type":854,"value":2270},{"type":849,"tag":1120,"props":6021,"children":6022},{"style":1149},[6023],{"type":854,"value":6024}," '.\u002Fauth'",{"type":854,"value":1132},{"type":849,"tag":1120,"props":6027,"children":6028},{"class":1122,"style":1123},[],{"type":854,"value":1132},{"type":849,"tag":1120,"props":6031,"children":6032},{"class":1122,"style":1123},[6033],{"type":849,"tag":1120,"props":6034,"children":6035},{"style":4453},[6036],{"type":854,"value":6037},"\u002F\u002F Called only from oidc.onSignIn. Internal, so no client can set a role.",{"type":854,"value":1132},{"type":849,"tag":1120,"props":6040,"children":6041},{"class":1122,"style":1123},[6042],{"type":849,"tag":1120,"props":6043,"children":6044},{"style":4453},[6045],{"type":854,"value":6046},"\u002F\u002F Returns false, and removes the role, when the user may not use the app.",{"type":854,"value":1132},{"type":849,"tag":1120,"props":6049,"children":6050},{"class":1122,"style":1123},[6051,6055,6059,6064,6068,6072],{"type":849,"tag":1120,"props":6052,"children":6053},{"style":2248},[6054],{"type":854,"value":2549},{"type":849,"tag":1120,"props":6056,"children":6057},{"style":1217},[6058],{"type":854,"value":2554},{"type":849,"tag":1120,"props":6060,"children":6061},{"style":2408},[6062],{"type":854,"value":6063}," syncGroups",{"type":849,"tag":1120,"props":6065,"children":6066},{"style":1127},[6067],{"type":854,"value":2416},{"type":849,"tag":1120,"props":6069,"children":6070},{"style":2072},[6071],{"type":854,"value":5973},{"type":849,"tag":1120,"props":6073,"children":6074},{"style":1127},[6075],{"type":854,"value":3536},{"type":854,"value":1132},{"type":849,"tag":1120,"props":6078,"children":6079},{"class":1122,"style":1123},[6080,6085,6089,6094,6098,6102,6106,6111,6116,6120,6124,6129,6133,6137,6141,6145],{"type":849,"tag":1120,"props":6081,"children":6082},{"style":2170},[6083],{"type":854,"value":6084},"  args:",{"type":849,"tag":1120,"props":6086,"children":6087},{"style":1127},[6088],{"type":854,"value":2256},{"type":849,"tag":1120,"props":6090,"children":6091},{"style":2170},[6092],{"type":854,"value":6093},"userId:",{"type":849,"tag":1120,"props":6095,"children":6096},{"style":2170},[6097],{"type":854,"value":5746},{"type":849,"tag":1120,"props":6099,"children":6100},{"style":1127},[6101],{"type":854,"value":876},{"type":849,"tag":1120,"props":6103,"children":6104},{"style":2072},[6105],{"type":854,"value":2382},{"type":849,"tag":1120,"props":6107,"children":6108},{"style":1127},[6109],{"type":854,"value":6110},"(), ",{"type":849,"tag":1120,"props":6112,"children":6113},{"style":2170},[6114],{"type":854,"value":6115},"groups:",{"type":849,"tag":1120,"props":6117,"children":6118},{"style":2170},[6119],{"type":854,"value":5746},{"type":849,"tag":1120,"props":6121,"children":6122},{"style":1127},[6123],{"type":854,"value":876},{"type":849,"tag":1120,"props":6125,"children":6126},{"style":2072},[6127],{"type":854,"value":6128},"array",{"type":849,"tag":1120,"props":6130,"children":6131},{"style":1127},[6132],{"type":854,"value":2367},{"type":849,"tag":1120,"props":6134,"children":6135},{"style":2170},[6136],{"type":854,"value":5675},{"type":849,"tag":1120,"props":6138,"children":6139},{"style":1127},[6140],{"type":854,"value":876},{"type":849,"tag":1120,"props":6142,"children":6143},{"style":2072},[6144],{"type":854,"value":2382},{"type":849,"tag":1120,"props":6146,"children":6147},{"style":1127},[6148],{"type":854,"value":6149},"()) },",{"type":854,"value":1132},{"type":849,"tag":1120,"props":6152,"children":6153},{"class":1122,"style":1123},[6154,6159,6163,6168,6172,6177,6182,6186,6190,6194,6198,6202],{"type":849,"tag":1120,"props":6155,"children":6156},{"style":2072},[6157],{"type":854,"value":6158},"  handler",{"type":849,"tag":1120,"props":6160,"children":6161},{"style":2170},[6162],{"type":854,"value":987},{"type":849,"tag":1120,"props":6164,"children":6165},{"style":1217},[6166],{"type":854,"value":6167}," async",{"type":849,"tag":1120,"props":6169,"children":6170},{"style":1127},[6171],{"type":854,"value":3629},{"type":849,"tag":1120,"props":6173,"children":6174},{"style":2170},[6175],{"type":854,"value":6176},"ctx",{"type":849,"tag":1120,"props":6178,"children":6179},{"style":1127},[6180],{"type":854,"value":6181},", { ",{"type":849,"tag":1120,"props":6183,"children":6184},{"style":2170},[6185],{"type":854,"value":4767},{"type":849,"tag":1120,"props":6187,"children":6188},{"style":1127},[6189],{"type":854,"value":1086},{"type":849,"tag":1120,"props":6191,"children":6192},{"style":2170},[6193],{"type":854,"value":5025},{"type":849,"tag":1120,"props":6195,"children":6196},{"style":1127},[6197],{"type":854,"value":5214},{"type":849,"tag":1120,"props":6199,"children":6200},{"style":1217},[6201],{"type":854,"value":2622},{"type":849,"tag":1120,"props":6203,"children":6204},{"style":1127},[6205],{"type":854,"value":2396},{"type":854,"value":1132},{"type":849,"tag":1120,"props":6208,"children":6209},{"class":1122,"style":1123},[6210,6215,6220,6224,6228,6233,6237],{"type":849,"tag":1120,"props":6211,"children":6212},{"style":1217},[6213],{"type":854,"value":6214},"    const",{"type":849,"tag":1120,"props":6216,"children":6217},{"style":2408},[6218],{"type":854,"value":6219}," member",{"type":849,"tag":1120,"props":6221,"children":6222},{"style":1127},[6223],{"type":854,"value":2416},{"type":849,"tag":1120,"props":6225,"children":6226},{"style":2248},[6227],{"type":854,"value":3508},{"type":849,"tag":1120,"props":6229,"children":6230},{"style":2170},[6231],{"type":854,"value":6232}," ctx",{"type":849,"tag":1120,"props":6234,"children":6235},{"style":1127},[6236],{"type":854,"value":876},{"type":849,"tag":1120,"props":6238,"children":6239},{"style":2170},[6240],{"type":854,"value":6241},"db",{"type":854,"value":1132},{"type":849,"tag":1120,"props":6244,"children":6245},{"class":1122,"style":1123},[6246,6251,6255,6259,6264],{"type":849,"tag":1120,"props":6247,"children":6248},{"style":1127},[6249],{"type":854,"value":6250},"      .",{"type":849,"tag":1120,"props":6252,"children":6253},{"style":2072},[6254],{"type":854,"value":3305},{"type":849,"tag":1120,"props":6256,"children":6257},{"style":1127},[6258],{"type":854,"value":2367},{"type":849,"tag":1120,"props":6260,"children":6261},{"style":1149},[6262],{"type":854,"value":6263},"'members'",{"type":849,"tag":1120,"props":6265,"children":6266},{"style":1127},[6267],{"type":854,"value":2515},{"type":854,"value":1132},{"type":849,"tag":1120,"props":6270,"children":6271},{"class":1122,"style":1123},[6272,6276,6281,6285,6289,6294,6299,6303,6307,6312,6316,6321,6325,6329,6333,6337],{"type":849,"tag":1120,"props":6273,"children":6274},{"style":1127},[6275],{"type":854,"value":6250},{"type":849,"tag":1120,"props":6277,"children":6278},{"style":2072},[6279],{"type":854,"value":6280},"withIndex",{"type":849,"tag":1120,"props":6282,"children":6283},{"style":1127},[6284],{"type":854,"value":2367},{"type":849,"tag":1120,"props":6286,"children":6287},{"style":1149},[6288],{"type":854,"value":5886},{"type":849,"tag":1120,"props":6290,"children":6291},{"style":1127},[6292],{"type":854,"value":6293},", (",{"type":849,"tag":1120,"props":6295,"children":6296},{"style":2170},[6297],{"type":854,"value":6298},"q",{"type":849,"tag":1120,"props":6300,"children":6301},{"style":1127},[6302],{"type":854,"value":2468},{"type":849,"tag":1120,"props":6304,"children":6305},{"style":1217},[6306],{"type":854,"value":2622},{"type":849,"tag":1120,"props":6308,"children":6309},{"style":2170},[6310],{"type":854,"value":6311}," q",{"type":849,"tag":1120,"props":6313,"children":6314},{"style":1127},[6315],{"type":854,"value":876},{"type":849,"tag":1120,"props":6317,"children":6318},{"style":2072},[6319],{"type":854,"value":6320},"eq",{"type":849,"tag":1120,"props":6322,"children":6323},{"style":1127},[6324],{"type":854,"value":2367},{"type":849,"tag":1120,"props":6326,"children":6327},{"style":1149},[6328],{"type":854,"value":5896},{"type":849,"tag":1120,"props":6330,"children":6331},{"style":1127},[6332],{"type":854,"value":1086},{"type":849,"tag":1120,"props":6334,"children":6335},{"style":2170},[6336],{"type":854,"value":4767},{"type":849,"tag":1120,"props":6338,"children":6339},{"style":1127},[6340],{"type":854,"value":6341},"))",{"type":854,"value":1132},{"type":849,"tag":1120,"props":6344,"children":6345},{"class":1122,"style":1123},[6346,6350,6355],{"type":849,"tag":1120,"props":6347,"children":6348},{"style":1127},[6349],{"type":854,"value":6250},{"type":849,"tag":1120,"props":6351,"children":6352},{"style":2072},[6353],{"type":854,"value":6354},"unique",{"type":849,"tag":1120,"props":6356,"children":6357},{"style":1127},[6358],{"type":854,"value":3171},{"type":854,"value":1132},{"type":849,"tag":1120,"props":6361,"children":6362},{"class":1122,"style":1123},[6363,6368,6372,6376,6380,6384,6388,6392],{"type":849,"tag":1120,"props":6364,"children":6365},{"style":2248},[6366],{"type":854,"value":6367},"    if",{"type":849,"tag":1120,"props":6369,"children":6370},{"style":1127},[6371],{"type":854,"value":2458},{"type":849,"tag":1120,"props":6373,"children":6374},{"style":2170},[6375],{"type":854,"value":5025},{"type":849,"tag":1120,"props":6377,"children":6378},{"style":1127},[6379],{"type":854,"value":876},{"type":849,"tag":1120,"props":6381,"children":6382},{"style":2072},[6383],{"type":854,"value":5318},{"type":849,"tag":1120,"props":6385,"children":6386},{"style":1127},[6387],{"type":854,"value":2367},{"type":849,"tag":1120,"props":6389,"children":6390},{"style":1149},[6391],{"type":854,"value":5327},{"type":849,"tag":1120,"props":6393,"children":6394},{"style":1127},[6395],{"type":854,"value":6396},")) {",{"type":854,"value":1132},{"type":849,"tag":1120,"props":6399,"children":6400},{"class":1122,"style":1123},[6401,6405,6409,6414,6418,6422,6426,6430,6434,6438,6443,6447,6451,6455,6460],{"type":849,"tag":1120,"props":6402,"children":6403},{"style":2248},[6404],{"type":854,"value":5301},{"type":849,"tag":1120,"props":6406,"children":6407},{"style":1127},[6408],{"type":854,"value":3629},{"type":849,"tag":1120,"props":6410,"children":6411},{"style":2170},[6412],{"type":854,"value":6413},"member",{"type":849,"tag":1120,"props":6415,"children":6416},{"style":1127},[6417],{"type":854,"value":2468},{"type":849,"tag":1120,"props":6419,"children":6420},{"style":2248},[6421],{"type":854,"value":3508},{"type":849,"tag":1120,"props":6423,"children":6424},{"style":2170},[6425],{"type":854,"value":6232},{"type":849,"tag":1120,"props":6427,"children":6428},{"style":1127},[6429],{"type":854,"value":876},{"type":849,"tag":1120,"props":6431,"children":6432},{"style":2170},[6433],{"type":854,"value":6241},{"type":849,"tag":1120,"props":6435,"children":6436},{"style":1127},[6437],{"type":854,"value":876},{"type":849,"tag":1120,"props":6439,"children":6440},{"style":2072},[6441],{"type":854,"value":6442},"delete",{"type":849,"tag":1120,"props":6444,"children":6445},{"style":1127},[6446],{"type":854,"value":2367},{"type":849,"tag":1120,"props":6448,"children":6449},{"style":2170},[6450],{"type":854,"value":6413},{"type":849,"tag":1120,"props":6452,"children":6453},{"style":1127},[6454],{"type":854,"value":876},{"type":849,"tag":1120,"props":6456,"children":6457},{"style":2170},[6458],{"type":854,"value":6459},"_id",{"type":849,"tag":1120,"props":6461,"children":6462},{"style":1127},[6463],{"type":854,"value":2515},{"type":854,"value":1132},{"type":849,"tag":1120,"props":6466,"children":6467},{"class":1122,"style":1123},[6468,6473],{"type":849,"tag":1120,"props":6469,"children":6470},{"style":2248},[6471],{"type":854,"value":6472},"      return",{"type":849,"tag":1120,"props":6474,"children":6475},{"style":1217},[6476],{"type":854,"value":6477}," false",{"type":854,"value":1132},{"type":849,"tag":1120,"props":6480,"children":6481},{"class":1122,"style":1123},[6482],{"type":849,"tag":1120,"props":6483,"children":6484},{"style":1127},[6485],{"type":854,"value":6486},"    }",{"type":854,"value":1132},{"type":849,"tag":1120,"props":6489,"children":6490},{"class":1122,"style":1123},[6491,6495,6499,6503,6507,6511,6515,6519,6524],{"type":849,"tag":1120,"props":6492,"children":6493},{"style":1217},[6494],{"type":854,"value":6214},{"type":849,"tag":1120,"props":6496,"children":6497},{"style":2408},[6498],{"type":854,"value":3913},{"type":849,"tag":1120,"props":6500,"children":6501},{"style":1127},[6502],{"type":854,"value":2416},{"type":849,"tag":1120,"props":6504,"children":6505},{"style":2170},[6506],{"type":854,"value":5025},{"type":849,"tag":1120,"props":6508,"children":6509},{"style":1127},[6510],{"type":854,"value":876},{"type":849,"tag":1120,"props":6512,"children":6513},{"style":2072},[6514],{"type":854,"value":5318},{"type":849,"tag":1120,"props":6516,"children":6517},{"style":1127},[6518],{"type":854,"value":2367},{"type":849,"tag":1120,"props":6520,"children":6521},{"style":1149},[6522],{"type":854,"value":6523},"'\u002Facme-app\u002Fadmins'",{"type":849,"tag":1120,"props":6525,"children":6526},{"style":1127},[6527],{"type":854,"value":2515},{"type":854,"value":1132},{"type":849,"tag":1120,"props":6530,"children":6531},{"class":1122,"style":1123},[6532,6536],{"type":849,"tag":1120,"props":6533,"children":6534},{"style":1127},[6535],{"type":854,"value":3377},{"type":849,"tag":1120,"props":6537,"children":6538},{"style":1149},[6539],{"type":854,"value":5807},{"type":854,"value":1132},{"type":849,"tag":1120,"props":6542,"children":6543},{"class":1122,"style":1123},[6544,6548,6552,6556,6560,6564,6569],{"type":849,"tag":1120,"props":6545,"children":6546},{"style":1127},[6547],{"type":854,"value":3391},{"type":849,"tag":1120,"props":6549,"children":6550},{"style":2170},[6551],{"type":854,"value":5025},{"type":849,"tag":1120,"props":6553,"children":6554},{"style":1127},[6555],{"type":854,"value":876},{"type":849,"tag":1120,"props":6557,"children":6558},{"style":2072},[6559],{"type":854,"value":5318},{"type":849,"tag":1120,"props":6561,"children":6562},{"style":1127},[6563],{"type":854,"value":2367},{"type":849,"tag":1120,"props":6565,"children":6566},{"style":1149},[6567],{"type":854,"value":6568},"'\u002Facme-app\u002Fleads'",{"type":849,"tag":1120,"props":6570,"children":6571},{"style":1127},[6572],{"type":854,"value":2515},{"type":854,"value":1132},{"type":849,"tag":1120,"props":6575,"children":6576},{"class":1122,"style":1123},[6577,6581],{"type":849,"tag":1120,"props":6578,"children":6579},{"style":1127},[6580],{"type":854,"value":3737},{"type":849,"tag":1120,"props":6582,"children":6583},{"style":1149},[6584],{"type":854,"value":5833},{"type":854,"value":1132},{"type":849,"tag":1120,"props":6587,"children":6588},{"class":1122,"style":1123},[6589,6593],{"type":849,"tag":1120,"props":6590,"children":6591},{"style":1127},[6592],{"type":854,"value":3751},{"type":849,"tag":1120,"props":6594,"children":6595},{"style":1149},[6596],{"type":854,"value":5858},{"type":854,"value":1132},{"type":849,"tag":1120,"props":6599,"children":6600},{"class":1122,"style":1123},[6601,6605,6609,6613,6617,6621,6625,6629,6633,6637,6642,6646,6650,6654,6658,6662,6667],{"type":849,"tag":1120,"props":6602,"children":6603},{"style":2248},[6604],{"type":854,"value":6367},{"type":849,"tag":1120,"props":6606,"children":6607},{"style":1127},[6608],{"type":854,"value":3629},{"type":849,"tag":1120,"props":6610,"children":6611},{"style":2170},[6612],{"type":854,"value":6413},{"type":849,"tag":1120,"props":6614,"children":6615},{"style":1127},[6616],{"type":854,"value":2468},{"type":849,"tag":1120,"props":6618,"children":6619},{"style":2248},[6620],{"type":854,"value":3508},{"type":849,"tag":1120,"props":6622,"children":6623},{"style":2170},[6624],{"type":854,"value":6232},{"type":849,"tag":1120,"props":6626,"children":6627},{"style":1127},[6628],{"type":854,"value":876},{"type":849,"tag":1120,"props":6630,"children":6631},{"style":2170},[6632],{"type":854,"value":6241},{"type":849,"tag":1120,"props":6634,"children":6635},{"style":1127},[6636],{"type":854,"value":876},{"type":849,"tag":1120,"props":6638,"children":6639},{"style":2072},[6640],{"type":854,"value":6641},"patch",{"type":849,"tag":1120,"props":6643,"children":6644},{"style":1127},[6645],{"type":854,"value":2367},{"type":849,"tag":1120,"props":6647,"children":6648},{"style":2170},[6649],{"type":854,"value":6413},{"type":849,"tag":1120,"props":6651,"children":6652},{"style":1127},[6653],{"type":854,"value":876},{"type":849,"tag":1120,"props":6655,"children":6656},{"style":2170},[6657],{"type":854,"value":6459},{"type":849,"tag":1120,"props":6659,"children":6660},{"style":1127},[6661],{"type":854,"value":6181},{"type":849,"tag":1120,"props":6663,"children":6664},{"style":2170},[6665],{"type":854,"value":6666},"role",{"type":849,"tag":1120,"props":6668,"children":6669},{"style":1127},[6670],{"type":854,"value":3139},{"type":854,"value":1132},{"type":849,"tag":1120,"props":6673,"children":6674},{"class":1122,"style":1123},[6675,6680,6684,6688,6692,6696,6700,6705,6709,6713,6717,6721,6725,6729],{"type":849,"tag":1120,"props":6676,"children":6677},{"style":2248},[6678],{"type":854,"value":6679},"    else",{"type":849,"tag":1120,"props":6681,"children":6682},{"style":2248},[6683],{"type":854,"value":4544},{"type":849,"tag":1120,"props":6685,"children":6686},{"style":2170},[6687],{"type":854,"value":6232},{"type":849,"tag":1120,"props":6689,"children":6690},{"style":1127},[6691],{"type":854,"value":876},{"type":849,"tag":1120,"props":6693,"children":6694},{"style":2170},[6695],{"type":854,"value":6241},{"type":849,"tag":1120,"props":6697,"children":6698},{"style":1127},[6699],{"type":854,"value":876},{"type":849,"tag":1120,"props":6701,"children":6702},{"style":2072},[6703],{"type":854,"value":6704},"insert",{"type":849,"tag":1120,"props":6706,"children":6707},{"style":1127},[6708],{"type":854,"value":2367},{"type":849,"tag":1120,"props":6710,"children":6711},{"style":1149},[6712],{"type":854,"value":6263},{"type":849,"tag":1120,"props":6714,"children":6715},{"style":1127},[6716],{"type":854,"value":6181},{"type":849,"tag":1120,"props":6718,"children":6719},{"style":2170},[6720],{"type":854,"value":4767},{"type":849,"tag":1120,"props":6722,"children":6723},{"style":1127},[6724],{"type":854,"value":1086},{"type":849,"tag":1120,"props":6726,"children":6727},{"style":2170},[6728],{"type":854,"value":6666},{"type":849,"tag":1120,"props":6730,"children":6731},{"style":1127},[6732],{"type":854,"value":3139},{"type":854,"value":1132},{"type":849,"tag":1120,"props":6735,"children":6736},{"class":1122,"style":1123},[6737,6742],{"type":849,"tag":1120,"props":6738,"children":6739},{"style":2248},[6740],{"type":854,"value":6741},"    return",{"type":849,"tag":1120,"props":6743,"children":6744},{"style":1217},[6745],{"type":854,"value":4428},{"type":854,"value":1132},{"type":849,"tag":1120,"props":6748,"children":6749},{"class":1122,"style":1123},[6750],{"type":849,"tag":1120,"props":6751,"children":6752},{"style":1127},[6753],{"type":854,"value":1646},{"type":854,"value":1132},{"type":849,"tag":1120,"props":6756,"children":6757},{"class":1122,"style":1123},[6758],{"type":849,"tag":1120,"props":6759,"children":6760},{"style":1127},[6761],{"type":854,"value":2724},{"type":854,"value":1132},{"type":849,"tag":1120,"props":6764,"children":6765},{"class":1122,"style":1123},[],{"type":854,"value":1132},{"type":849,"tag":1120,"props":6768,"children":6769},{"class":1122,"style":1123},[6770,6774,6778,6783,6787,6791],{"type":849,"tag":1120,"props":6771,"children":6772},{"style":2248},[6773],{"type":854,"value":2549},{"type":849,"tag":1120,"props":6775,"children":6776},{"style":1217},[6777],{"type":854,"value":2554},{"type":849,"tag":1120,"props":6779,"children":6780},{"style":2408},[6781],{"type":854,"value":6782}," adminOverview",{"type":849,"tag":1120,"props":6784,"children":6785},{"style":1127},[6786],{"type":854,"value":2416},{"type":849,"tag":1120,"props":6788,"children":6789},{"style":2072},[6790],{"type":854,"value":3305},{"type":849,"tag":1120,"props":6792,"children":6793},{"style":1127},[6794],{"type":854,"value":3536},{"type":854,"value":1132},{"type":849,"tag":1120,"props":6797,"children":6798},{"class":1122,"style":1123},[6799,6803],{"type":849,"tag":1120,"props":6800,"children":6801},{"style":2170},[6802],{"type":854,"value":6084},{"type":849,"tag":1120,"props":6804,"children":6805},{"style":1127},[6806],{"type":854,"value":6807}," {},",{"type":854,"value":1132},{"type":849,"tag":1120,"props":6810,"children":6811},{"class":1122,"style":1123},[6812,6816,6820,6824,6828,6832,6836,6840],{"type":849,"tag":1120,"props":6813,"children":6814},{"style":2072},[6815],{"type":854,"value":6158},{"type":849,"tag":1120,"props":6817,"children":6818},{"style":2170},[6819],{"type":854,"value":987},{"type":849,"tag":1120,"props":6821,"children":6822},{"style":1217},[6823],{"type":854,"value":6167},{"type":849,"tag":1120,"props":6825,"children":6826},{"style":1127},[6827],{"type":854,"value":3629},{"type":849,"tag":1120,"props":6829,"children":6830},{"style":2170},[6831],{"type":854,"value":6176},{"type":849,"tag":1120,"props":6833,"children":6834},{"style":1127},[6835],{"type":854,"value":2468},{"type":849,"tag":1120,"props":6837,"children":6838},{"style":1217},[6839],{"type":854,"value":2622},{"type":849,"tag":1120,"props":6841,"children":6842},{"style":1127},[6843],{"type":854,"value":2396},{"type":854,"value":1132},{"type":849,"tag":1120,"props":6846,"children":6847},{"class":1122,"style":1123},[6848,6852,6857,6861,6865,6869,6873,6878,6882,6886],{"type":849,"tag":1120,"props":6849,"children":6850},{"style":1217},[6851],{"type":854,"value":6214},{"type":849,"tag":1120,"props":6853,"children":6854},{"style":2408},[6855],{"type":854,"value":6856}," user",{"type":849,"tag":1120,"props":6858,"children":6859},{"style":1127},[6860],{"type":854,"value":2416},{"type":849,"tag":1120,"props":6862,"children":6863},{"style":2248},[6864],{"type":854,"value":3508},{"type":849,"tag":1120,"props":6866,"children":6867},{"style":2170},[6868],{"type":854,"value":2559},{"type":849,"tag":1120,"props":6870,"children":6871},{"style":1127},[6872],{"type":854,"value":876},{"type":849,"tag":1120,"props":6874,"children":6875},{"style":2072},[6876],{"type":854,"value":6877},"requireUser",{"type":849,"tag":1120,"props":6879,"children":6880},{"style":1127},[6881],{"type":854,"value":2367},{"type":849,"tag":1120,"props":6883,"children":6884},{"style":2170},[6885],{"type":854,"value":6176},{"type":849,"tag":1120,"props":6887,"children":6888},{"style":1127},[6889],{"type":854,"value":2515},{"type":854,"value":1132},{"type":849,"tag":1120,"props":6892,"children":6893},{"class":1122,"style":1123},[6894,6898,6902,6906,6910,6914,6918],{"type":849,"tag":1120,"props":6895,"children":6896},{"style":1217},[6897],{"type":854,"value":6214},{"type":849,"tag":1120,"props":6899,"children":6900},{"style":2408},[6901],{"type":854,"value":6219},{"type":849,"tag":1120,"props":6903,"children":6904},{"style":1127},[6905],{"type":854,"value":2416},{"type":849,"tag":1120,"props":6907,"children":6908},{"style":2248},[6909],{"type":854,"value":3508},{"type":849,"tag":1120,"props":6911,"children":6912},{"style":2170},[6913],{"type":854,"value":6232},{"type":849,"tag":1120,"props":6915,"children":6916},{"style":1127},[6917],{"type":854,"value":876},{"type":849,"tag":1120,"props":6919,"children":6920},{"style":2170},[6921],{"type":854,"value":6241},{"type":854,"value":1132},{"type":849,"tag":1120,"props":6924,"children":6925},{"class":1122,"style":1123},[6926,6930,6934,6938,6942],{"type":849,"tag":1120,"props":6927,"children":6928},{"style":1127},[6929],{"type":854,"value":6250},{"type":849,"tag":1120,"props":6931,"children":6932},{"style":2072},[6933],{"type":854,"value":3305},{"type":849,"tag":1120,"props":6935,"children":6936},{"style":1127},[6937],{"type":854,"value":2367},{"type":849,"tag":1120,"props":6939,"children":6940},{"style":1149},[6941],{"type":854,"value":6263},{"type":849,"tag":1120,"props":6943,"children":6944},{"style":1127},[6945],{"type":854,"value":2515},{"type":854,"value":1132},{"type":849,"tag":1120,"props":6948,"children":6949},{"class":1122,"style":1123},[6950,6954,6958,6962,6966,6970,6974,6978,6982,6986,6990,6994,6998,7002,7006,7011,7015,7020],{"type":849,"tag":1120,"props":6951,"children":6952},{"style":1127},[6953],{"type":854,"value":6250},{"type":849,"tag":1120,"props":6955,"children":6956},{"style":2072},[6957],{"type":854,"value":6280},{"type":849,"tag":1120,"props":6959,"children":6960},{"style":1127},[6961],{"type":854,"value":2367},{"type":849,"tag":1120,"props":6963,"children":6964},{"style":1149},[6965],{"type":854,"value":5886},{"type":849,"tag":1120,"props":6967,"children":6968},{"style":1127},[6969],{"type":854,"value":6293},{"type":849,"tag":1120,"props":6971,"children":6972},{"style":2170},[6973],{"type":854,"value":6298},{"type":849,"tag":1120,"props":6975,"children":6976},{"style":1127},[6977],{"type":854,"value":2468},{"type":849,"tag":1120,"props":6979,"children":6980},{"style":1217},[6981],{"type":854,"value":2622},{"type":849,"tag":1120,"props":6983,"children":6984},{"style":2170},[6985],{"type":854,"value":6311},{"type":849,"tag":1120,"props":6987,"children":6988},{"style":1127},[6989],{"type":854,"value":876},{"type":849,"tag":1120,"props":6991,"children":6992},{"style":2072},[6993],{"type":854,"value":6320},{"type":849,"tag":1120,"props":6995,"children":6996},{"style":1127},[6997],{"type":854,"value":2367},{"type":849,"tag":1120,"props":6999,"children":7000},{"style":1149},[7001],{"type":854,"value":5896},{"type":849,"tag":1120,"props":7003,"children":7004},{"style":1127},[7005],{"type":854,"value":1086},{"type":849,"tag":1120,"props":7007,"children":7008},{"style":2170},[7009],{"type":854,"value":7010},"user",{"type":849,"tag":1120,"props":7012,"children":7013},{"style":1127},[7014],{"type":854,"value":876},{"type":849,"tag":1120,"props":7016,"children":7017},{"style":2170},[7018],{"type":854,"value":7019},"id",{"type":849,"tag":1120,"props":7021,"children":7022},{"style":1127},[7023],{"type":854,"value":6341},{"type":854,"value":1132},{"type":849,"tag":1120,"props":7026,"children":7027},{"class":1122,"style":1123},[7028,7032,7036],{"type":849,"tag":1120,"props":7029,"children":7030},{"style":1127},[7031],{"type":854,"value":6250},{"type":849,"tag":1120,"props":7033,"children":7034},{"style":2072},[7035],{"type":854,"value":6354},{"type":849,"tag":1120,"props":7037,"children":7038},{"style":1127},[7039],{"type":854,"value":3171},{"type":854,"value":1132},{"type":849,"tag":1120,"props":7042,"children":7043},{"class":1122,"style":1123},[7044,7048,7052,7056,7060,7064,7069,7073,7077,7081,7085,7090,7094,7099,7104],{"type":849,"tag":1120,"props":7045,"children":7046},{"style":2248},[7047],{"type":854,"value":6367},{"type":849,"tag":1120,"props":7049,"children":7050},{"style":1127},[7051],{"type":854,"value":3629},{"type":849,"tag":1120,"props":7053,"children":7054},{"style":2170},[7055],{"type":854,"value":6413},{"type":849,"tag":1120,"props":7057,"children":7058},{"style":1127},[7059],{"type":854,"value":4478},{"type":849,"tag":1120,"props":7061,"children":7062},{"style":2170},[7063],{"type":854,"value":6666},{"type":849,"tag":1120,"props":7065,"children":7066},{"style":1127},[7067],{"type":854,"value":7068}," !== ",{"type":849,"tag":1120,"props":7070,"children":7071},{"style":1149},[7072],{"type":854,"value":5807},{"type":849,"tag":1120,"props":7074,"children":7075},{"style":1127},[7076],{"type":854,"value":2468},{"type":849,"tag":1120,"props":7078,"children":7079},{"style":2248},[7080],{"type":854,"value":2473},{"type":849,"tag":1120,"props":7082,"children":7083},{"style":1217},[7084],{"type":854,"value":2478},{"type":849,"tag":1120,"props":7086,"children":7087},{"style":2072},[7088],{"type":854,"value":7089}," ConvexError",{"type":849,"tag":1120,"props":7091,"children":7092},{"style":1127},[7093],{"type":854,"value":3124},{"type":849,"tag":1120,"props":7095,"children":7096},{"style":2170},[7097],{"type":854,"value":7098},"code:",{"type":849,"tag":1120,"props":7100,"children":7101},{"style":1149},[7102],{"type":854,"value":7103}," 'FORBIDDEN'",{"type":849,"tag":1120,"props":7105,"children":7106},{"style":1127},[7107],{"type":854,"value":3139},{"type":854,"value":1132},{"type":849,"tag":1120,"props":7110,"children":7111},{"class":1122,"style":1123},[7112,7116,7120,7125,7129,7133,7137,7141,7145,7149,7153,7157,7162,7167,7171,7177],{"type":849,"tag":1120,"props":7113,"children":7114},{"style":2248},[7115],{"type":854,"value":6741},{"type":849,"tag":1120,"props":7117,"children":7118},{"style":1127},[7119],{"type":854,"value":2256},{"type":849,"tag":1120,"props":7121,"children":7122},{"style":2170},[7123],{"type":854,"value":7124},"members:",{"type":849,"tag":1120,"props":7126,"children":7127},{"style":2248},[7128],{"type":854,"value":4544},{"type":849,"tag":1120,"props":7130,"children":7131},{"style":2170},[7132],{"type":854,"value":6232},{"type":849,"tag":1120,"props":7134,"children":7135},{"style":1127},[7136],{"type":854,"value":876},{"type":849,"tag":1120,"props":7138,"children":7139},{"style":2170},[7140],{"type":854,"value":6241},{"type":849,"tag":1120,"props":7142,"children":7143},{"style":1127},[7144],{"type":854,"value":876},{"type":849,"tag":1120,"props":7146,"children":7147},{"style":2072},[7148],{"type":854,"value":3305},{"type":849,"tag":1120,"props":7150,"children":7151},{"style":1127},[7152],{"type":854,"value":2367},{"type":849,"tag":1120,"props":7154,"children":7155},{"style":1149},[7156],{"type":854,"value":6263},{"type":849,"tag":1120,"props":7158,"children":7159},{"style":1127},[7160],{"type":854,"value":7161},").",{"type":849,"tag":1120,"props":7163,"children":7164},{"style":2072},[7165],{"type":854,"value":7166},"take",{"type":849,"tag":1120,"props":7168,"children":7169},{"style":1127},[7170],{"type":854,"value":2367},{"type":849,"tag":1120,"props":7172,"children":7174},{"style":7173},"color:#098658;--shiki-dark:#B5CEA8",[7175],{"type":854,"value":7176},"100",{"type":849,"tag":1120,"props":7178,"children":7179},{"style":1127},[7180],{"type":854,"value":7181},") }",{"type":854,"value":1132},{"type":849,"tag":1120,"props":7184,"children":7185},{"class":1122,"style":1123},[7186],{"type":849,"tag":1120,"props":7187,"children":7188},{"style":1127},[7189],{"type":854,"value":1646},{"type":854,"value":1132},{"type":849,"tag":1120,"props":7192,"children":7193},{"class":1122,"style":1123},[7194],{"type":849,"tag":1120,"props":7195,"children":7196},{"style":1127},[7197],{"type":854,"value":2724},{"type":849,"tag":1109,"props":7199,"children":7200},{"language":2236,"filename":2237,"class":1113},[7201],{"type":849,"tag":857,"props":7202,"children":7203},{"class":2241},[7204,7240,7241,7244,7245,7296,7297,7320,7321,7344,7345,7368,7369,7392,7393,7444,7445,7492,7493,7577,7578,7586,7587,7666,7667,7711,7712,7719,7720,7727,7728],{"type":849,"tag":1120,"props":7205,"children":7206},{"class":1122,"style":1123},[7207,7211,7215,7219,7223,7228,7232,7236],{"type":849,"tag":1120,"props":7208,"children":7209},{"style":2248},[7210],{"type":854,"value":2251},{"type":849,"tag":1120,"props":7212,"children":7213},{"style":1127},[7214],{"type":854,"value":2256},{"type":849,"tag":1120,"props":7216,"children":7217},{"style":2170},[7218],{"type":854,"value":2296},{"type":849,"tag":1120,"props":7220,"children":7221},{"style":1127},[7222],{"type":854,"value":1086},{"type":849,"tag":1120,"props":7224,"children":7225},{"style":2170},[7226],{"type":854,"value":7227},"internal",{"type":849,"tag":1120,"props":7229,"children":7230},{"style":1127},[7231],{"type":854,"value":2265},{"type":849,"tag":1120,"props":7233,"children":7234},{"style":2248},[7235],{"type":854,"value":2270},{"type":849,"tag":1120,"props":7237,"children":7238},{"style":1149},[7239],{"type":854,"value":2309},{"type":854,"value":1132},{"type":849,"tag":1120,"props":7242,"children":7243},{"class":1122,"style":1123},[],{"type":854,"value":1132},{"type":849,"tag":1120,"props":7246,"children":7247},{"class":1122,"style":1123},[7248,7252,7256,7260,7264,7268,7272,7276,7280,7284,7288,7292],{"type":849,"tag":1120,"props":7249,"children":7250},{"style":2248},[7251],{"type":854,"value":2549},{"type":849,"tag":1120,"props":7253,"children":7254},{"style":1217},[7255],{"type":854,"value":2554},{"type":849,"tag":1120,"props":7257,"children":7258},{"style":2408},[7259],{"type":854,"value":2559},{"type":849,"tag":1120,"props":7261,"children":7262},{"style":1127},[7263],{"type":854,"value":2416},{"type":849,"tag":1120,"props":7265,"children":7266},{"style":2072},[7267],{"type":854,"value":868},{"type":849,"tag":1120,"props":7269,"children":7270},{"style":1127},[7271],{"type":854,"value":2572},{"type":849,"tag":1120,"props":7273,"children":7274},{"style":2379},[7275],{"type":854,"value":2331},{"type":849,"tag":1120,"props":7277,"children":7278},{"style":1127},[7279],{"type":854,"value":2581},{"type":849,"tag":1120,"props":7281,"children":7282},{"style":2170},[7283],{"type":854,"value":2296},{"type":849,"tag":1120,"props":7285,"children":7286},{"style":1127},[7287],{"type":854,"value":876},{"type":849,"tag":1120,"props":7289,"children":7290},{"style":2170},[7291],{"type":854,"value":2594},{"type":849,"tag":1120,"props":7293,"children":7294},{"style":1127},[7295],{"type":854,"value":2599},{"type":854,"value":1132},{"type":849,"tag":1120,"props":7298,"children":7299},{"class":1122,"style":1123},[7300,7304,7308,7312,7316],{"type":849,"tag":1120,"props":7301,"children":7302},{"style":2072},[7303],{"type":854,"value":2608},{"type":849,"tag":1120,"props":7305,"children":7306},{"style":2170},[7307],{"type":854,"value":987},{"type":849,"tag":1120,"props":7309,"children":7310},{"style":1127},[7311],{"type":854,"value":2617},{"type":849,"tag":1120,"props":7313,"children":7314},{"style":1217},[7315],{"type":854,"value":2622},{"type":849,"tag":1120,"props":7317,"children":7318},{"style":1127},[7319],{"type":854,"value":2627},{"type":854,"value":1132},{"type":849,"tag":1120,"props":7322,"children":7323},{"class":1122,"style":1123},[7324,7328,7332,7336,7340],{"type":849,"tag":1120,"props":7325,"children":7326},{"style":2170},[7327],{"type":854,"value":2636},{"type":849,"tag":1120,"props":7329,"children":7330},{"style":2072},[7331],{"type":854,"value":2362},{"type":849,"tag":1120,"props":7333,"children":7334},{"style":1127},[7335],{"type":854,"value":2367},{"type":849,"tag":1120,"props":7337,"children":7338},{"style":1149},[7339],{"type":854,"value":2649},{"type":849,"tag":1120,"props":7341,"children":7342},{"style":1127},[7343],{"type":854,"value":2654},{"type":854,"value":1132},{"type":849,"tag":1120,"props":7346,"children":7347},{"class":1122,"style":1123},[7348,7352,7356,7360,7364],{"type":849,"tag":1120,"props":7349,"children":7350},{"style":2170},[7351],{"type":854,"value":2663},{"type":849,"tag":1120,"props":7353,"children":7354},{"style":2072},[7355],{"type":854,"value":2362},{"type":849,"tag":1120,"props":7357,"children":7358},{"style":1127},[7359],{"type":854,"value":2367},{"type":849,"tag":1120,"props":7361,"children":7362},{"style":1149},[7363],{"type":854,"value":2676},{"type":849,"tag":1120,"props":7365,"children":7366},{"style":1127},[7367],{"type":854,"value":2654},{"type":854,"value":1132},{"type":849,"tag":1120,"props":7370,"children":7371},{"class":1122,"style":1123},[7372,7376,7380,7384,7388],{"type":849,"tag":1120,"props":7373,"children":7374},{"style":2170},[7375],{"type":854,"value":2689},{"type":849,"tag":1120,"props":7377,"children":7378},{"style":2072},[7379],{"type":854,"value":2362},{"type":849,"tag":1120,"props":7381,"children":7382},{"style":1127},[7383],{"type":854,"value":2367},{"type":849,"tag":1120,"props":7385,"children":7386},{"style":1149},[7387],{"type":854,"value":2702},{"type":849,"tag":1120,"props":7389,"children":7390},{"style":1127},[7391],{"type":854,"value":2654},{"type":854,"value":1132},{"type":849,"tag":1120,"props":7394,"children":7395},{"class":1122,"style":1123},[7396,7400,7404,7408,7412,7416,7420,7424,7428,7432,7436,7440],{"type":849,"tag":1120,"props":7397,"children":7398},{"style":2072},[7399],{"type":854,"value":5195},{"type":849,"tag":1120,"props":7401,"children":7402},{"style":2170},[7403],{"type":854,"value":987},{"type":849,"tag":1120,"props":7405,"children":7406},{"style":1217},[7407],{"type":854,"value":6167},{"type":849,"tag":1120,"props":7409,"children":7410},{"style":1127},[7411],{"type":854,"value":5204},{"type":849,"tag":1120,"props":7413,"children":7414},{"style":2170},[7415],{"type":854,"value":6176},{"type":849,"tag":1120,"props":7417,"children":7418},{"style":1127},[7419],{"type":854,"value":1086},{"type":849,"tag":1120,"props":7421,"children":7422},{"style":2170},[7423],{"type":854,"value":4767},{"type":849,"tag":1120,"props":7425,"children":7426},{"style":1127},[7427],{"type":854,"value":1086},{"type":849,"tag":1120,"props":7429,"children":7430},{"style":2170},[7431],{"type":854,"value":5209},{"type":849,"tag":1120,"props":7433,"children":7434},{"style":1127},[7435],{"type":854,"value":5214},{"type":849,"tag":1120,"props":7437,"children":7438},{"style":1217},[7439],{"type":854,"value":2622},{"type":849,"tag":1120,"props":7441,"children":7442},{"style":1127},[7443],{"type":854,"value":2396},{"type":854,"value":1132},{"type":849,"tag":1120,"props":7446,"children":7447},{"class":1122,"style":1123},[7448,7452,7456,7460,7464,7468,7472,7476,7480,7484,7488],{"type":849,"tag":1120,"props":7449,"children":7450},{"style":1217},[7451],{"type":854,"value":5231},{"type":849,"tag":1120,"props":7453,"children":7454},{"style":2408},[7455],{"type":854,"value":5236},{"type":849,"tag":1120,"props":7457,"children":7458},{"style":1127},[7459],{"type":854,"value":2416},{"type":849,"tag":1120,"props":7461,"children":7462},{"style":2170},[7463],{"type":854,"value":5245},{"type":849,"tag":1120,"props":7465,"children":7466},{"style":1127},[7467],{"type":854,"value":876},{"type":849,"tag":1120,"props":7469,"children":7470},{"style":2072},[7471],{"type":854,"value":5254},{"type":849,"tag":1120,"props":7473,"children":7474},{"style":1127},[7475],{"type":854,"value":2367},{"type":849,"tag":1120,"props":7477,"children":7478},{"style":2170},[7479],{"type":854,"value":5209},{"type":849,"tag":1120,"props":7481,"children":7482},{"style":1127},[7483],{"type":854,"value":876},{"type":849,"tag":1120,"props":7485,"children":7486},{"style":2170},[7487],{"type":854,"value":5025},{"type":849,"tag":1120,"props":7489,"children":7490},{"style":1127},[7491],{"type":854,"value":2515},{"type":854,"value":1132},{"type":849,"tag":1120,"props":7494,"children":7495},{"class":1122,"style":1123},[7496,7500,7504,7508,7512,7516,7521,7526,7531,7535,7539,7544,7549,7554,7559,7564,7568,7573],{"type":849,"tag":1120,"props":7497,"children":7498},{"style":1127},[7499],{"type":854,"value":3737},{"type":849,"tag":1120,"props":7501,"children":7502},{"style":2170},[7503],{"type":854,"value":5209},{"type":849,"tag":1120,"props":7505,"children":7506},{"style":1127},[7507],{"type":854,"value":876},{"type":849,"tag":1120,"props":7509,"children":7510},{"style":2170},[7511],{"type":854,"value":5025},{"type":849,"tag":1120,"props":7513,"children":7514},{"style":1127},[7515],{"type":854,"value":876},{"type":849,"tag":1120,"props":7517,"children":7518},{"style":2072},[7519],{"type":854,"value":7520},"filter",{"type":849,"tag":1120,"props":7522,"children":7523},{"style":1127},[7524],{"type":854,"value":7525},"((",{"type":849,"tag":1120,"props":7527,"children":7528},{"style":2170},[7529],{"type":854,"value":7530},"group",{"type":849,"tag":1120,"props":7532,"children":7533},{"style":1127},[7534],{"type":854,"value":2387},{"type":849,"tag":1120,"props":7536,"children":7537},{"style":2170},[7538],{"type":854,"value":7530},{"type":849,"tag":1120,"props":7540,"children":7541},{"style":1217},[7542],{"type":854,"value":7543}," is",{"type":849,"tag":1120,"props":7545,"children":7546},{"style":2379},[7547],{"type":854,"value":7548}," string",{"type":849,"tag":1120,"props":7550,"children":7551},{"style":1217},[7552],{"type":854,"value":7553}," =>",{"type":849,"tag":1120,"props":7555,"children":7556},{"style":1217},[7557],{"type":854,"value":7558}," typeof",{"type":849,"tag":1120,"props":7560,"children":7561},{"style":2170},[7562],{"type":854,"value":7563}," group",{"type":849,"tag":1120,"props":7565,"children":7566},{"style":1127},[7567],{"type":854,"value":3319},{"type":849,"tag":1120,"props":7569,"children":7570},{"style":1149},[7571],{"type":854,"value":7572},"'string'",{"type":849,"tag":1120,"props":7574,"children":7575},{"style":1127},[7576],{"type":854,"value":2515},{"type":854,"value":1132},{"type":849,"tag":1120,"props":7579,"children":7580},{"class":1122,"style":1123},[7581],{"type":849,"tag":1120,"props":7582,"children":7583},{"style":1127},[7584],{"type":854,"value":7585},"        : []",{"type":854,"value":1132},{"type":849,"tag":1120,"props":7588,"children":7589},{"class":1122,"style":1123},[7590,7594,7599,7603,7607,7611,7615,7620,7624,7628,7632,7637,7641,7646,7650,7654,7658,7662],{"type":849,"tag":1120,"props":7591,"children":7592},{"style":1217},[7593],{"type":854,"value":5231},{"type":849,"tag":1120,"props":7595,"children":7596},{"style":2408},[7597],{"type":854,"value":7598}," allowed",{"type":849,"tag":1120,"props":7600,"children":7601},{"style":1127},[7602],{"type":854,"value":2416},{"type":849,"tag":1120,"props":7604,"children":7605},{"style":2248},[7606],{"type":854,"value":3508},{"type":849,"tag":1120,"props":7608,"children":7609},{"style":2170},[7610],{"type":854,"value":6232},{"type":849,"tag":1120,"props":7612,"children":7613},{"style":1127},[7614],{"type":854,"value":876},{"type":849,"tag":1120,"props":7616,"children":7617},{"style":2072},[7618],{"type":854,"value":7619},"runMutation",{"type":849,"tag":1120,"props":7621,"children":7622},{"style":1127},[7623],{"type":854,"value":2367},{"type":849,"tag":1120,"props":7625,"children":7626},{"style":2170},[7627],{"type":854,"value":7227},{"type":849,"tag":1120,"props":7629,"children":7630},{"style":1127},[7631],{"type":854,"value":876},{"type":849,"tag":1120,"props":7633,"children":7634},{"style":2170},[7635],{"type":854,"value":7636},"members",{"type":849,"tag":1120,"props":7638,"children":7639},{"style":1127},[7640],{"type":854,"value":876},{"type":849,"tag":1120,"props":7642,"children":7643},{"style":2170},[7644],{"type":854,"value":7645},"syncGroups",{"type":849,"tag":1120,"props":7647,"children":7648},{"style":1127},[7649],{"type":854,"value":6181},{"type":849,"tag":1120,"props":7651,"children":7652},{"style":2170},[7653],{"type":854,"value":4767},{"type":849,"tag":1120,"props":7655,"children":7656},{"style":1127},[7657],{"type":854,"value":1086},{"type":849,"tag":1120,"props":7659,"children":7660},{"style":2170},[7661],{"type":854,"value":5025},{"type":849,"tag":1120,"props":7663,"children":7664},{"style":1127},[7665],{"type":854,"value":3139},{"type":854,"value":1132},{"type":849,"tag":1120,"props":7668,"children":7669},{"class":1122,"style":1123},[7670,7674,7678,7683,7687,7691,7695,7699,7703,7707],{"type":849,"tag":1120,"props":7671,"children":7672},{"style":2248},[7673],{"type":854,"value":5301},{"type":849,"tag":1120,"props":7675,"children":7676},{"style":1127},[7677],{"type":854,"value":2458},{"type":849,"tag":1120,"props":7679,"children":7680},{"style":2170},[7681],{"type":854,"value":7682},"allowed",{"type":849,"tag":1120,"props":7684,"children":7685},{"style":1127},[7686],{"type":854,"value":2468},{"type":849,"tag":1120,"props":7688,"children":7689},{"style":2248},[7690],{"type":854,"value":2473},{"type":849,"tag":1120,"props":7692,"children":7693},{"style":1217},[7694],{"type":854,"value":2478},{"type":849,"tag":1120,"props":7696,"children":7697},{"style":2072},[7698],{"type":854,"value":2483},{"type":849,"tag":1120,"props":7700,"children":7701},{"style":1127},[7702],{"type":854,"value":2367},{"type":849,"tag":1120,"props":7704,"children":7705},{"style":1149},[7706],{"type":854,"value":5353},{"type":849,"tag":1120,"props":7708,"children":7709},{"style":1127},[7710],{"type":854,"value":2515},{"type":854,"value":1132},{"type":849,"tag":1120,"props":7713,"children":7714},{"class":1122,"style":1123},[7715],{"type":849,"tag":1120,"props":7716,"children":7717},{"style":1127},[7718],{"type":854,"value":5366},{"type":854,"value":1132},{"type":849,"tag":1120,"props":7721,"children":7722},{"class":1122,"style":1123},[7723],{"type":849,"tag":1120,"props":7724,"children":7725},{"style":1127},[7726],{"type":854,"value":2715},{"type":854,"value":1132},{"type":849,"tag":1120,"props":7729,"children":7730},{"class":1122,"style":1123},[7731],{"type":849,"tag":1120,"props":7732,"children":7733},{"style":1127},[7734],{"type":854,"value":2724},{"type":849,"tag":850,"props":7736,"children":7737},{},[7738,7742,7744,7748,7750,7755,7757,7761,7763,7767,7769,7774,7775,7780],{"type":849,"tag":857,"props":7739,"children":7740},{},[7741],{"type":854,"value":5209},{"type":854,"value":7743}," holds the verified ID-token claims, frozen. ",{"type":849,"tag":857,"props":7745,"children":7746},{},[7747],{"type":854,"value":4767},{"type":854,"value":7749}," is the same as\n",{"type":849,"tag":857,"props":7751,"children":7752},{},[7753],{"type":854,"value":7754},"user.id",{"type":854,"value":7756}," from ",{"type":849,"tag":857,"props":7758,"children":7759},{},[7760],{"type":854,"value":4682},{"type":854,"value":7762},". ",{"type":849,"tag":857,"props":7764,"children":7765},{},[7766],{"type":854,"value":6176},{"type":854,"value":7768}," is the auth HTTP action's\ncontext: use ",{"type":849,"tag":857,"props":7770,"children":7771},{},[7772],{"type":854,"value":7773},"ctx.runMutation",{"type":854,"value":1754},{"type":849,"tag":857,"props":7776,"children":7777},{},[7778],{"type":854,"value":7779},"ctx.runQuery",{"type":854,"value":7781},". If the hook throws, also\nfrom inside the mutation, the sign-in is refused, so a failing sync never\nleaves a session with an old role. A refused user's role row is removed\nfirst, so a session the user still has elsewhere loses the role too.",{"type":849,"tag":850,"props":7783,"children":7784},{},[7785],{"type":854,"value":7786},"The roles change at each IdP sign-in. With Keycloak's default SSO timeouts a\nuser signs in again at least every 10 hours. To apply a change now, sign the\nuser out in Keycloak; back-channel logout ends the app sessions, and the next\nsign-in copies the new groups.",{"type":849,"tag":850,"props":7788,"children":7789},{},[7790],{"type":854,"value":7791},"Linking the IdP to a signed-in user is not a sign-in and does not run the hook.\nLinking ends all of the user's sessions, including the current one, so the\nhook runs at the next sign-in.",{"type":849,"tag":883,"props":7793,"children":7795},{"id":7794},"call-your-own-services",[7796],{"type":854,"value":7797},"Call your own services",{"type":849,"tag":850,"props":7799,"children":7800},{},[7801,7806],{"type":849,"tag":857,"props":7802,"children":7803},{},[7804],{"type":854,"value":7805},"auth.getOidcAccessToken(ctx)",{"type":854,"value":7807}," returns a current IdP access token for the\ncalling user. Use it in a Convex action to call your own services as that user:",{"type":849,"tag":1109,"props":7809,"children":7811},{"language":2236,"filename":7810,"class":1113},"convex\u002Freports.ts",[7812],{"type":849,"tag":857,"props":7813,"children":7814},{"class":2241},[7815,7850,7851,7854,7855,7883,7884,7911,7912,7915,7916,7955,7956,7995,7996,8055,8056,8067,8068,8075,8076,8079,8080,8108,8109,8142,8143,8187,8188,8237,8238,8268,8269,8312,8313,8334,8335,8343,8344,8382,8383,8426,8427,8435,8436,8494,8495,8580,8581,8651,8652,8684,8685,8692,8693,8746,8747,8754,8755],{"type":849,"tag":1120,"props":7816,"children":7817},{"class":1122,"style":1123},[7818,7822,7826,7830,7834,7838,7842,7846],{"type":849,"tag":1120,"props":7819,"children":7820},{"style":2248},[7821],{"type":854,"value":2251},{"type":849,"tag":1120,"props":7823,"children":7824},{"style":1127},[7825],{"type":854,"value":2256},{"type":849,"tag":1120,"props":7827,"children":7828},{"style":2170},[7829],{"type":854,"value":5932},{"type":849,"tag":1120,"props":7831,"children":7832},{"style":1127},[7833],{"type":854,"value":1086},{"type":849,"tag":1120,"props":7835,"children":7836},{"style":2170},[7837],{"type":854,"value":5675},{"type":849,"tag":1120,"props":7839,"children":7840},{"style":1127},[7841],{"type":854,"value":2265},{"type":849,"tag":1120,"props":7843,"children":7844},{"style":2248},[7845],{"type":854,"value":2270},{"type":849,"tag":1120,"props":7847,"children":7848},{"style":1149},[7849],{"type":854,"value":5688},{"type":854,"value":1132},{"type":849,"tag":1120,"props":7852,"children":7853},{"class":1122,"style":1123},[],{"type":854,"value":1132},{"type":849,"tag":1120,"props":7856,"children":7857},{"class":1122,"style":1123},[7858,7862,7866,7871,7875,7879],{"type":849,"tag":1120,"props":7859,"children":7860},{"style":2248},[7861],{"type":854,"value":2251},{"type":849,"tag":1120,"props":7863,"children":7864},{"style":1127},[7865],{"type":854,"value":2256},{"type":849,"tag":1120,"props":7867,"children":7868},{"style":2170},[7869],{"type":854,"value":7870},"action",{"type":849,"tag":1120,"props":7872,"children":7873},{"style":1127},[7874],{"type":854,"value":2265},{"type":849,"tag":1120,"props":7876,"children":7877},{"style":2248},[7878],{"type":854,"value":2270},{"type":849,"tag":1120,"props":7880,"children":7881},{"style":1149},[7882],{"type":854,"value":5994},{"type":854,"value":1132},{"type":849,"tag":1120,"props":7885,"children":7886},{"class":1122,"style":1123},[7887,7891,7895,7899,7903,7907],{"type":849,"tag":1120,"props":7888,"children":7889},{"style":2248},[7890],{"type":854,"value":2251},{"type":849,"tag":1120,"props":7892,"children":7893},{"style":1127},[7894],{"type":854,"value":2256},{"type":849,"tag":1120,"props":7896,"children":7897},{"style":2170},[7898],{"type":854,"value":6011},{"type":849,"tag":1120,"props":7900,"children":7901},{"style":1127},[7902],{"type":854,"value":2265},{"type":849,"tag":1120,"props":7904,"children":7905},{"style":2248},[7906],{"type":854,"value":2270},{"type":849,"tag":1120,"props":7908,"children":7909},{"style":1149},[7910],{"type":854,"value":6024},{"type":854,"value":1132},{"type":849,"tag":1120,"props":7913,"children":7914},{"class":1122,"style":1123},[],{"type":854,"value":1132},{"type":849,"tag":1120,"props":7917,"children":7918},{"class":1122,"style":1123},[7919,7923,7927,7931,7935,7939,7943,7947,7951],{"type":849,"tag":1120,"props":7920,"children":7921},{"style":1217},[7922],{"type":854,"value":2357},{"type":849,"tag":1120,"props":7924,"children":7925},{"style":2072},[7926],{"type":854,"value":2362},{"type":849,"tag":1120,"props":7928,"children":7929},{"style":1127},[7930],{"type":854,"value":2367},{"type":849,"tag":1120,"props":7932,"children":7933},{"style":2170},[7934],{"type":854,"value":2372},{"type":849,"tag":1120,"props":7936,"children":7937},{"style":1127},[7938],{"type":854,"value":1146},{"type":849,"tag":1120,"props":7940,"children":7941},{"style":2379},[7942],{"type":854,"value":2382},{"type":849,"tag":1120,"props":7944,"children":7945},{"style":1127},[7946],{"type":854,"value":2387},{"type":849,"tag":1120,"props":7948,"children":7949},{"style":2379},[7950],{"type":854,"value":2382},{"type":849,"tag":1120,"props":7952,"children":7953},{"style":1127},[7954],{"type":854,"value":2396},{"type":854,"value":1132},{"type":849,"tag":1120,"props":7957,"children":7958},{"class":1122,"style":1123},[7959,7963,7967,7971,7975,7979,7983,7987,7991],{"type":849,"tag":1120,"props":7960,"children":7961},{"style":1217},[7962],{"type":854,"value":2405},{"type":849,"tag":1120,"props":7964,"children":7965},{"style":2408},[7966],{"type":854,"value":2411},{"type":849,"tag":1120,"props":7968,"children":7969},{"style":1127},[7970],{"type":854,"value":2416},{"type":849,"tag":1120,"props":7972,"children":7973},{"style":2170},[7974],{"type":854,"value":2421},{"type":849,"tag":1120,"props":7976,"children":7977},{"style":1127},[7978],{"type":854,"value":876},{"type":849,"tag":1120,"props":7980,"children":7981},{"style":2170},[7982],{"type":854,"value":2430},{"type":849,"tag":1120,"props":7984,"children":7985},{"style":1127},[7986],{"type":854,"value":2435},{"type":849,"tag":1120,"props":7988,"children":7989},{"style":2170},[7990],{"type":854,"value":2372},{"type":849,"tag":1120,"props":7992,"children":7993},{"style":1127},[7994],{"type":854,"value":2444},{"type":854,"value":1132},{"type":849,"tag":1120,"props":7997,"children":7998},{"class":1122,"style":1123},[7999,8003,8007,8011,8015,8019,8023,8027,8031,8035,8039,8043,8047,8051],{"type":849,"tag":1120,"props":8000,"children":8001},{"style":2248},[8002],{"type":854,"value":2453},{"type":849,"tag":1120,"props":8004,"children":8005},{"style":1127},[8006],{"type":854,"value":2458},{"type":849,"tag":1120,"props":8008,"children":8009},{"style":2170},[8010],{"type":854,"value":2463},{"type":849,"tag":1120,"props":8012,"children":8013},{"style":1127},[8014],{"type":854,"value":2468},{"type":849,"tag":1120,"props":8016,"children":8017},{"style":2248},[8018],{"type":854,"value":2473},{"type":849,"tag":1120,"props":8020,"children":8021},{"style":1217},[8022],{"type":854,"value":2478},{"type":849,"tag":1120,"props":8024,"children":8025},{"style":2072},[8026],{"type":854,"value":2483},{"type":849,"tag":1120,"props":8028,"children":8029},{"style":1127},[8030],{"type":854,"value":2367},{"type":849,"tag":1120,"props":8032,"children":8033},{"style":1149},[8034],{"type":854,"value":2492},{"type":849,"tag":1120,"props":8036,"children":8037},{"style":1217},[8038],{"type":854,"value":2497},{"type":849,"tag":1120,"props":8040,"children":8041},{"style":2170},[8042],{"type":854,"value":2372},{"type":849,"tag":1120,"props":8044,"children":8045},{"style":1217},[8046],{"type":854,"value":1736},{"type":849,"tag":1120,"props":8048,"children":8049},{"style":1149},[8050],{"type":854,"value":2510},{"type":849,"tag":1120,"props":8052,"children":8053},{"style":1127},[8054],{"type":854,"value":2515},{"type":854,"value":1132},{"type":849,"tag":1120,"props":8057,"children":8058},{"class":1122,"style":1123},[8059,8063],{"type":849,"tag":1120,"props":8060,"children":8061},{"style":2248},[8062],{"type":854,"value":2524},{"type":849,"tag":1120,"props":8064,"children":8065},{"style":2170},[8066],{"type":854,"value":2411},{"type":854,"value":1132},{"type":849,"tag":1120,"props":8069,"children":8070},{"class":1122,"style":1123},[8071],{"type":849,"tag":1120,"props":8072,"children":8073},{"style":1127},[8074],{"type":854,"value":1736},{"type":854,"value":1132},{"type":849,"tag":1120,"props":8077,"children":8078},{"class":1122,"style":1123},[],{"type":854,"value":1132},{"type":849,"tag":1120,"props":8081,"children":8082},{"class":1122,"style":1123},[8083,8087,8091,8096,8100,8104],{"type":849,"tag":1120,"props":8084,"children":8085},{"style":2248},[8086],{"type":854,"value":2549},{"type":849,"tag":1120,"props":8088,"children":8089},{"style":1217},[8090],{"type":854,"value":2554},{"type":849,"tag":1120,"props":8092,"children":8093},{"style":2408},[8094],{"type":854,"value":8095}," summary",{"type":849,"tag":1120,"props":8097,"children":8098},{"style":1127},[8099],{"type":854,"value":2416},{"type":849,"tag":1120,"props":8101,"children":8102},{"style":2072},[8103],{"type":854,"value":7870},{"type":849,"tag":1120,"props":8105,"children":8106},{"style":1127},[8107],{"type":854,"value":3536},{"type":854,"value":1132},{"type":849,"tag":1120,"props":8110,"children":8111},{"class":1122,"style":1123},[8112,8116,8120,8125,8129,8133,8137],{"type":849,"tag":1120,"props":8113,"children":8114},{"style":2170},[8115],{"type":854,"value":6084},{"type":849,"tag":1120,"props":8117,"children":8118},{"style":1127},[8119],{"type":854,"value":2256},{"type":849,"tag":1120,"props":8121,"children":8122},{"style":2170},[8123],{"type":854,"value":8124},"reportId:",{"type":849,"tag":1120,"props":8126,"children":8127},{"style":2170},[8128],{"type":854,"value":5746},{"type":849,"tag":1120,"props":8130,"children":8131},{"style":1127},[8132],{"type":854,"value":876},{"type":849,"tag":1120,"props":8134,"children":8135},{"style":2072},[8136],{"type":854,"value":2382},{"type":849,"tag":1120,"props":8138,"children":8139},{"style":1127},[8140],{"type":854,"value":8141},"() },",{"type":854,"value":1132},{"type":849,"tag":1120,"props":8144,"children":8145},{"class":1122,"style":1123},[8146,8150,8154,8158,8162,8166,8170,8175,8179,8183],{"type":849,"tag":1120,"props":8147,"children":8148},{"style":2072},[8149],{"type":854,"value":6158},{"type":849,"tag":1120,"props":8151,"children":8152},{"style":2170},[8153],{"type":854,"value":987},{"type":849,"tag":1120,"props":8155,"children":8156},{"style":1217},[8157],{"type":854,"value":6167},{"type":849,"tag":1120,"props":8159,"children":8160},{"style":1127},[8161],{"type":854,"value":3629},{"type":849,"tag":1120,"props":8163,"children":8164},{"style":2170},[8165],{"type":854,"value":6176},{"type":849,"tag":1120,"props":8167,"children":8168},{"style":1127},[8169],{"type":854,"value":6181},{"type":849,"tag":1120,"props":8171,"children":8172},{"style":2170},[8173],{"type":854,"value":8174},"reportId",{"type":849,"tag":1120,"props":8176,"children":8177},{"style":1127},[8178],{"type":854,"value":5214},{"type":849,"tag":1120,"props":8180,"children":8181},{"style":1217},[8182],{"type":854,"value":2622},{"type":849,"tag":1120,"props":8184,"children":8185},{"style":1127},[8186],{"type":854,"value":2396},{"type":854,"value":1132},{"type":849,"tag":1120,"props":8189,"children":8190},{"class":1122,"style":1123},[8191,8195,8199,8204,8208,8212,8216,8220,8225,8229,8233],{"type":849,"tag":1120,"props":8192,"children":8193},{"style":1217},[8194],{"type":854,"value":6214},{"type":849,"tag":1120,"props":8196,"children":8197},{"style":1127},[8198],{"type":854,"value":2256},{"type":849,"tag":1120,"props":8200,"children":8201},{"style":2408},[8202],{"type":854,"value":8203},"accessToken",{"type":849,"tag":1120,"props":8205,"children":8206},{"style":1127},[8207],{"type":854,"value":3193},{"type":849,"tag":1120,"props":8209,"children":8210},{"style":2248},[8211],{"type":854,"value":3508},{"type":849,"tag":1120,"props":8213,"children":8214},{"style":2170},[8215],{"type":854,"value":2559},{"type":849,"tag":1120,"props":8217,"children":8218},{"style":1127},[8219],{"type":854,"value":876},{"type":849,"tag":1120,"props":8221,"children":8222},{"style":2072},[8223],{"type":854,"value":8224},"getOidcAccessToken",{"type":849,"tag":1120,"props":8226,"children":8227},{"style":1127},[8228],{"type":854,"value":2367},{"type":849,"tag":1120,"props":8230,"children":8231},{"style":2170},[8232],{"type":854,"value":6176},{"type":849,"tag":1120,"props":8234,"children":8235},{"style":1127},[8236],{"type":854,"value":2515},{"type":854,"value":1132},{"type":849,"tag":1120,"props":8239,"children":8240},{"class":1122,"style":1123},[8241,8245,8250,8254,8259,8264],{"type":849,"tag":1120,"props":8242,"children":8243},{"style":1217},[8244],{"type":854,"value":6214},{"type":849,"tag":1120,"props":8246,"children":8247},{"style":2408},[8248],{"type":854,"value":8249}," serviceUrl",{"type":849,"tag":1120,"props":8251,"children":8252},{"style":1127},[8253],{"type":854,"value":2416},{"type":849,"tag":1120,"props":8255,"children":8256},{"style":1217},[8257],{"type":854,"value":8258},"new",{"type":849,"tag":1120,"props":8260,"children":8261},{"style":2072},[8262],{"type":854,"value":8263}," URL",{"type":849,"tag":1120,"props":8265,"children":8266},{"style":1127},[8267],{"type":854,"value":2367},{"type":854,"value":1132},{"type":849,"tag":1120,"props":8270,"children":8271},{"class":1122,"style":1123},[8272,8277,8281,8286,8291,8295,8299,8303,8308],{"type":849,"tag":1120,"props":8273,"children":8274},{"style":1149},[8275],{"type":854,"value":8276},"      `\u002Freports\u002F",{"type":849,"tag":1120,"props":8278,"children":8279},{"style":1217},[8280],{"type":854,"value":2497},{"type":849,"tag":1120,"props":8282,"children":8283},{"style":2072},[8284],{"type":854,"value":8285},"encodeURIComponent",{"type":849,"tag":1120,"props":8287,"children":8289},{"style":8288},"color:#000000FF;--shiki-dark:#D4D4D4",[8290],{"type":854,"value":2367},{"type":849,"tag":1120,"props":8292,"children":8293},{"style":2170},[8294],{"type":854,"value":8174},{"type":849,"tag":1120,"props":8296,"children":8297},{"style":8288},[8298],{"type":854,"value":2515},{"type":849,"tag":1120,"props":8300,"children":8301},{"style":1217},[8302],{"type":854,"value":1736},{"type":849,"tag":1120,"props":8304,"children":8305},{"style":1149},[8306],{"type":854,"value":8307},"\u002Fsummary`",{"type":849,"tag":1120,"props":8309,"children":8310},{"style":1127},[8311],{"type":854,"value":1157},{"type":854,"value":1132},{"type":849,"tag":1120,"props":8314,"children":8315},{"class":1122,"style":1123},[8316,8321,8325,8330],{"type":849,"tag":1120,"props":8317,"children":8318},{"style":2072},[8319],{"type":854,"value":8320},"      requireEnv",{"type":849,"tag":1120,"props":8322,"children":8323},{"style":1127},[8324],{"type":854,"value":2367},{"type":849,"tag":1120,"props":8326,"children":8327},{"style":1149},[8328],{"type":854,"value":8329},"'REPORTS_SERVICE_URL'",{"type":849,"tag":1120,"props":8331,"children":8332},{"style":1127},[8333],{"type":854,"value":2654},{"type":854,"value":1132},{"type":849,"tag":1120,"props":8336,"children":8337},{"class":1122,"style":1123},[8338],{"type":849,"tag":1120,"props":8339,"children":8340},{"style":1127},[8341],{"type":854,"value":8342},"    )",{"type":854,"value":1132},{"type":849,"tag":1120,"props":8345,"children":8346},{"class":1122,"style":1123},[8347,8351,8356,8360,8364,8369,8373,8378],{"type":849,"tag":1120,"props":8348,"children":8349},{"style":1217},[8350],{"type":854,"value":6214},{"type":849,"tag":1120,"props":8352,"children":8353},{"style":2408},[8354],{"type":854,"value":8355}," response",{"type":849,"tag":1120,"props":8357,"children":8358},{"style":1127},[8359],{"type":854,"value":2416},{"type":849,"tag":1120,"props":8361,"children":8362},{"style":2248},[8363],{"type":854,"value":3508},{"type":849,"tag":1120,"props":8365,"children":8366},{"style":2072},[8367],{"type":854,"value":8368}," fetch",{"type":849,"tag":1120,"props":8370,"children":8371},{"style":1127},[8372],{"type":854,"value":2367},{"type":849,"tag":1120,"props":8374,"children":8375},{"style":2170},[8376],{"type":854,"value":8377},"serviceUrl",{"type":849,"tag":1120,"props":8379,"children":8380},{"style":1127},[8381],{"type":854,"value":2599},{"type":854,"value":1132},{"type":849,"tag":1120,"props":8384,"children":8385},{"class":1122,"style":1123},[8386,8391,8395,8400,8405,8409,8413,8417,8421],{"type":849,"tag":1120,"props":8387,"children":8388},{"style":2170},[8389],{"type":854,"value":8390},"      headers:",{"type":849,"tag":1120,"props":8392,"children":8393},{"style":1127},[8394],{"type":854,"value":2256},{"type":849,"tag":1120,"props":8396,"children":8397},{"style":2170},[8398],{"type":854,"value":8399},"authorization:",{"type":849,"tag":1120,"props":8401,"children":8402},{"style":1149},[8403],{"type":854,"value":8404}," `Bearer ",{"type":849,"tag":1120,"props":8406,"children":8407},{"style":1217},[8408],{"type":854,"value":2497},{"type":849,"tag":1120,"props":8410,"children":8411},{"style":2170},[8412],{"type":854,"value":8203},{"type":849,"tag":1120,"props":8414,"children":8415},{"style":1217},[8416],{"type":854,"value":1736},{"type":849,"tag":1120,"props":8418,"children":8419},{"style":1149},[8420],{"type":854,"value":2492},{"type":849,"tag":1120,"props":8422,"children":8423},{"style":1127},[8424],{"type":854,"value":8425}," },",{"type":854,"value":1132},{"type":849,"tag":1120,"props":8428,"children":8429},{"class":1122,"style":1123},[8430],{"type":849,"tag":1120,"props":8431,"children":8432},{"style":1127},[8433],{"type":854,"value":8434},"    })",{"type":854,"value":1132},{"type":849,"tag":1120,"props":8437,"children":8438},{"class":1122,"style":1123},[8439,8443,8447,8452,8456,8461,8465,8469,8473,8477,8481,8485,8490],{"type":849,"tag":1120,"props":8440,"children":8441},{"style":2248},[8442],{"type":854,"value":6367},{"type":849,"tag":1120,"props":8444,"children":8445},{"style":1127},[8446],{"type":854,"value":2458},{"type":849,"tag":1120,"props":8448,"children":8449},{"style":2170},[8450],{"type":854,"value":8451},"response",{"type":849,"tag":1120,"props":8453,"children":8454},{"style":1127},[8455],{"type":854,"value":876},{"type":849,"tag":1120,"props":8457,"children":8458},{"style":2170},[8459],{"type":854,"value":8460},"ok",{"type":849,"tag":1120,"props":8462,"children":8463},{"style":1127},[8464],{"type":854,"value":2468},{"type":849,"tag":1120,"props":8466,"children":8467},{"style":2248},[8468],{"type":854,"value":2473},{"type":849,"tag":1120,"props":8470,"children":8471},{"style":1217},[8472],{"type":854,"value":2478},{"type":849,"tag":1120,"props":8474,"children":8475},{"style":2072},[8476],{"type":854,"value":7089},{"type":849,"tag":1120,"props":8478,"children":8479},{"style":1127},[8480],{"type":854,"value":3124},{"type":849,"tag":1120,"props":8482,"children":8483},{"style":2170},[8484],{"type":854,"value":7098},{"type":849,"tag":1120,"props":8486,"children":8487},{"style":1149},[8488],{"type":854,"value":8489}," 'REPORT_UNAVAILABLE'",{"type":849,"tag":1120,"props":8491,"children":8492},{"style":1127},[8493],{"type":854,"value":3139},{"type":854,"value":1132},{"type":849,"tag":1120,"props":8496,"children":8497},{"class":1122,"style":1123},[8498,8502,8507,8512,8516,8520,8524,8528,8533,8538,8542,8547,8552,8557,8562,8567,8571,8575],{"type":849,"tag":1120,"props":8499,"children":8500},{"style":1217},[8501],{"type":854,"value":6214},{"type":849,"tag":1120,"props":8503,"children":8504},{"style":2408},[8505],{"type":854,"value":8506}," body",{"type":849,"tag":1120,"props":8508,"children":8509},{"style":1127},[8510],{"type":854,"value":8511}," = (",{"type":849,"tag":1120,"props":8513,"children":8514},{"style":2248},[8515],{"type":854,"value":3508},{"type":849,"tag":1120,"props":8517,"children":8518},{"style":2170},[8519],{"type":854,"value":8355},{"type":849,"tag":1120,"props":8521,"children":8522},{"style":1127},[8523],{"type":854,"value":876},{"type":849,"tag":1120,"props":8525,"children":8526},{"style":2072},[8527],{"type":854,"value":1111},{"type":849,"tag":1120,"props":8529,"children":8530},{"style":1127},[8531],{"type":854,"value":8532},"()) ",{"type":849,"tag":1120,"props":8534,"children":8535},{"style":2248},[8536],{"type":854,"value":8537},"as",{"type":849,"tag":1120,"props":8539,"children":8540},{"style":1127},[8541],{"type":854,"value":2256},{"type":849,"tag":1120,"props":8543,"children":8544},{"style":2170},[8545],{"type":854,"value":8546},"title",{"type":849,"tag":1120,"props":8548,"children":8549},{"style":1127},[8550],{"type":854,"value":8551},"?: ",{"type":849,"tag":1120,"props":8553,"children":8554},{"style":2379},[8555],{"type":854,"value":8556},"unknown",{"type":849,"tag":1120,"props":8558,"children":8559},{"style":1127},[8560],{"type":854,"value":8561},"; ",{"type":849,"tag":1120,"props":8563,"children":8564},{"style":2170},[8565],{"type":854,"value":8566},"total",{"type":849,"tag":1120,"props":8568,"children":8569},{"style":1127},[8570],{"type":854,"value":8551},{"type":849,"tag":1120,"props":8572,"children":8573},{"style":2379},[8574],{"type":854,"value":8556},{"type":849,"tag":1120,"props":8576,"children":8577},{"style":1127},[8578],{"type":854,"value":8579}," }",{"type":854,"value":1132},{"type":849,"tag":1120,"props":8582,"children":8583},{"class":1122,"style":1123},[8584,8588,8592,8597,8601,8605,8609,8613,8617,8622,8626,8630,8634,8638,8642,8647],{"type":849,"tag":1120,"props":8585,"children":8586},{"style":2248},[8587],{"type":854,"value":6367},{"type":849,"tag":1120,"props":8589,"children":8590},{"style":1127},[8591],{"type":854,"value":3629},{"type":849,"tag":1120,"props":8593,"children":8594},{"style":1217},[8595],{"type":854,"value":8596},"typeof",{"type":849,"tag":1120,"props":8598,"children":8599},{"style":2170},[8600],{"type":854,"value":8506},{"type":849,"tag":1120,"props":8602,"children":8603},{"style":1127},[8604],{"type":854,"value":876},{"type":849,"tag":1120,"props":8606,"children":8607},{"style":2170},[8608],{"type":854,"value":8546},{"type":849,"tag":1120,"props":8610,"children":8611},{"style":1127},[8612],{"type":854,"value":7068},{"type":849,"tag":1120,"props":8614,"children":8615},{"style":1149},[8616],{"type":854,"value":7572},{"type":849,"tag":1120,"props":8618,"children":8619},{"style":1127},[8620],{"type":854,"value":8621}," || ",{"type":849,"tag":1120,"props":8623,"children":8624},{"style":1217},[8625],{"type":854,"value":8596},{"type":849,"tag":1120,"props":8627,"children":8628},{"style":2170},[8629],{"type":854,"value":8506},{"type":849,"tag":1120,"props":8631,"children":8632},{"style":1127},[8633],{"type":854,"value":876},{"type":849,"tag":1120,"props":8635,"children":8636},{"style":2170},[8637],{"type":854,"value":8566},{"type":849,"tag":1120,"props":8639,"children":8640},{"style":1127},[8641],{"type":854,"value":7068},{"type":849,"tag":1120,"props":8643,"children":8644},{"style":1149},[8645],{"type":854,"value":8646},"'number'",{"type":849,"tag":1120,"props":8648,"children":8649},{"style":1127},[8650],{"type":854,"value":3647},{"type":854,"value":1132},{"type":849,"tag":1120,"props":8653,"children":8654},{"class":1122,"style":1123},[8655,8660,8664,8668,8672,8676,8680],{"type":849,"tag":1120,"props":8656,"children":8657},{"style":2248},[8658],{"type":854,"value":8659},"      throw",{"type":849,"tag":1120,"props":8661,"children":8662},{"style":1217},[8663],{"type":854,"value":2478},{"type":849,"tag":1120,"props":8665,"children":8666},{"style":2072},[8667],{"type":854,"value":7089},{"type":849,"tag":1120,"props":8669,"children":8670},{"style":1127},[8671],{"type":854,"value":3124},{"type":849,"tag":1120,"props":8673,"children":8674},{"style":2170},[8675],{"type":854,"value":7098},{"type":849,"tag":1120,"props":8677,"children":8678},{"style":1149},[8679],{"type":854,"value":8489},{"type":849,"tag":1120,"props":8681,"children":8682},{"style":1127},[8683],{"type":854,"value":3139},{"type":854,"value":1132},{"type":849,"tag":1120,"props":8686,"children":8687},{"class":1122,"style":1123},[8688],{"type":849,"tag":1120,"props":8689,"children":8690},{"style":1127},[8691],{"type":854,"value":6486},{"type":854,"value":1132},{"type":849,"tag":1120,"props":8694,"children":8695},{"class":1122,"style":1123},[8696,8700,8704,8709,8713,8717,8721,8725,8730,8734,8738,8742],{"type":849,"tag":1120,"props":8697,"children":8698},{"style":2248},[8699],{"type":854,"value":6741},{"type":849,"tag":1120,"props":8701,"children":8702},{"style":1127},[8703],{"type":854,"value":2256},{"type":849,"tag":1120,"props":8705,"children":8706},{"style":2170},[8707],{"type":854,"value":8708},"title:",{"type":849,"tag":1120,"props":8710,"children":8711},{"style":2170},[8712],{"type":854,"value":8506},{"type":849,"tag":1120,"props":8714,"children":8715},{"style":1127},[8716],{"type":854,"value":876},{"type":849,"tag":1120,"props":8718,"children":8719},{"style":2170},[8720],{"type":854,"value":8546},{"type":849,"tag":1120,"props":8722,"children":8723},{"style":1127},[8724],{"type":854,"value":1086},{"type":849,"tag":1120,"props":8726,"children":8727},{"style":2170},[8728],{"type":854,"value":8729},"total:",{"type":849,"tag":1120,"props":8731,"children":8732},{"style":2170},[8733],{"type":854,"value":8506},{"type":849,"tag":1120,"props":8735,"children":8736},{"style":1127},[8737],{"type":854,"value":876},{"type":849,"tag":1120,"props":8739,"children":8740},{"style":2170},[8741],{"type":854,"value":8566},{"type":849,"tag":1120,"props":8743,"children":8744},{"style":1127},[8745],{"type":854,"value":8579},{"type":854,"value":1132},{"type":849,"tag":1120,"props":8748,"children":8749},{"class":1122,"style":1123},[8750],{"type":849,"tag":1120,"props":8751,"children":8752},{"style":1127},[8753],{"type":854,"value":1646},{"type":854,"value":1132},{"type":849,"tag":1120,"props":8756,"children":8757},{"class":1122,"style":1123},[8758],{"type":849,"tag":1120,"props":8759,"children":8760},{"style":1127},[8761],{"type":854,"value":2724},{"type":849,"tag":850,"props":8763,"children":8764},{},[8765,8767,8771],{"type":854,"value":8766},"The service checks the token's ",{"type":849,"tag":857,"props":8768,"children":8769},{},[8770],{"type":854,"value":1972},{"type":854,"value":8772}," claim and decides what the user may read.",{"type":849,"tag":850,"props":8774,"children":8775},{},[8776,8780],{"type":849,"tag":982,"props":8777,"children":8778},{},[8779],{"type":854,"value":2926},{"type":854,"value":8781}," Never return the access token to the browser or to an MCP client,\nlog it, or pass it to a scheduled function. Scheduled function arguments are\nstored. An MCP tool that needs your service calls it in the action and returns\nonly the result.",{"type":849,"tag":850,"props":8783,"children":8784},{},[8785,8787,8791,8792,8797],{"type":854,"value":8786},"The helper works only in actions. It throws ",{"type":849,"tag":857,"props":8788,"children":8789},{},[8790],{"type":854,"value":5932},{"type":854,"value":2906},{"type":849,"tag":857,"props":8793,"children":8794},{},[8795],{"type":854,"value":8796},"data.code",{"type":854,"value":987},{"type":849,"tag":2737,"props":8799,"children":8800},{},[8801,8820],{"type":849,"tag":2741,"props":8802,"children":8803},{},[8804],{"type":849,"tag":2745,"props":8805,"children":8806},{},[8807,8811,8815],{"type":849,"tag":2749,"props":8808,"children":8809},{},[8810],{"type":854,"value":4782},{"type":849,"tag":2749,"props":8812,"children":8813},{},[8814],{"type":854,"value":2758},{"type":849,"tag":2749,"props":8816,"children":8817},{},[8818],{"type":854,"value":8819},"What to do",{"type":849,"tag":2760,"props":8821,"children":8822},{},[8823,8844,8865,8893],{"type":849,"tag":2745,"props":8824,"children":8825},{},[8826,8834,8839],{"type":849,"tag":2767,"props":8827,"children":8828},{},[8829],{"type":849,"tag":857,"props":8830,"children":8831},{},[8832],{"type":854,"value":8833},"UNAUTHENTICATED",{"type":849,"tag":2767,"props":8835,"children":8836},{},[8837],{"type":854,"value":8838},"No valid session.",{"type":849,"tag":2767,"props":8840,"children":8841},{},[8842],{"type":854,"value":8843},"Send the user to sign-in.",{"type":849,"tag":2745,"props":8845,"children":8846},{},[8847,8855,8860],{"type":849,"tag":2767,"props":8848,"children":8849},{},[8850],{"type":849,"tag":857,"props":8851,"children":8852},{},[8853],{"type":854,"value":8854},"OIDC_ACCOUNT_REQUIRED",{"type":849,"tag":2767,"props":8856,"children":8857},{},[8858],{"type":854,"value":8859},"The user has no IdP account.",{"type":849,"tag":2767,"props":8861,"children":8862},{},[8863],{"type":854,"value":8864},"Ask the user to sign in through the IdP or link it.",{"type":849,"tag":2745,"props":8866,"children":8867},{},[8868,8876,8881],{"type":849,"tag":2767,"props":8869,"children":8870},{},[8871],{"type":849,"tag":857,"props":8872,"children":8873},{},[8874],{"type":854,"value":8875},"OIDC_SIGN_IN_REQUIRED",{"type":849,"tag":2767,"props":8877,"children":8878},{},[8879],{"type":854,"value":8880},"The IdP grant ended (the sessions have ended), or no refresh token is stored and the access token expired (the session is still there).",{"type":849,"tag":2767,"props":8882,"children":8883},{},[8884,8886,8891],{"type":854,"value":8885},"Start the IdP sign-in with ",{"type":849,"tag":857,"props":8887,"children":8888},{},[8889],{"type":854,"value":8890},"client.signIn.social({ provider: 'oidc' })",{"type":854,"value":8892},". Do not send the user to a guest-only sign-in page: it would send a signed-in user away.",{"type":849,"tag":2745,"props":8894,"children":8895},{},[8896,8903,8908],{"type":849,"tag":2767,"props":8897,"children":8898},{},[8899],{"type":849,"tag":857,"props":8900,"children":8901},{},[8902],{"type":854,"value":4019},{"type":849,"tag":2767,"props":8904,"children":8905},{},[8906],{"type":854,"value":8907},"The IdP did not answer in time, or the stored access token cannot be read.",{"type":849,"tag":2767,"props":8909,"children":8910},{},[8911],{"type":854,"value":8912},"Try again later.",{"type":849,"tag":850,"props":8914,"children":8915},{},[8916,8918,8923,8925,8930,8932,8936,8938,8942,8943,8948],{"type":854,"value":8917},"A call from a query or mutation throws ",{"type":849,"tag":857,"props":8919,"children":8920},{},[8921],{"type":854,"value":8922},"TypeError",{"type":854,"value":8924}," with\n",{"type":849,"tag":857,"props":8926,"children":8927},{},[8928],{"type":854,"value":8929},"AUTH_OIDC_ACCESS_TOKEN_REQUIRES_ACTION",{"type":854,"value":8931},". Without the ",{"type":849,"tag":857,"props":8933,"children":8934},{},[8935],{"type":854,"value":861},{"type":854,"value":8937}," option, it throws\n",{"type":849,"tag":857,"props":8939,"children":8940},{},[8941],{"type":854,"value":8922},{"type":854,"value":2906},{"type":849,"tag":857,"props":8944,"children":8945},{},[8946],{"type":854,"value":8947},"AUTH_OIDC_NOT_CONFIGURED",{"type":854,"value":876},{"type":849,"tag":850,"props":8950,"children":8951},{},[8952,8954,8959,8961,8965],{"type":854,"value":8953},"The returned token has more than 60 seconds left. Otherwise the helper\nrefreshes it first. ",{"type":849,"tag":857,"props":8955,"children":8956},{},[8957],{"type":854,"value":8958},"expiresAt",{"type":854,"value":8960}," is at most 15 minutes ahead, also when the IdP\ntoken lives longer, because the app checks the grant at least that often. Only one refresh per user runs at a time, across all\nactions and the Convex session token issue. The IdP access-token lifetime must be at least\n2 minutes. A shorter lifetime makes the helper wait and then fail with\n",{"type":849,"tag":857,"props":8962,"children":8963},{},[8964],{"type":854,"value":4019},{"type":854,"value":876},{"type":849,"tag":850,"props":8967,"children":8968},{},[8969],{"type":854,"value":8970},"Cost of one call:",{"type":849,"tag":895,"props":8972,"children":8973},{},[8974,8979,8984],{"type":849,"tag":899,"props":8975,"children":8976},{},[8977],{"type":854,"value":8978},"one session read in the auth component and one account read;",{"type":849,"tag":899,"props":8980,"children":8981},{},[8982],{"type":854,"value":8983},"when the token needs a refresh: one rate-limit write, one more account read,\none IdP token request, sometimes one IdP key request, and one account write,\nall within 10 seconds;",{"type":849,"tag":899,"props":8985,"children":8986},{},[8987],{"type":854,"value":8988},"while another call refreshes the same token: one account read every\n500 ms, for at most 11 seconds.",{"type":849,"tag":850,"props":8990,"children":8991},{},[8992],{"type":854,"value":8993},"It reads no application tables. When the IdP ended the grant, it deletes the\nuser's sessions, which updates every query that reads them.",{"type":849,"tag":883,"props":8995,"children":8997},{"id":8996},"move-existing-password-users-to-the-idp",[8998],{"type":854,"value":8999},"Move existing password users to the IdP",{"type":849,"tag":850,"props":9001,"children":9002},{},[9003],{"type":854,"value":9004},"A password user with the same email cannot sign in through the IdP until they\nlink it. Linking needs the same email at both sides, and the IdP must mark the\nemail as verified.",{"type":849,"tag":850,"props":9006,"children":9007},{},[9008],{"type":854,"value":9009},"The signed-in user links the IdP from a settings page:",{"type":849,"tag":1109,"props":9011,"children":9012},{"language":2236,"class":1113},[9013],{"type":849,"tag":857,"props":9014,"children":9015},{"class":2241},[9016,9043,9044,9047,9048],{"type":849,"tag":1120,"props":9017,"children":9018},{"class":1122,"style":1123},[9019,9023,9027,9031,9035,9039],{"type":849,"tag":1120,"props":9020,"children":9021},{"style":1217},[9022],{"type":854,"value":3152},{"type":849,"tag":1120,"props":9024,"children":9025},{"style":1127},[9026],{"type":854,"value":2256},{"type":849,"tag":1120,"props":9028,"children":9029},{"style":2408},[9030],{"type":854,"value":3188},{"type":849,"tag":1120,"props":9032,"children":9033},{"style":1127},[9034],{"type":854,"value":3193},{"type":849,"tag":1120,"props":9036,"children":9037},{"style":2072},[9038],{"type":854,"value":3198},{"type":849,"tag":1120,"props":9040,"children":9041},{"style":1127},[9042],{"type":854,"value":3171},{"type":854,"value":1132},{"type":849,"tag":1120,"props":9045,"children":9046},{"class":1122,"style":1123},[],{"type":854,"value":1132},{"type":849,"tag":1120,"props":9049,"children":9050},{"class":1122,"style":1123},[9051,9055,9059,9063,9068,9072,9077,9081,9085,9089,9093],{"type":849,"tag":1120,"props":9052,"children":9053},{"style":2248},[9054],{"type":854,"value":3508},{"type":849,"tag":1120,"props":9056,"children":9057},{"style":2170},[9058],{"type":854,"value":3513},{"type":849,"tag":1120,"props":9060,"children":9061},{"style":1127},[9062],{"type":854,"value":876},{"type":849,"tag":1120,"props":9064,"children":9065},{"style":2072},[9066],{"type":854,"value":9067},"linkSocial",{"type":849,"tag":1120,"props":9069,"children":9070},{"style":1127},[9071],{"type":854,"value":3124},{"type":849,"tag":1120,"props":9073,"children":9074},{"style":2170},[9075],{"type":854,"value":9076},"provider:",{"type":849,"tag":1120,"props":9078,"children":9079},{"style":1149},[9080],{"type":854,"value":3550},{"type":849,"tag":1120,"props":9082,"children":9083},{"style":1127},[9084],{"type":854,"value":1086},{"type":849,"tag":1120,"props":9086,"children":9087},{"style":2170},[9088],{"type":854,"value":4437},{"type":849,"tag":1120,"props":9090,"children":9091},{"style":1149},[9092],{"type":854,"value":4442},{"type":849,"tag":1120,"props":9094,"children":9095},{"style":1127},[9096],{"type":854,"value":3139},{"type":849,"tag":850,"props":9098,"children":9099},{},[9100],{"type":854,"value":9101},"Linking ends all of the user's app sessions, including the current one. Send\nthe user to a page that says \"Your company account is linked. Sign in with it\nfrom now on.\" and offers the IdP sign-in.",{"type":849,"tag":850,"props":9103,"children":9104},{},[9105],{"type":854,"value":9106},"After the link, the user is an IdP-managed user:",{"type":849,"tag":895,"props":9108,"children":9109},{},[9110,9121,9143,9148,9163],{"type":849,"tag":899,"props":9111,"children":9112},{},[9113,9115,9119],{"type":854,"value":9114},"password sign-in, email codes, and other social providers fail with\n",{"type":849,"tag":857,"props":9116,"children":9117},{},[9118],{"type":854,"value":8875},{"type":854,"value":9120}," (403);",{"type":849,"tag":899,"props":9122,"children":9123},{},[9124,9129,9130,9135,9137,9141],{"type":849,"tag":857,"props":9125,"children":9126},{},[9127],{"type":854,"value":9128},"\u002Fchange-password",{"type":854,"value":1754},{"type":849,"tag":857,"props":9131,"children":9132},{},[9133],{"type":854,"value":9134},"\u002Fset-password",{"type":854,"value":9136}," fail with ",{"type":849,"tag":857,"props":9138,"children":9139},{},[9140],{"type":854,"value":8875},{"type":854,"value":9142},"\nbefore anything changes;",{"type":849,"tag":899,"props":9144,"children":9145},{},[9146],{"type":854,"value":9147},"the app sends no password-reset email and no reset code;",{"type":849,"tag":899,"props":9149,"children":9150},{},[9151,9156,9157,9162],{"type":849,"tag":857,"props":9152,"children":9153},{},[9154],{"type":854,"value":9155},"\u002Funlink-account",{"type":854,"value":3004},{"type":849,"tag":857,"props":9158,"children":9159},{},[9160],{"type":854,"value":9161},"OIDC_UNLINK_REFUSED",{"type":854,"value":9120},{"type":849,"tag":899,"props":9164,"children":9165},{},[9166,9168,9173],{"type":854,"value":9167},"linking a second IdP account fails with ",{"type":849,"tag":857,"props":9169,"children":9170},{},[9171],{"type":854,"value":9172},"OIDC_ACCOUNT_CONFLICT",{"type":854,"value":9174}," (403).",{"type":849,"tag":850,"props":9176,"children":9177},{},[9178,9183,9185,9190,9192,9197,9199,9204,9205,9210],{"type":849,"tag":857,"props":9179,"children":9180},{},[9181],{"type":854,"value":9182},"client.linkSocial()",{"type":854,"value":9184}," can also fail with Better Auth's link errors:\n",{"type":849,"tag":857,"props":9186,"children":9187},{},[9188],{"type":854,"value":9189},"email_does_not_match",{"type":854,"value":9191}," (the IdP email differs from the user's email),\n",{"type":849,"tag":857,"props":9193,"children":9194},{},[9195],{"type":854,"value":9196},"email_not_verified",{"type":854,"value":9198}," (the IdP does not mark the email as verified),\n",{"type":849,"tag":857,"props":9200,"children":9201},{},[9202],{"type":854,"value":9203},"account_already_linked_to_different_user",{"type":854,"value":2972},{"type":849,"tag":857,"props":9206,"children":9207},{},[9208],{"type":854,"value":9209},"unable_to_link_account",{"type":854,"value":876},{"type":849,"tag":850,"props":9212,"children":9213},{},[9214],{"type":854,"value":9215},"Move the users in this order:",{"type":849,"tag":989,"props":9217,"children":9218},{},[9219,9249,9254],{"type":849,"tag":899,"props":9220,"children":9221},{},[9222,9224,9228,9230,9235,9237,9242,9244,9248],{"type":854,"value":9223},"Turn on ",{"type":849,"tag":857,"props":9225,"children":9226},{},[9227],{"type":854,"value":861},{"type":854,"value":9229},", and set ",{"type":849,"tag":857,"props":9231,"children":9232},{},[9233],{"type":854,"value":9234},"emailAndPassword.disableSignUp: true",{"type":854,"value":9236}," and\n",{"type":849,"tag":857,"props":9238,"children":9239},{},[9240],{"type":854,"value":9241},"emailOTP.disableSignUp: true",{"type":854,"value":9243},". New sign-ups now come only through the IdP.\nAn open sign-up would let anyone register an employee's address before the\nemployee first signs in through the IdP. The employee would then get\n",{"type":849,"tag":857,"props":9245,"children":9246},{},[9247],{"type":854,"value":2933},{"type":854,"value":876},{"type":849,"tag":899,"props":9250,"children":9251},{},[9252],{"type":854,"value":9253},"Ask users to link the IdP.",{"type":849,"tag":899,"props":9255,"children":9256},{},[9257,9259,9264,9265,9270],{"type":854,"value":9258},"When the last user has linked, turn off ",{"type":849,"tag":857,"props":9260,"children":9261},{},[9262],{"type":854,"value":9263},"emailAndPassword",{"type":854,"value":1754},{"type":849,"tag":857,"props":9266,"children":9267},{},[9268],{"type":854,"value":9269},"emailOTP",{"type":854,"value":876},{"type":849,"tag":850,"props":9272,"children":9273},{},[9274,9276,9280,9282,9286],{"type":854,"value":9275},"If an employee gets ",{"type":849,"tag":857,"props":9277,"children":9278},{},[9279],{"type":854,"value":2933},{"type":854,"value":9281}," but never had an account, somebody\nregistered the address before step 1. Delete that user (see\n",{"type":849,"tag":905,"props":9283,"children":9284},{"href":313},[9285],{"type":854,"value":308},{"type":854,"value":9287},"), and the\nemployee can sign in through the IdP.",{"type":849,"tag":850,"props":9289,"children":9290},{},[9291],{"type":854,"value":9292},"The library does not link users in bulk by email. That would trust an IdP\nemail without proof from the user.",{"type":849,"tag":883,"props":9294,"children":9296},{"id":9295},"local-development",[9297],{"type":854,"value":9298},"Local development",{"type":849,"tag":850,"props":9300,"children":9301},{},[9302],{"type":854,"value":9303},"Choose one of two setups.",{"type":849,"tag":850,"props":9305,"children":9306},{},[9307],{"type":849,"tag":982,"props":9308,"children":9309},{},[9310],{"type":854,"value":9311},"Local Convex deployment and local Keycloak.",{"type":849,"tag":989,"props":9313,"children":9314},{},[9315,9326,9348,9389],{"type":849,"tag":899,"props":9316,"children":9317},{},[9318,9320,9325],{"type":854,"value":9319},"Create a local deployment with ",{"type":849,"tag":857,"props":9321,"children":9322},{},[9323],{"type":854,"value":9324},"pnpm exec better-convex-nuxt convex dev --anonymous",{"type":854,"value":876},{"type":849,"tag":899,"props":9327,"children":9328},{},[9329,9331,9340,9342,9347],{"type":854,"value":9330},"Copy the Keycloak compose file from\n",{"type":849,"tag":905,"props":9332,"children":9334},{"href":9333},"https:\u002F\u002Fgithub.com\u002Flupinum-dev\u002Fbetter-convex\u002Ftree\u002Fmain\u002Ftest\u002Ffixtures\u002Fkeycloak",[9335],{"type":849,"tag":857,"props":9336,"children":9337},{},[9338],{"type":854,"value":9339},"test\u002Ffixtures\u002Fkeycloak",{"type":854,"value":9341},"\nin the repository. Set ",{"type":849,"tag":857,"props":9343,"children":9344},{},[9345],{"type":854,"value":9346},"KC_HOSTNAME=http:\u002F\u002Flocalhost:18080",{"type":854,"value":876},{"type":849,"tag":899,"props":9349,"children":9350},{},[9351,9352,9357,9358,9363,9364,9369,9371,9376,9377,9382,9383,9388],{"type":854,"value":1054},{"type":849,"tag":857,"props":9353,"children":9354},{},[9355],{"type":854,"value":9356},"OIDC_ISSUER",{"type":854,"value":1930},{"type":849,"tag":857,"props":9359,"children":9360},{},[9361],{"type":854,"value":9362},"http:\u002F\u002Flocalhost:18080\u002Frealms\u002F\u003Crealm>",{"type":854,"value":7762},{"type":849,"tag":857,"props":9365,"children":9366},{},[9367],{"type":854,"value":9368},"http",{"type":854,"value":9370}," is\nallowed only for ",{"type":849,"tag":857,"props":9372,"children":9373},{},[9374],{"type":854,"value":9375},"localhost",{"type":854,"value":1086},{"type":849,"tag":857,"props":9378,"children":9379},{},[9380],{"type":854,"value":9381},"127.0.0.1",{"type":854,"value":2972},{"type":849,"tag":857,"props":9384,"children":9385},{},[9386],{"type":854,"value":9387},"[::1]",{"type":854,"value":876},{"type":849,"tag":899,"props":9390,"children":9391},{},[9392,9394,9399,9400,9405,9407,9412,9414,9419,9421,9425,9426,9431],{"type":854,"value":9393},"In the client JSON, use ",{"type":849,"tag":857,"props":9395,"children":9396},{},[9397],{"type":854,"value":9398},"http:\u002F\u002Flocalhost:3000\u002Fapi\u002Fauth\u002Fcallback\u002Foidc",{"type":854,"value":1829},{"type":849,"tag":857,"props":9401,"children":9402},{},[9403],{"type":854,"value":9404},"http:\u002F\u002Flocalhost:3000\u002Fsigned-out",{"type":854,"value":9406},", and the back-channel URL\n",{"type":849,"tag":857,"props":9408,"children":9409},{},[9410],{"type":854,"value":9411},"http:\u002F\u002Fhost.docker.internal:3211\u002Fapi\u002Fauth\u002Foidc\u002Fbackchannel-logout",{"type":854,"value":9413},".\n",{"type":849,"tag":857,"props":9415,"children":9416},{},[9417],{"type":854,"value":9418},"3211",{"type":854,"value":9420}," is the default HTTP actions port of a local deployment; check\n",{"type":849,"tag":857,"props":9422,"children":9423},{},[9424],{"type":854,"value":937},{"type":854,"value":2978},{"type":849,"tag":857,"props":9427,"children":9428},{},[9429],{"type":854,"value":9430},".env.local",{"type":854,"value":876},{"type":849,"tag":850,"props":9433,"children":9434},{},[9435,9440,9442,9446,9448,9452,9454,9459],{"type":849,"tag":982,"props":9436,"children":9437},{},[9438],{"type":854,"value":9439},"Cloud development deployment.",{"type":854,"value":9441}," A cloud deployment cannot reach ",{"type":849,"tag":857,"props":9443,"children":9444},{},[9445],{"type":854,"value":9375},{"type":854,"value":9447},".\nUse an issuer with a reachable ",{"type":849,"tag":857,"props":9449,"children":9450},{},[9451],{"type":854,"value":2884},{"type":854,"value":9453}," URL, for example a tunnel or a shared\ndevelopment realm. Otherwise sign-in fails, and the Convex log shows\n",{"type":849,"tag":857,"props":9455,"children":9456},{},[9457],{"type":854,"value":9458},"AUTH_OIDC_DISCOVERY_FAILED:network",{"type":854,"value":876},{"type":849,"tag":883,"props":9461,"children":9463},{"id":9462},"other-identity-providers",[9464],{"type":854,"value":2846},{"type":849,"tag":850,"props":9466,"children":9467},{},[9468,9469,9473],{"type":854,"value":2729},{"type":849,"tag":857,"props":9470,"children":9471},{},[9472],{"type":854,"value":861},{"type":854,"value":9474}," option works with an IdP that provides:",{"type":849,"tag":895,"props":9476,"children":9477},{},[9478,9483,9488,9510,9528,9533],{"type":849,"tag":899,"props":9479,"children":9480},{},[9481],{"type":854,"value":9482},"an OpenID Connect discovery document;",{"type":849,"tag":899,"props":9484,"children":9485},{},[9486],{"type":854,"value":9487},"ID tokens signed with an asymmetric key (RS, PS, ES, or EdDSA);",{"type":849,"tag":899,"props":9489,"children":9490},{},[9491,9495,9496,9501,9503,9508],{"type":849,"tag":857,"props":9492,"children":9493},{},[9494],{"type":854,"value":1827},{"type":854,"value":1754},{"type":849,"tag":857,"props":9497,"children":9498},{},[9499],{"type":854,"value":9500},"email_verified: true",{"type":854,"value":9502}," in the ID token (on Microsoft Entra ID,\n",{"type":849,"tag":857,"props":9504,"children":9505},{},[9506],{"type":854,"value":9507},"xms_edov: true",{"type":854,"value":9509},");",{"type":849,"tag":899,"props":9511,"children":9512},{},[9513,9515,9520,9522,9527],{"type":854,"value":9514},"client authentication with a client secret (",{"type":849,"tag":857,"props":9516,"children":9517},{},[9518],{"type":854,"value":9519},"client_secret_basic",{"type":854,"value":9521}," or\n",{"type":849,"tag":857,"props":9523,"children":9524},{},[9525],{"type":854,"value":9526},"client_secret_post",{"type":854,"value":9509},{"type":849,"tag":899,"props":9529,"children":9530},{},[9531],{"type":854,"value":9532},"refresh tokens, for the liveness check;",{"type":849,"tag":899,"props":9534,"children":9535},{},[9536],{"type":854,"value":9537},"back-channel logout (optional).",{"type":849,"tag":850,"props":9539,"children":9540},{},[9541],{"type":854,"value":9542},"Only Keycloak is tested by this library. For the others, these are the\nsettings that usually matter. Check them against your IdP's documentation:",{"type":849,"tag":2737,"props":9544,"children":9545},{},[9546,9562],{"type":849,"tag":2741,"props":9547,"children":9548},{},[9549],{"type":849,"tag":2745,"props":9550,"children":9551},{},[9552,9557],{"type":849,"tag":2749,"props":9553,"children":9554},{},[9555],{"type":854,"value":9556},"IdP",{"type":849,"tag":2749,"props":9558,"children":9559},{},[9560],{"type":854,"value":9561},"Settings",{"type":849,"tag":2760,"props":9563,"children":9564},{},[9565,9611,9630,9672],{"type":849,"tag":2745,"props":9566,"children":9567},{},[9568,9573],{"type":849,"tag":2767,"props":9569,"children":9570},{},[9571],{"type":854,"value":9572},"Microsoft Entra ID",{"type":849,"tag":2767,"props":9574,"children":9575},{},[9576,9578,9583,9585,9590,9592,9597,9599,9603,9604,9609],{"type":854,"value":9577},"Issuer ",{"type":849,"tag":857,"props":9579,"children":9580},{},[9581],{"type":854,"value":9582},"https:\u002F\u002Flogin.microsoftonline.com\u002F\u003Ctenant-id>\u002Fv2.0",{"type":854,"value":9584}," (one tenant). ",{"type":849,"tag":857,"props":9586,"children":9587},{},[9588],{"type":854,"value":9589},"scopes: ['offline_access']",{"type":854,"value":9591},", plus ",{"type":849,"tag":857,"props":9593,"children":9594},{},[9595],{"type":854,"value":9596},"api:\u002F\u002F\u003Capp-id>\u002F\u003Cscope>",{"type":854,"value":9598}," for your own services. Add the optional ID-token claims ",{"type":849,"tag":857,"props":9600,"children":9601},{},[9602],{"type":854,"value":1827},{"type":854,"value":1754},{"type":849,"tag":857,"props":9605,"children":9606},{},[9607],{"type":854,"value":9608},"xms_edov",{"type":854,"value":9610},". Entra ID offers front-channel logout only, so only the liveness check applies.",{"type":849,"tag":2745,"props":9612,"children":9613},{},[9614,9619],{"type":849,"tag":2767,"props":9615,"children":9616},{},[9617],{"type":854,"value":9618},"Okta",{"type":849,"tag":2767,"props":9620,"children":9621},{},[9622,9624,9628],{"type":854,"value":9623},"The issuer of the authorization server you use, exactly (org or custom). ",{"type":849,"tag":857,"props":9625,"children":9626},{},[9627],{"type":854,"value":9589},{"type":854,"value":9629},", and allow the refresh token grant for the app.",{"type":849,"tag":2745,"props":9631,"children":9632},{},[9633,9638],{"type":849,"tag":2767,"props":9634,"children":9635},{},[9636],{"type":854,"value":9637},"Google Workspace",{"type":849,"tag":2767,"props":9639,"children":9640},{},[9641,9642,9647,9649,9653,9654,9658,9660,9665,9666,9670],{"type":854,"value":9577},{"type":849,"tag":857,"props":9643,"children":9644},{},[9645],{"type":854,"value":9646},"https:\u002F\u002Faccounts.google.com",{"type":854,"value":9648},". No refresh token, so no liveness check, and ",{"type":849,"tag":857,"props":9650,"children":9651},{},[9652],{"type":854,"value":8224},{"type":854,"value":3004},{"type":849,"tag":857,"props":9655,"children":9656},{},[9657],{"type":854,"value":8875},{"type":854,"value":9659}," after about an hour. Check ",{"type":849,"tag":857,"props":9661,"children":9662},{},[9663],{"type":854,"value":9664},"claims.hd",{"type":854,"value":2978},{"type":849,"tag":857,"props":9667,"children":9668},{},[9669],{"type":854,"value":4230},{"type":854,"value":9671}," to allow only your domain.",{"type":849,"tag":2745,"props":9673,"children":9674},{},[9675,9680],{"type":849,"tag":2767,"props":9676,"children":9677},{},[9678],{"type":854,"value":9679},"Auth0",{"type":849,"tag":2767,"props":9681,"children":9682},{},[9683,9685,9689],{"type":854,"value":9684},"The issuer ends with ",{"type":849,"tag":857,"props":9686,"children":9687},{},[9688],{"type":854,"value":840},{"type":854,"value":9690},". Sign ID tokens with RS256. For your own services, set a default audience for the tenant.",{"type":849,"tag":850,"props":9692,"children":9693},{},[9694,9696,9701,9702,9707,9709,9714],{"type":854,"value":9695},"Not supported: Entra ID with several tenants (",{"type":849,"tag":857,"props":9697,"children":9698},{},[9699],{"type":854,"value":9700},"common",{"type":854,"value":4677},{"type":849,"tag":857,"props":9703,"children":9704},{},[9705],{"type":854,"value":9706},"organizations",{"type":854,"value":9708},"),\nbecause the issuer differs per tenant; client authentication with\n",{"type":849,"tag":857,"props":9710,"children":9711},{},[9712],{"type":854,"value":9713},"private_key_jwt",{"type":854,"value":9715}," or mTLS; SAML; several IdPs at once.",{"title":9717,"searchDepth":9718,"depth":9718,"links":9719},"",4,[9720,9722,9729,9730,9731,9732,9735,9736,9737,9738,9739,9740],{"id":885,"depth":9721,"text":888},2,{"id":960,"depth":9721,"text":963,"children":9723},[9724,9726,9727,9728],{"id":972,"depth":9725,"text":975},3,{"id":1046,"depth":9725,"text":1049},{"id":1071,"depth":9725,"text":1074},{"id":1959,"depth":9725,"text":1962},{"id":2050,"depth":9721,"text":2053},{"id":3039,"depth":9721,"text":3042},{"id":4297,"depth":9721,"text":4300},{"id":4599,"depth":9721,"text":4602,"children":9733},[9734],{"id":4747,"depth":9725,"text":4750},{"id":5003,"depth":9721,"text":5006},{"id":5515,"depth":9721,"text":2869},{"id":7794,"depth":9721,"text":7797},{"id":8996,"depth":9721,"text":8999},{"id":9295,"depth":9721,"text":9298},{"id":9462,"depth":9721,"text":2846},"markdown","docs",{"source":9744,"path":9745,"stem":9746,"dir":9747,"extension":9748},"content","docs\u002F3.build\u002F3.authentication\u002F17.company-sign-in.md","docs\u002F3.build\u002F3.authentication\u002F17.company-sign-in","authentication","md",{"requestedPath":320,"resolvedPath":320,"alternates":9750},[],{"requested":9752,"resolved":9753,"usedFallback":6},{},{"locale":8},{"previous":9755,"next":9757},{"title":308,"id":309,"canonicalKey":310,"locale":8,"draft":6,"navigation":9756,"icon":312,"path":313},{"icon":312},{"title":326,"id":327,"canonicalKey":328,"locale":8,"draft":6,"navigation":9758,"icon":330,"path":331},{"icon":330},{"left":9760,"top":9760,"width":9761,"height":9761,"rotate":9760,"vFlip":6,"hFlip":6,"body":9762},0,24,"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2a2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1m8 0h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1\"\u002F>",{"left":9760,"top":9760,"width":9761,"height":9761,"rotate":9760,"vFlip":6,"hFlip":6,"body":9764},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 19h8M4 17l6-6l-6-6\"\u002F>",{"left":9760,"top":9760,"width":9766,"height":9767,"rotate":9760,"vFlip":6,"hFlip":6,"body":9768},256,221,"\u003Cpath fill=\"#41b883\" d=\"M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0z\"\u002F>\u003Cpath fill=\"#41b883\" d=\"m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0z\"\u002F>\u003Cpath fill=\"#35495e\" d=\"M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0z\"\u002F>",{"left":9760,"top":9760,"width":9766,"height":9766,"rotate":9760,"vFlip":6,"hFlip":6,"body":9770},"\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":9760,"top":9760,"width":9761,"height":9761,"rotate":9760,"vFlip":6,"hFlip":6,"body":9772},"\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>",1794905485689]