[{"data":1,"prerenderedAt":2865},["ShallowReactive",2],{"navigation_docs":3,"-examples-starters-multi-platform":732,"-examples-starters-multi-platform-surround":2860},[4,54,159,535,608,651],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":53},"Get Started","i-lucide-rocket","\u002Fget-started","1.get-started",[10,15,20,24,29,34,39,44,48],{"title":11,"path":12,"stem":13,"icon":14},"Introduction","\u002Fget-started\u002Fintroduction","1.get-started\u002F1.introduction","i-lucide-house",{"title":16,"path":17,"stem":18,"icon":19},"Installation","\u002Fget-started\u002Finstallation","1.get-started\u002F2.installation","i-lucide-download",{"title":21,"path":22,"stem":23},"Project Structure","\u002Fget-started\u002Fproject-structure","1.get-started\u002F3.project-structure",{"title":25,"path":26,"stem":27,"icon":28},"Configuration","\u002Fget-started\u002Fconfiguration","1.get-started\u002F4.configuration","i-lucide-settings",{"title":30,"path":31,"stem":32,"icon":33},"Authentication","\u002Fget-started\u002Fauthentication","1.get-started\u002F5.authentication","i-lucide-lock",{"title":35,"path":36,"stem":37,"icon":38},"Adding modules","\u002Fget-started\u002Fadding-modules","1.get-started\u002F6.adding-modules","i-lucide-puzzle",{"title":40,"path":41,"stem":42,"icon":43},"Database","\u002Fget-started\u002Fdatabase","1.get-started\u002F7.database","i-lucide-database",{"title":45,"path":46,"stem":47,"icon":6},"Deployment","\u002Fget-started\u002Fdeployment","1.get-started\u002F8.deployment",{"title":49,"path":50,"stem":51,"icon":52},"Upgrading","\u002Fget-started\u002Fupgrading","1.get-started\u002F9.upgrading","i-lucide-circle-arrow-up",false,{"title":55,"icon":56,"path":57,"stem":58,"children":59,"page":53},"Guide","i-lucide-book-open","\u002Fguide","2.guide",[60,94,119,129],{"title":61,"icon":53,"path":62,"stem":63,"children":64,"page":53},"Concepts","\u002Fguide\u002Fconcepts","2.guide\u002F1.concepts",[65,70,75,80,84,89],{"title":66,"path":67,"stem":68,"icon":69},"Architecture","\u002Fguide\u002Fconcepts\u002Farchitecture","2.guide\u002F1.concepts\u002F1.architecture","i-lucide-blocks",{"title":71,"path":72,"stem":73,"icon":74},"Access control","\u002Fguide\u002Fconcepts\u002Fauth-and-scopes","2.guide\u002F1.concepts\u002F2.auth-and-scopes","i-lucide-shield-check",{"title":76,"path":77,"stem":78,"icon":79},"Extension points","\u002Fguide\u002Fconcepts\u002Fextension-points","2.guide\u002F1.concepts\u002F3.extension-points","i-lucide-plug",{"title":81,"path":82,"stem":83,"icon":43},"Database extensions","\u002Fguide\u002Fconcepts\u002Fdatabase-extensions","2.guide\u002F1.concepts\u002F4.database-extensions",{"title":85,"path":86,"stem":87,"icon":88},"Identity","\u002Fguide\u002Fconcepts\u002Fidentity","2.guide\u002F1.concepts\u002F5.identity","i-lucide-fingerprint",{"title":90,"path":91,"stem":92,"icon":93},"Glossary","\u002Fguide\u002Fconcepts\u002Fglossary","2.guide\u002F1.concepts\u002F6.glossary","i-lucide-book-a",{"title":95,"icon":53,"path":96,"stem":97,"children":98,"page":53},"UX patterns","\u002Fguide\u002Fux-patterns","2.guide\u002F2.ux-patterns",[99,104,109,114],{"title":100,"path":101,"stem":102,"icon":103},"Layouts and navigation","\u002Fguide\u002Fux-patterns\u002Flayouts-and-navigation","2.guide\u002F2.ux-patterns\u002F1.layouts-and-navigation","i-lucide-layout-template",{"title":105,"path":106,"stem":107,"icon":108},"Pages","\u002Fguide\u002Fux-patterns\u002Fpages","2.guide\u002F2.ux-patterns\u002F2.pages","i-lucide-table",{"title":110,"path":111,"stem":112,"icon":113},"Forms and actions","\u002Fguide\u002Fux-patterns\u002Fforms-and-actions","2.guide\u002F2.ux-patterns\u002F3.forms-and-actions","i-lucide-square-pen",{"title":115,"path":116,"stem":117,"icon":118},"Text and formatting","\u002Fguide\u002Fux-patterns\u002Ftext-and-formatting","2.guide\u002F2.ux-patterns\u002F4.text-and-formatting","i-lucide-type",{"title":120,"icon":53,"path":121,"stem":122,"children":123,"page":53},"Best practices","\u002Fguide\u002Fbest-practices","2.guide\u002F3.best-practices",[124],{"title":125,"path":126,"stem":127,"icon":128},"HTTP routes","\u002Fguide\u002Fbest-practices\u002Fhttp-routes","2.guide\u002F3.best-practices\u002F1.http-routes","i-lucide-route",{"title":130,"icon":53,"path":131,"stem":132,"children":133,"page":53},"Going further","\u002Fguide\u002Fgoing-further","2.guide\u002F4.going-further",[134,139,144,149,154],{"title":135,"path":136,"stem":137,"icon":138},"Use your own OAuth server","\u002Fguide\u002Fgoing-further\u002Fown-oauth-server","2.guide\u002F4.going-further\u002F1.own-oauth-server","i-lucide-key-round",{"title":140,"path":141,"stem":142,"icon":143},"Create an OAuth application","\u002Fguide\u002Fgoing-further\u002Foauth-application","2.guide\u002F4.going-further\u002F2.oauth-application","i-lucide-app-window",{"title":145,"path":146,"stem":147,"icon":148},"Signing keys","\u002Fguide\u002Fgoing-further\u002Fsigning-keys","2.guide\u002F4.going-further\u002F3.signing-keys","i-lucide-key-square",{"title":150,"path":151,"stem":152,"icon":153},"Stripe setup","\u002Fguide\u002Fgoing-further\u002Fstripe-setup","2.guide\u002F4.going-further\u002F4.stripe-setup","i-lucide-credit-card",{"title":155,"path":156,"stem":157,"icon":158},"Migrate to the permission model","\u002Fguide\u002Fgoing-further\u002Fmigrate-access-control","2.guide\u002F4.going-further\u002F5.migrate-access-control","i-lucide-arrow-right-left",{"title":160,"icon":161,"path":162,"stem":163,"children":164},"Modules","i-lucide-boxes","\u002Fmodules","3.modules",[165,167,252,261,290,303,350,396,473,518],{"title":160,"path":162,"stem":166},"3.modules\u002Findex",{"title":85,"icon":53,"path":168,"stem":169,"children":170,"page":53},"\u002Fmodules\u002Fidentity","3.modules\u002F1.identity",[171,198,202,206,228,232,248],{"title":172,"path":173,"stem":174,"children":175},"Auth","\u002Fmodules\u002Fidentity\u002Fauth","3.modules\u002F1.identity\u002F1.auth\u002Findex",[176,178,182,186,190,194],{"title":177,"path":173,"stem":174},"Overview",{"title":179,"path":180,"stem":181},"Server API","\u002Fmodules\u002Fidentity\u002Fauth\u002Fserver","3.modules\u002F1.identity\u002F1.auth\u002F2.server",{"title":183,"path":184,"stem":185},"Reference","\u002Fmodules\u002Fidentity\u002Fauth\u002Freference","3.modules\u002F1.identity\u002F1.auth\u002F3.reference",{"title":187,"path":188,"stem":189},"Client mode","\u002Fmodules\u002Fidentity\u002Fauth\u002Fclient-mode","3.modules\u002F1.identity\u002F1.auth\u002F4.client-mode",{"title":191,"path":192,"stem":193},"OAuth providers","\u002Fmodules\u002Fidentity\u002Fauth\u002Foauth-providers","3.modules\u002F1.identity\u002F1.auth\u002F5.oauth-providers",{"title":195,"path":196,"stem":197},"Resource mode","\u002Fmodules\u002Fidentity\u002Fauth\u002Fresource-mode","3.modules\u002F1.identity\u002F1.auth\u002F6.resource-mode",{"title":199,"path":200,"stem":201},"Users","\u002Fmodules\u002Fidentity\u002Fusers","3.modules\u002F1.identity\u002F2.users",{"title":203,"path":204,"stem":205},"Account","\u002Fmodules\u002Fidentity\u002Faccount","3.modules\u002F1.identity\u002F3.account",{"title":207,"path":208,"stem":209,"children":210},"Authorization","\u002Fmodules\u002Fidentity\u002Fauthorization","3.modules\u002F1.identity\u002F4.authorization\u002Findex",[211,212,216,220,224],{"title":177,"path":208,"stem":209},{"title":213,"path":214,"stem":215},"Roles and requirements","\u002Fmodules\u002Fidentity\u002Fauthorization\u002Froles-and-requirements","3.modules\u002F1.identity\u002F4.authorization\u002F2.roles-and-requirements",{"title":217,"path":218,"stem":219},"Policies","\u002Fmodules\u002Fidentity\u002Fauthorization\u002Fpolicies","3.modules\u002F1.identity\u002F4.authorization\u002F3.policies",{"title":221,"path":222,"stem":223},"Client","\u002Fmodules\u002Fidentity\u002Fauthorization\u002Fclient","3.modules\u002F1.identity\u002F4.authorization\u002F4.client",{"title":225,"path":226,"stem":227},"Admin","\u002Fmodules\u002Fidentity\u002Fauthorization\u002Fadmin","3.modules\u002F1.identity\u002F4.authorization\u002F5.admin",{"title":229,"path":230,"stem":231},"Preferences","\u002Fmodules\u002Fidentity\u002Fpreferences","3.modules\u002F1.identity\u002F5.preferences",{"title":233,"path":234,"stem":235,"children":236},"OAuth Server","\u002Fmodules\u002Fidentity\u002Foauth-server","3.modules\u002F1.identity\u002F6.oauth-server\u002Findex",[237,238,241,245],{"title":177,"path":234,"stem":235},{"title":179,"path":239,"stem":240},"\u002Fmodules\u002Fidentity\u002Foauth-server\u002Fserver","3.modules\u002F1.identity\u002F6.oauth-server\u002F2.server",{"title":242,"path":243,"stem":244},"Hooks","\u002Fmodules\u002Fidentity\u002Foauth-server\u002Fhooks","3.modules\u002F1.identity\u002F6.oauth-server\u002F3.hooks",{"title":183,"path":246,"stem":247},"\u002Fmodules\u002Fidentity\u002Foauth-server\u002Froutes-and-clients","3.modules\u002F1.identity\u002F6.oauth-server\u002F4.routes-and-clients",{"title":249,"path":250,"stem":251},"OAuth Resource","\u002Fmodules\u002Fidentity\u002Foauth-resource","3.modules\u002F1.identity\u002F8.oauth-resource",{"title":253,"icon":53,"path":254,"stem":255,"children":256,"page":53},"Organisation","\u002Fmodules\u002Forganisation","3.modules\u002F2.organisation",[257],{"title":258,"path":259,"stem":260},"Teams","\u002Fmodules\u002Forganisation\u002Fteams","3.modules\u002F2.organisation\u002F1.teams",{"title":262,"icon":53,"path":263,"stem":264,"children":265,"page":53},"Commerce","\u002Fmodules\u002Fcommerce","3.modules\u002F3.commerce",[266,270,274],{"title":267,"path":268,"stem":269},"Stripe","\u002Fmodules\u002Fcommerce\u002Fstripe","3.modules\u002F3.commerce\u002F1.stripe",{"title":271,"path":272,"stem":273},"Payments","\u002Fmodules\u002Fcommerce\u002Fpayments","3.modules\u002F3.commerce\u002F2.payments",{"title":275,"path":276,"stem":277,"children":278},"Subscriptions","\u002Fmodules\u002Fcommerce\u002Fsubscriptions","3.modules\u002F3.commerce\u002F3.subscriptions\u002Findex",[279,280,283,287],{"title":177,"path":276,"stem":277},{"title":179,"path":281,"stem":282},"\u002Fmodules\u002Fcommerce\u002Fsubscriptions\u002Fserver","3.modules\u002F3.commerce\u002F3.subscriptions\u002F2.server",{"title":284,"path":285,"stem":286},"App","\u002Fmodules\u002Fcommerce\u002Fsubscriptions\u002Fapp","3.modules\u002F3.commerce\u002F3.subscriptions\u002F3.app",{"title":183,"path":288,"stem":289},"\u002Fmodules\u002Fcommerce\u002Fsubscriptions\u002Freference","3.modules\u002F3.commerce\u002F3.subscriptions\u002F4.reference",{"title":291,"icon":53,"path":292,"stem":293,"children":294,"page":53},"Content","\u002Fmodules\u002Fcontent","3.modules\u002F4.content",[295,299],{"title":296,"path":297,"stem":298},"Help center","\u002Fmodules\u002Fcontent\u002Fhelp-center","3.modules\u002F4.content\u002F2.help-center",{"title":300,"path":301,"stem":302},"Documents","\u002Fmodules\u002Fcontent\u002Fdocuments","3.modules\u002F4.content\u002F3.documents",{"title":304,"icon":53,"path":305,"stem":306,"children":307,"page":53},"Features","\u002Fmodules\u002Ffeatures","3.modules\u002F5.features",[308,323,342,346],{"title":309,"path":310,"stem":311,"children":312},"Events","\u002Fmodules\u002Ffeatures\u002Fevents","3.modules\u002F5.features\u002F1.events\u002Findex",[313,314,317,320],{"title":177,"path":310,"stem":311},{"title":179,"path":315,"stem":316},"\u002Fmodules\u002Ffeatures\u002Fevents\u002Fserver","3.modules\u002F5.features\u002F1.events\u002F2.server",{"title":284,"path":318,"stem":319},"\u002Fmodules\u002Ffeatures\u002Fevents\u002Fapp","3.modules\u002F5.features\u002F1.events\u002F3.app",{"title":183,"path":321,"stem":322},"\u002Fmodules\u002Ffeatures\u002Fevents\u002Freference","3.modules\u002F5.features\u002F1.events\u002F4.reference",{"title":324,"path":325,"stem":326,"children":327},"Forms","\u002Fmodules\u002Ffeatures\u002Fforms","3.modules\u002F5.features\u002F2.forms\u002Findex",[328,329,333,336,339],{"title":177,"path":325,"stem":326},{"title":330,"path":331,"stem":332},"Definition","\u002Fmodules\u002Ffeatures\u002Fforms\u002Fdefinition","3.modules\u002F5.features\u002F2.forms\u002F2.definition",{"title":179,"path":334,"stem":335},"\u002Fmodules\u002Ffeatures\u002Fforms\u002Fserver","3.modules\u002F5.features\u002F2.forms\u002F3.server",{"title":284,"path":337,"stem":338},"\u002Fmodules\u002Ffeatures\u002Fforms\u002Fapp","3.modules\u002F5.features\u002F2.forms\u002F4.app",{"title":183,"path":340,"stem":341},"\u002Fmodules\u002Ffeatures\u002Fforms\u002Freference","3.modules\u002F5.features\u002F2.forms\u002F5.reference",{"title":343,"path":344,"stem":345},"Cookie Consent","\u002Fmodules\u002Ffeatures\u002Fcookie-consent","3.modules\u002F5.features\u002F3.cookie-consent",{"title":347,"path":348,"stem":349},"MCP","\u002Fmodules\u002Ffeatures\u002Fmcp","3.modules\u002F5.features\u002F4.mcp",{"title":351,"icon":53,"path":352,"stem":353,"children":354,"page":53},"Communication","\u002Fmodules\u002Fcommunication","3.modules\u002F6.communication",[355,359,376,380,384,388,392],{"title":356,"path":357,"stem":358},"Notify","\u002Fmodules\u002Fcommunication\u002Fnotify","3.modules\u002F6.communication\u002F1.notify",{"title":360,"path":361,"stem":362,"children":363},"Email Templates","\u002Fmodules\u002Fcommunication\u002Femail-templates","3.modules\u002F6.communication\u002F2.email-templates\u002Findex",[364,365,369,372],{"title":177,"path":361,"stem":362},{"title":366,"path":367,"stem":368},"Email components","\u002Fmodules\u002Fcommunication\u002Femail-templates\u002Fcomponents","3.modules\u002F6.communication\u002F2.email-templates\u002F2.components",{"title":179,"path":370,"stem":371},"\u002Fmodules\u002Fcommunication\u002Femail-templates\u002Fserver","3.modules\u002F6.communication\u002F2.email-templates\u002F3.server",{"title":373,"path":374,"stem":375},"Module emails","\u002Fmodules\u002Fcommunication\u002Femail-templates\u002Fmodule-emails","3.modules\u002F6.communication\u002F2.email-templates\u002F4.module-emails",{"title":377,"path":378,"stem":379},"Push","\u002Fmodules\u002Fcommunication\u002Fpush","3.modules\u002F6.communication\u002F3.push",{"title":381,"path":382,"stem":383},"Inbox","\u002Fmodules\u002Fcommunication\u002Finbox","3.modules\u002F6.communication\u002F4.inbox",{"title":385,"path":386,"stem":387},"Short links","\u002Fmodules\u002Fcommunication\u002Fshort-links","3.modules\u002F6.communication\u002F5.short-links",{"title":389,"path":390,"stem":391},"Campaigns","\u002Fmodules\u002Fcommunication\u002Fcampaigns","3.modules\u002F6.communication\u002F6.campaigns",{"title":393,"path":394,"stem":395},"SMS","\u002Fmodules\u002Fcommunication\u002Fsms","3.modules\u002F6.communication\u002F7.sms",{"title":397,"icon":53,"path":398,"stem":399,"children":400,"page":53},"Interface","\u002Fmodules\u002Finterface","3.modules\u002F7.interface",[401,426,429,433,437,451,455,469],{"title":402,"path":403,"stem":404,"children":405},"UI","\u002Fmodules\u002Finterface\u002Fui","3.modules\u002F7.interface\u002F1.ui\u002Findex",[406,407,411,415,419,423],{"title":177,"path":403,"stem":404},{"title":408,"path":409,"stem":410},"Page components","\u002Fmodules\u002Finterface\u002Fui\u002Fpage-components","3.modules\u002F7.interface\u002F1.ui\u002F2.page-components",{"title":412,"path":413,"stem":414},"App shell","\u002Fmodules\u002Finterface\u002Fui\u002Fapp-shell","3.modules\u002F7.interface\u002F1.ui\u002F3.app-shell",{"title":416,"path":417,"stem":418},"Form inputs","\u002Fmodules\u002Finterface\u002Fui\u002Fform-inputs","3.modules\u002F7.interface\u002F1.ui\u002F4.form-inputs",{"title":420,"path":421,"stem":422},"Composables and helpers","\u002Fmodules\u002Finterface\u002Fui\u002Fcomposables","3.modules\u002F7.interface\u002F1.ui\u002F5.composables",{"title":183,"path":424,"stem":425},"\u002Fmodules\u002Finterface\u002Fui\u002Freference","3.modules\u002F7.interface\u002F1.ui\u002F6.reference",{"title":225,"path":427,"stem":428},"\u002Fmodules\u002Finterface\u002Fadmin","3.modules\u002F7.interface\u002F2.admin",{"title":430,"path":431,"stem":432},"Menu","\u002Fmodules\u002Finterface\u002Fmenu","3.modules\u002F7.interface\u002F3.menu",{"title":434,"path":435,"stem":436},"Widget","\u002Fmodules\u002Finterface\u002Fwidget","3.modules\u002F7.interface\u002F4.widget",{"title":438,"path":439,"stem":440,"children":441},"Mobile","\u002Fmodules\u002Finterface\u002Fmobile","3.modules\u002F7.interface\u002F5.mobile\u002Findex",[442,443,447],{"title":177,"path":439,"stem":440},{"title":444,"path":445,"stem":446},"CLI and devices","\u002Fmodules\u002Finterface\u002Fmobile\u002Fcli-and-devices","3.modules\u002F7.interface\u002F5.mobile\u002F2.cli-and-devices",{"title":448,"path":449,"stem":450},"Splash screen","\u002Fmodules\u002Finterface\u002Fmobile\u002Fsplash-screen","3.modules\u002F7.interface\u002F5.mobile\u002F3.splash-screen",{"title":452,"path":453,"stem":454},"Dashboard","\u002Fmodules\u002Finterface\u002Fdashboard","3.modules\u002F7.interface\u002F6.dashboard",{"title":456,"path":457,"stem":458,"children":459},"Desktop","\u002Fmodules\u002Finterface\u002Fdesktop","3.modules\u002F7.interface\u002F7.desktop\u002Findex",[460,461,465],{"title":177,"path":457,"stem":458},{"title":462,"path":463,"stem":464},"CLI","\u002Fmodules\u002Finterface\u002Fdesktop\u002Fcli","3.modules\u002F7.interface\u002F7.desktop\u002F2.cli",{"title":466,"path":467,"stem":468},"Local mode","\u002Fmodules\u002Finterface\u002Fdesktop\u002Flocal-mode","3.modules\u002F7.interface\u002F7.desktop\u002F3.local-mode",{"title":470,"path":471,"stem":472},"Maps","\u002Fmodules\u002Finterface\u002Fmaps","3.modules\u002F7.interface\u002F8.maps",{"title":474,"icon":53,"path":475,"stem":476,"children":477,"page":53},"Platform","\u002Fmodules\u002Fplatform","3.modules\u002F8.platform",[478,500],{"title":479,"path":480,"stem":481,"children":482},"Module Kit","\u002Fmodules\u002Fplatform\u002Fmodule-kit","3.modules\u002F8.platform\u002F1.module-kit\u002Findex",[483,484,488,492,496],{"title":177,"path":480,"stem":481},{"title":485,"path":486,"stem":487},"Server toolkit","\u002Fmodules\u002Fplatform\u002Fmodule-kit\u002Fserver-toolkit","3.modules\u002F8.platform\u002F1.module-kit\u002F2.server-toolkit",{"title":489,"path":490,"stem":491},"Registries and menus","\u002Fmodules\u002Fplatform\u002Fmodule-kit\u002Fregistries-and-menus","3.modules\u002F8.platform\u002F1.module-kit\u002F3.registries-and-menus",{"title":493,"path":494,"stem":495},"Translations","\u002Fmodules\u002Fplatform\u002Fmodule-kit\u002Fi18n","3.modules\u002F8.platform\u002F1.module-kit\u002F4.i18n",{"title":497,"path":498,"stem":499},"Database helpers","\u002Fmodules\u002Fplatform\u002Fmodule-kit\u002Fdatabase","3.modules\u002F8.platform\u002F1.module-kit\u002F5.database",{"title":501,"path":502,"stem":503,"children":504},"Base Layer","\u002Fmodules\u002Fplatform\u002Fbase-layer","3.modules\u002F8.platform\u002F2.base-layer\u002Findex",[505,506,510,514],{"title":177,"path":502,"stem":503},{"title":507,"path":508,"stem":509},"Content collections","\u002Fmodules\u002Fplatform\u002Fbase-layer\u002Fcontent-collections","3.modules\u002F8.platform\u002F2.base-layer\u002F2.content-collections",{"title":511,"path":512,"stem":513},"Layouts and routing","\u002Fmodules\u002Fplatform\u002Fbase-layer\u002Flayouts-and-routing","3.modules\u002F8.platform\u002F2.base-layer\u002F3.layouts-and-routing",{"title":515,"path":516,"stem":517},"Composables and utils","\u002Fmodules\u002Fplatform\u002Fbase-layer\u002Fcomposables-and-utils","3.modules\u002F8.platform\u002F2.base-layer\u002F4.composables-and-utils",{"title":519,"icon":53,"path":520,"stem":521,"children":522,"page":53},"Volunteering","\u002Fmodules\u002Fvolunteering","3.modules\u002F9.volunteering",[523,527,531],{"title":524,"path":525,"stem":526},"Operations","\u002Fmodules\u002Fvolunteering\u002Foperations","3.modules\u002F9.volunteering\u002F1.operations",{"title":528,"path":529,"stem":530},"Crew","\u002Fmodules\u002Fvolunteering\u002Fcrew","3.modules\u002F9.volunteering\u002F2.crew",{"title":532,"path":533,"stem":534},"Shifts","\u002Fmodules\u002Fvolunteering\u002Fshifts","3.modules\u002F9.volunteering\u002F3.shifts",{"title":536,"icon":537,"path":538,"stem":539,"children":540,"page":53},"Examples","i-lucide-code-xml","\u002Fexamples","4.examples",[541,570,580],{"title":542,"icon":53,"path":543,"stem":544,"children":545,"page":53},"Starters","\u002Fexamples\u002Fstarters","4.examples\u002F1.starters",[546,550,555,560,565],{"title":547,"path":548,"stem":549},"Workspace","\u002Fexamples\u002Fstarters\u002Fworkspace","4.examples\u002F1.starters\u002F1.workspace",{"title":551,"path":552,"stem":553,"icon":554},"Mobile starter","\u002Fexamples\u002Fstarters\u002Fmobile","4.examples\u002F1.starters\u002F2.mobile","i-lucide-smartphone",{"title":556,"path":557,"stem":558,"icon":559},"Standalone mobile starter","\u002Fexamples\u002Fstarters\u002Fmobile-standalone","4.examples\u002F1.starters\u002F3.mobile-standalone","i-lucide-tablet-smartphone",{"title":561,"path":562,"stem":563,"icon":564},"Desktop starter","\u002Fexamples\u002Fstarters\u002Fdesktop","4.examples\u002F1.starters\u002F4.desktop","i-lucide-monitor",{"title":566,"path":567,"stem":568,"icon":569},"Multi-platform starter","\u002Fexamples\u002Fstarters\u002Fmulti-platform","4.examples\u002F1.starters\u002F5.multi-platform","i-lucide-layers",{"title":571,"icon":53,"path":572,"stem":573,"children":574,"page":53},"Apps","\u002Fexamples\u002Fapps","4.examples\u002F2.apps",[575],{"title":576,"path":577,"stem":578,"icon":579},"Frigear website app","\u002Fexamples\u002Fapps\u002Ffrigear-nu-website","4.examples\u002F2.apps\u002F1.frigear-nu-website","i-lucide-layout-dashboard",{"title":581,"icon":53,"path":582,"stem":583,"children":584,"page":53},"Tasks","\u002Fexamples\u002Ftasks","4.examples\u002F3.tasks",[585,589,593,598,603],{"title":586,"path":587,"stem":588,"icon":74},"Protect a route","\u002Fexamples\u002Ftasks\u002Fprotect-a-route","4.examples\u002F3.tasks\u002F1.protect-a-route",{"title":590,"path":591,"stem":592,"icon":579},"Add an admin page","\u002Fexamples\u002Ftasks\u002Fadd-an-admin-page","4.examples\u002F3.tasks\u002F2.add-an-admin-page",{"title":594,"path":595,"stem":596,"icon":597},"Sell event tickets","\u002Fexamples\u002Ftasks\u002Fsell-event-tickets","4.examples\u002F3.tasks\u002F3.sell-event-tickets","i-lucide-ticket",{"title":599,"path":600,"stem":601,"icon":602},"Build a form","\u002Fexamples\u002Ftasks\u002Fbuild-a-form","4.examples\u002F3.tasks\u002F4.build-a-form","i-lucide-clipboard-list",{"title":604,"path":605,"stem":606,"icon":607},"Send an email","\u002Fexamples\u002Ftasks\u002Fsend-an-email","4.examples\u002F3.tasks\u002F5.send-an-email","i-lucide-mail",{"title":462,"icon":609,"path":610,"stem":611,"children":612,"page":53},"i-lucide-square-terminal","\u002Fcli","5.cli",[613,616,621,625,630,633,638,642,647],{"title":177,"path":614,"stem":615,"icon":609},"\u002Fcli\u002Foverview","5.cli\u002F1.overview",{"title":617,"path":618,"stem":619,"icon":620},"Create a project","\u002Fcli\u002Fcreate-a-project","5.cli\u002F2.create-a-project","i-lucide-folder-plus",{"title":622,"path":623,"stem":624,"icon":569},"Platforms","\u002Fcli\u002Fplatforms","5.cli\u002F3.platforms",{"title":626,"path":627,"stem":628,"icon":629},"Custom platforms","\u002Fcli\u002Fcustom-platforms","5.cli\u002F4.custom-platforms","i-lucide-monitor-cog",{"title":160,"path":631,"stem":632,"icon":161},"\u002Fcli\u002Fmodules","5.cli\u002F5.modules",{"title":634,"path":635,"stem":636,"icon":637},"Refactoring","\u002Fcli\u002Frefactoring","5.cli\u002F6.refactoring","i-lucide-folder-tree",{"title":639,"path":640,"stem":641,"icon":52},"Upgrade","\u002Fcli\u002Fupgrade","5.cli\u002F7.upgrade",{"title":643,"path":644,"stem":645,"icon":646},"From code","\u002Fcli\u002Ffrom-code","5.cli\u002F8.from-code","i-lucide-code",{"title":648,"path":649,"stem":650,"icon":138},"Environment files","\u002Fcli\u002Fenvironment","5.cli\u002F9.environment",{"title":652,"icon":653,"path":654,"stem":655,"children":656,"page":53},"Contribute","i-lucide-git-pull-request","\u002Fcontribute","6.contribute",[657,660,665,691,696,699,703,716],{"title":177,"path":658,"stem":659,"icon":653},"\u002Fcontribute\u002Foverview","6.contribute\u002F1.overview",{"title":661,"path":662,"stem":663,"icon":664},"Local development","\u002Fcontribute\u002Flocal-development","6.contribute\u002F2.local-development","i-lucide-terminal",{"title":666,"icon":53,"path":667,"stem":668,"children":669,"page":53},"Writing a module","\u002Fcontribute\u002Fwriting-a-module","6.contribute\u002F3.writing-a-module",[670,674,679,683,688],{"title":671,"path":672,"stem":673,"icon":38},"Scaffold a module","\u002Fcontribute\u002Fwriting-a-module\u002Fscaffold","6.contribute\u002F3.writing-a-module\u002F1.scaffold",{"title":675,"path":676,"stem":677,"icon":678},"Setup checklist","\u002Fcontribute\u002Fwriting-a-module\u002Fsetup-checklist","6.contribute\u002F3.writing-a-module\u002F2.setup-checklist","i-lucide-list-checks",{"title":680,"path":681,"stem":682,"icon":43},"Database tables","\u002Fcontribute\u002Fwriting-a-module\u002Fdatabase-tables","6.contribute\u002F3.writing-a-module\u002F3.database-tables",{"title":684,"path":685,"stem":686,"icon":687},"Testing","\u002Fcontribute\u002Fwriting-a-module\u002Ftesting","6.contribute\u002F3.writing-a-module\u002F4.testing","i-lucide-flask-conical",{"title":71,"path":689,"stem":690,"icon":74},"\u002Fcontribute\u002Fwriting-a-module\u002Faccess-control","6.contribute\u002F3.writing-a-module\u002F5.access-control",{"title":692,"path":693,"stem":694,"icon":695},"Publishing","\u002Fcontribute\u002Fpublishing","6.contribute\u002F4.publishing","i-lucide-package-check",{"title":542,"path":697,"stem":698,"icon":6},"\u002Fcontribute\u002Fstarters","6.contribute\u002F5.starters",{"title":700,"path":701,"stem":702,"icon":56},"Documentation","\u002Fcontribute\u002Fdocumentation","6.contribute\u002F6.documentation",{"title":704,"icon":53,"path":705,"stem":706,"children":707,"page":53},"Tooling","\u002Fcontribute\u002Ftooling","6.contribute\u002F7.tooling",[708,711],{"title":462,"path":709,"stem":710,"icon":609},"\u002Fcontribute\u002Ftooling\u002Fcli","6.contribute\u002F7.tooling\u002F1.cli",{"title":712,"path":713,"stem":714,"icon":715},"ESLint config","\u002Fcontribute\u002Ftooling\u002Feslint-config","6.contribute\u002F7.tooling\u002F2.eslint-config","i-lucide-spell-check",{"title":717,"icon":53,"path":718,"stem":719,"children":720},"Decisions","\u002Fcontribute\u002Fdecisions","6.contribute\u002F8.decisions\u002Findex",[721,723,728],{"title":717,"path":718,"stem":719,"icon":722},"i-lucide-scale",{"title":724,"path":725,"stem":726,"icon":727},"Session lifetimes per OAuth client","\u002Fcontribute\u002Fdecisions\u002Foauth-token-lifetimes","6.contribute\u002F8.decisions\u002F1.oauth-token-lifetimes","i-lucide-timer",{"title":729,"path":730,"stem":731,"icon":74},"One permission model","\u002Fcontribute\u002Fdecisions\u002Fpermission-model","6.contribute\u002F8.decisions\u002F2.permission-model",{"id":733,"title":566,"body":734,"description":2853,"extension":2854,"links":2855,"meta":2856,"navigation":2857,"path":567,"seo":2858,"stem":568,"__hash__":2859},"docs\u002F4.examples\u002F1.starters\u002F5.multi-platform.md",{"type":735,"value":736,"toc":2837},"minimark",[737,744,777,793,861,942,957,962,974,1040,1044,1075,1187,1221,1321,1325,1337,1368,1372,1419,1435,1440,1476,1495,1499,1511,1539,1545,1581,1591,1603,1607,1760,1764,1779,2253,2325,2336,2609,2619,2637,2647,2651,2694,2698,2701,2713,2722,2726,2739,2809,2813,2833],[738,739,740],"p",{},[741,742,743],"strong",{},"What you'll have afterwards:",[745,746,747,760,767,774],"ul",{},[748,749,750,751,755,756,759],"li",{},"A web app on ",[752,753,754],"code",{},"http:\u002F\u002Flocalhost:3000"," with sign-up, sign-in, account pages and an admin area, signed in with the\n",[752,757,758],{},"admin"," role.",[748,761,762,763,766],{},"A mobile app on ",[752,764,765],{},"http:\u002F\u002Flocalhost:3001",", and on iOS and Android, that signs in at that web app.",[748,768,769,770,773],{},"A desktop app on ",[752,771,772],{},"http:\u002F\u002Flocalhost:3002",", and on macOS, Windows and Linux, that signs in at the same web app, as a\nsingle-page app (SPA) or offline with its own server.",[748,775,776],{},"One account for all three: the web app's users sign in to both apps.",[738,778,779,780,784,785,788,789,792],{},"Use this ",[781,782,783],"a",{"href":91},"starter"," when one product ships on the web, on phones and on the desktop. It is\nthe ",[781,786,787],{"href":557},"standalone mobile starter"," plus the app of the\n",[781,790,791],{"href":562},"desktop starter",", wired together:",[745,794,795,818,840],{},[748,796,797,802,803,806,807,810,811,813,814,817],{},[741,798,799],{},[752,800,801],{},"apps\u002Fweb"," has sign-up and sign-in, a ",[752,804,805],{},"\u002Fdashboard"," users land on, ",[752,808,809],{},"\u002Faccount"," pages and an admin area with user\nmanagement. With ",[781,812,233],{"href":234}," it is also the ",[781,815,816],{"href":91},"issuer","\nand the API of the other two apps.",[748,819,820,825,826,828,829,831,832,835,836,839],{},[741,821,822],{},[752,823,824],{},"apps\u002Fmobile"," is a Capacitor app on ",[781,827,438],{"href":439},". It signs in at ",[752,830,801],{}," with\n",[781,833,834],{"href":188},"Auth in client mode"," and calls ",[752,837,838],{},"\u002Fapi\u002Fme"," with its access token.",[748,841,842,847,848,828,850,852,853,856,857,860],{},[741,843,844],{},[752,845,846],{},"apps\u002Fdesktop"," is a Tauri v2 app on ",[781,849,456],{"href":457},[752,851,801],{}," in either\nmode, picked by ",[752,854,855],{},"DESKTOP_MODE"," in ",[752,858,859],{},"apps\u002Fdesktop\u002F.env",":",[862,863,864,882],"table",{},[865,866,867],"thead",{},[868,869,870,874,877],"tr",{},[871,872,873],"th",{},"Mode",[871,875,876],{},"What ships in the app",[871,878,879,880],{},"Sign-in at ",[752,881,801],{},[883,884,885,909],"tbody",{},[868,886,887,894,900],{},[888,889,890,893],"td",{},[752,891,892],{},"remote"," (default)",[888,895,896,897,899],{},"A static Nuxt 4 SPA that calls ",[752,898,801],{},"'s API",[888,901,902,904,905,908],{},[781,903,834],{"href":188},", client ",[752,906,907],{},"desktop",": the system browser, and the redirect back as a deep link",[868,910,911,916,929],{},[888,912,913],{},[752,914,915],{},"local",[888,917,918,919,921,922,925,926,928],{},"The whole app, with its server, ",[781,920,199],{"href":200}," and SQLite, compiled with Bun into a sidecar on ",[752,923,924],{},"127.0.0.1"," (",[781,927,466],{"href":467},")",[888,930,931,933,934,904,938,941],{},[781,932,172],{"href":173}," in server mode with the ",[781,935,937],{"href":936},"\u002Fmodules\u002Finterface\u002Fdesktop\u002Flocal-mode#sign-in-at-an-issuer-with-server-auth","browser handoff",[752,939,940],{},"desktop-local",", then a cookie session on the app's own server",[943,944,945,946,948,949,952,953,956],"tip",{},"There is nothing to register by hand. ",[752,947,801],{}," reads the client ids and redirect URIs of both apps from\n",[752,950,951],{},"apps\u002Fmobile\u002Fidentity.ts"," and ",[752,954,955],{},"apps\u002Fdesktop\u002Fidentity.ts",".",[958,959,961],"h2",{"id":960},"prerequisites","Prerequisites",[738,963,964,965,969,970,973],{},"The tools in ",[781,966,968],{"href":967},"\u002Fget-started\u002Finstallation#requirements","Requirements",". The native builds need more, but ",[752,971,972],{},"pnpm dev"," runs\nall three apps in a browser without them:",[862,975,976,986],{},[865,977,978],{},[868,979,980,983],{},[871,981,982],{},"Tool",[871,984,985],{},"For",[883,987,988,996,1004,1027],{},[868,989,990,993],{},[888,991,992],{},"Xcode",[888,994,995],{},"iOS: a recent Xcode with an iOS simulator.",[868,997,998,1001],{},[888,999,1000],{},"Android Studio",[888,1002,1003],{},"Android: a Java Development Kit (JDK) and the Android SDK.",[868,1005,1006,1009],{},[888,1007,1008],{},"Rust and your OS's prerequisites",[888,1010,1011,1012,1015,1016,1022,1023,956],{},"The desktop app: ",[752,1013,1014],{},"cargo"," from ",[781,1017,1021],{"href":1018,"rel":1019},"https:\u002F\u002Frustup.rs",[1020],"nofollow","rustup.rs",", and the Xcode Command Line Tools, the C++ Build Tools and WebView2, or WebKitGTK 4.1. See ",[781,1024,1026],{"href":1025},"\u002Fmodules\u002Finterface\u002Fdesktop\u002Fcli#prerequisites","Desktop prerequisites",[868,1028,1029,1032],{},[888,1030,1031],{},"Bun",[888,1033,1034,1035,956],{},"The desktop app's local mode, to compile its server: ",[781,1036,1039],{"href":1037,"rel":1038},"https:\u002F\u002Fbun.sh",[1020],"bun.sh",[958,1041,1043],{"id":1042},"_1-create-the-project","1. Create the project",[738,1045,1046,1047,831,1054,925,1057,1059,1060,1065,1066,1068,1069,952,1072,860],{},"Copy ",[781,1048,1051],{"href":1049,"rel":1050},"https:\u002F\u002Fgithub.com\u002FFrigear-nu\u002Ffrigear-nu\u002Ftree\u002Fmain\u002F.starters\u002Fmulti-platform",[1020],[752,1052,1053],{},".starters\u002Fmulti-platform",[752,1055,1056],{},"pnpm create frigear-app",[781,1058,462],{"href":618},") or with ",[781,1061,1064],{"href":1062,"rel":1063},"https:\u002F\u002Fgithub.com\u002Funjs\u002Fgiget",[1020],"giget",".\n",[752,1067,1056],{}," also runs ",[752,1070,1071],{},"pnpm install",[752,1073,1074],{},"pnpm prepare:env",[1076,1077,1078,1132],"code-group",{},[1079,1080,1086],"pre",{"className":1081,"code":1082,"filename":1083,"language":1084,"meta":1085,"style":1085},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm create frigear-app my-app --platform web,mobile,desktop\ncd my-app\ngit init\n","pnpm create","bash","",[752,1087,1088,1113,1123],{"__ignoreMap":1085},[1089,1090,1093,1097,1101,1104,1107,1110],"span",{"class":1091,"line":1092},"line",1,[1089,1094,1096],{"class":1095},"sBMFI","pnpm",[1089,1098,1100],{"class":1099},"sfazB"," create",[1089,1102,1103],{"class":1099}," frigear-app",[1089,1105,1106],{"class":1099}," my-app",[1089,1108,1109],{"class":1099}," --platform",[1089,1111,1112],{"class":1099}," web,mobile,desktop\n",[1089,1114,1116,1120],{"class":1091,"line":1115},2,[1089,1117,1119],{"class":1118},"s2Zo4","cd",[1089,1121,1122],{"class":1099}," my-app\n",[1089,1124,1126,1129],{"class":1091,"line":1125},3,[1089,1127,1128],{"class":1095},"git",[1089,1130,1131],{"class":1099}," init\n",[1079,1133,1135],{"className":1081,"code":1134,"filename":1064,"language":1084,"meta":1085,"style":1085},"pnpx giget@latest gh:Frigear-nu\u002Ffrigear-nu\u002F.starters\u002Fmulti-platform my-app\ncd my-app\ngit init\ncorepack enable\npnpm install\npnpm prepare:env\n",[752,1136,1137,1150,1156,1162,1171,1179],{"__ignoreMap":1085},[1089,1138,1139,1142,1145,1148],{"class":1091,"line":1092},[1089,1140,1141],{"class":1095},"pnpx",[1089,1143,1144],{"class":1099}," giget@latest",[1089,1146,1147],{"class":1099}," gh:Frigear-nu\u002Ffrigear-nu\u002F.starters\u002Fmulti-platform",[1089,1149,1122],{"class":1099},[1089,1151,1152,1154],{"class":1091,"line":1115},[1089,1153,1119],{"class":1118},[1089,1155,1122],{"class":1099},[1089,1157,1158,1160],{"class":1091,"line":1125},[1089,1159,1128],{"class":1095},[1089,1161,1131],{"class":1099},[1089,1163,1165,1168],{"class":1091,"line":1164},4,[1089,1166,1167],{"class":1095},"corepack",[1089,1169,1170],{"class":1099}," enable\n",[1089,1172,1174,1176],{"class":1091,"line":1173},5,[1089,1175,1096],{"class":1095},[1089,1177,1178],{"class":1099}," install\n",[1089,1180,1182,1184],{"class":1091,"line":1181},6,[1089,1183,1096],{"class":1095},[1089,1185,1186],{"class":1099}," prepare:env\n",[738,1188,1189,1191,1192,1195,1196,1199,1200,1203,1204,952,1206,1208,1209,1212,1213,1215,1216,1218,1219,860],{},[752,1190,1074],{}," creates the ",[752,1193,1194],{},".env"," of each app from its ",[752,1197,1198],{},".env.example",". It generates ",[752,1201,1202],{},"NUXT_APP_SECRET"," for\n",[752,1205,801],{},[752,1207,846],{},", and the OAuth signing key ",[752,1210,1211],{},"NUXT_OAUTH_SERVER_PRIVATE_KEY"," for ",[752,1214,801],{},". It never\noverwrites a value. The other values already point at ",[752,1217,801],{}," on ",[752,1220,754],{},[862,1222,1223,1235],{},[865,1224,1225],{},[868,1226,1227,1230,1232],{},[871,1228,1229],{},"Variable",[871,1231,284],{},[871,1233,1234],{},"What it is",[883,1236,1237,1250,1269,1284,1299],{},[868,1238,1239,1244,1247],{},[888,1240,1241],{},[752,1242,1243],{},"NUXT_ACL_ADMINS",[888,1245,1246],{},"web",[888,1248,1249],{},"Comma separated emails that are always admins, once verified. Put yours here.",[868,1251,1252,1261,1264],{},[888,1253,1254,1257,1258],{},[752,1255,1256],{},"NUXT_PUBLIC_AUTHENTICATION_CLIENT_ISSUER",", ",[752,1259,1260],{},"_API_BASE",[888,1262,1263],{},"mobile, desktop (remote)",[888,1265,1266,1267,956],{},"The issuer and the API: ",[752,1268,754],{},[868,1270,1271,1275,1277],{},[888,1272,1273],{},[752,1274,855],{},[888,1276,907],{},[888,1278,1279,1281,1282,956],{},[752,1280,892],{}," (the example's value) or ",[752,1283,915],{},[868,1285,1286,1291,1294],{},[888,1287,1288],{},[752,1289,1290],{},"NUXT_FRIGEAR_SSO_URL",[888,1292,1293],{},"desktop (local)",[888,1295,1296,1297,956],{},"The issuer of the browser handoff: ",[752,1298,754],{},[868,1300,1301,1306,1308],{},[888,1302,1303],{},[752,1304,1305],{},"NUXT_FRIGEAR_SSO_CLIENT_ID",[888,1307,1293],{},[888,1309,1310,1311,1314,1315,925,1318,1320],{},"Optional. Overrides ",[752,1312,1313],{},"localClientId"," of ",[752,1316,1317],{},"identity.ts",[752,1319,940],{},"). No secret.",[958,1322,1324],{"id":1323},"_2-run-the-apps","2. Run the apps",[1079,1326,1328],{"className":1081,"code":1327,"language":1084,"meta":1085,"style":1085},"pnpm dev\n",[752,1329,1330],{"__ignoreMap":1085},[1089,1331,1332,1334],{"class":1091,"line":1092},[1089,1333,1096],{"class":1095},[1089,1335,1336],{"class":1099}," dev\n",[738,1338,1339,1340,1218,1342,1257,1344,1218,1346,952,1348,1350,1351,1353,1354,952,1357,1360,1361,1363,1364,1367],{},"It starts ",[752,1341,801],{},[752,1343,754],{},[752,1345,824],{},[752,1347,765],{},[752,1349,846],{}," on\n",[752,1352,772],{},". ",[752,1355,1356],{},"pnpm dev:mobile",[752,1358,1359],{},"pnpm dev:desktop"," start ",[752,1362,801],{}," with one of the apps, and\n",[752,1365,1366],{},"pnpm dev:web"," starts it alone.",[958,1369,1371],{"id":1370},"_3-sign-in-on-each-app","3. Sign in on each app",[1373,1374,1375,1391,1407],"ol",{},[748,1376,1377,1378,1380,1381,1384,1385,1387,1388,956],{},"Open ",[752,1379,754],{},", choose ",[741,1382,1383],{},"Create account"," and register with the email from ",[752,1386,1243],{},". Open the\nverification link printed in the terminal and press ",[741,1389,1390],{},"Continue",[748,1392,1377,1393,1395,1396,1399,1400,1402,1403,1406],{},[752,1394,765],{},", the mobile app. ",[741,1397,1398],{},"Sign in"," goes to ",[752,1401,801],{},", asks for consent and comes back\nsigned in. To run it on a simulator, an iPhone or Android, follow the\n",[781,1404,787],{"href":1405},"\u002Fexamples\u002Fstarters\u002Fmobile-standalone#_4-run-it-on-the-ios-simulator",": the commands are\nthe same.",[748,1408,1377,1409,1411,1412,1399,1414,1416,1417,956],{},[752,1410,772],{},", the desktop app. ",[741,1413,1398],{},[752,1415,801],{}," the same way, as the client ",[752,1418,907],{},[1420,1421,1424,1427,1428,1430,1431,1434],"callout",{"color":1422,"icon":1423},"success","i-lucide-check",[741,1425,1426],{},"What you should see:"," both apps show your account from ",[752,1429,801],{}," and the result of ",[752,1432,1433],{},"GET \u002Fapi\u002Fme",", called with\ntheir access token.",[1436,1437,1439],"h3",{"id":1438},"the-desktop-app-in-a-window","The desktop app in a window",[1079,1441,1443],{"className":1081,"code":1442,"language":1084,"meta":1085,"style":1085},"pnpm desktop:setup    # installs Rust and Bun if missing, creates apps\u002Fdesktop\u002Fsrc-tauri\u002F\npnpm dev:web          # in one terminal\npnpm desktop:dev      # in another: the desktop app in a Tauri window\n",[752,1444,1445,1456,1466],{"__ignoreMap":1085},[1089,1446,1447,1449,1452],{"class":1091,"line":1092},[1089,1448,1096],{"class":1095},[1089,1450,1451],{"class":1099}," desktop:setup",[1089,1453,1455],{"class":1454},"sHwdD","    # installs Rust and Bun if missing, creates apps\u002Fdesktop\u002Fsrc-tauri\u002F\n",[1089,1457,1458,1460,1463],{"class":1091,"line":1115},[1089,1459,1096],{"class":1095},[1089,1461,1462],{"class":1099}," dev:web",[1089,1464,1465],{"class":1454},"          # in one terminal\n",[1089,1467,1468,1470,1473],{"class":1091,"line":1125},[1089,1469,1096],{"class":1095},[1089,1471,1472],{"class":1099}," desktop:dev",[1089,1474,1475],{"class":1454},"      # in another: the desktop app in a Tauri window\n",[738,1477,1478,1479,1482,1483,1486,1487,1490,1491,1494],{},"Under ",[752,1480,1481],{},"desktop:dev"," the window loads the dev server, so the sign-in is a redirect inside the window. A built app\n(",[752,1484,1485],{},"pnpm desktop:build",") opens the system browser instead and gets the redirect back as a deep link. The\n",[781,1488,791],{"href":1489},"\u002Fexamples\u002Fstarters\u002Fdesktop#_2-create-the-tauri-project"," explains ",[752,1492,1493],{},"src-tauri\u002F",", the installers and\nthe icons.",[1436,1496,1498],{"id":1497},"the-desktop-app-in-local-mode","The desktop app in local mode",[738,1500,1501,1502,856,1505,1507,1508,1510],{},"Set ",[752,1503,1504],{},"DESKTOP_MODE=local",[752,1506,859],{},", recreate the Tauri project for that mode, and start ",[752,1509,801],{}," with\nthe desktop app:",[1079,1512,1514],{"className":1081,"code":1513,"language":1084,"meta":1085,"style":1085},"pnpm desktop:init --force   # overwrites the files init creates, src\u002Flib.rs included\npnpm dev:desktop            # or pnpm dev:web, then pnpm desktop:dev for the window\n",[752,1515,1516,1529],{"__ignoreMap":1085},[1089,1517,1518,1520,1523,1526],{"class":1091,"line":1092},[1089,1519,1096],{"class":1095},[1089,1521,1522],{"class":1099}," desktop:init",[1089,1524,1525],{"class":1099}," --force",[1089,1527,1528],{"class":1454},"   # overwrites the files init creates, src\u002Flib.rs included\n",[1089,1530,1531,1533,1536],{"class":1091,"line":1115},[1089,1532,1096],{"class":1095},[1089,1534,1535],{"class":1099}," dev:desktop",[1089,1537,1538],{"class":1454},"            # or pnpm dev:web, then pnpm desktop:dev for the window\n",[738,1540,1541,1542,860],{},"The desktop app now runs its own server with its own SQLite database. Its sign-in page has one button, ",[741,1543,1544],{},"Sign in with\nyour Example account",[1373,1546,1547,1555,1558,1578],{},[748,1548,1549,1550,1552,1553,956],{},"The app's server starts a handoff attempt and answers ",[752,1551,801],{},"'s authorize URL for the client ",[752,1554,940],{},[748,1556,1557],{},"That URL opens outside the window: in the system browser from a Tauri window, in a new tab from a browser.",[748,1559,1560,1561,1563,1564,925,1567,1570,1571,1574,1575,956],{},"You sign in at ",[752,1562,801],{}," there (passkeys work), allow the app, and the browser comes back to the app's server on\n",[752,1565,1566],{},"http:\u002F\u002F127.0.0.1:\u003Cport>\u002Fauth\u002Ffrigear",[752,1568,1569],{},"http:\u002F\u002Flocalhost:3002\u002Fauth\u002Ffrigear"," under ",[752,1572,1573],{},"nuxt dev","). The page says\n",[741,1576,1577],{},"Signed in",[748,1579,1580],{},"The window, which polled the attempt meanwhile, collects its cookie session.",[738,1582,1583,1584,1586,1587,1590],{},"The first sign-in creates the local user from ",[752,1585,801],{},"'s verified email. After that the app works offline until the\nsession ends. There are no local passwords or registration (",[752,1588,1589],{},"authentication.settings.password: false",").",[1420,1592,1593,1595,1596,1599,1600,1602],{"color":1422,"icon":1423},[741,1594,1426],{}," ",[741,1597,1598],{},"Home"," says it runs in local mode, and ",[752,1601,1433],{}," answers from the app's own server\nwith your account.",[958,1604,1606],{"id":1605},"what-is-in-the-starter","What is in the starter",[862,1608,1609,1619],{},[865,1610,1611],{},[868,1612,1613,1616],{},[871,1614,1615],{},"Path",[871,1617,1618],{},"What it does",[883,1620,1621,1667,1680,1698,1711,1728,1744],{},[868,1622,1623,1628],{},[888,1624,1625],{},[752,1626,1627],{},"package.json",[888,1629,1630,1631,1257,1634,1257,1637,1257,1640,1257,1643,1257,1646,1257,1649,1257,1652,1257,1655,1257,1658,1257,1661,952,1664,956],{},"Root scripts: ",[752,1632,1633],{},"dev",[752,1635,1636],{},"dev:*",[752,1638,1639],{},"build",[752,1641,1642],{},"build:local",[752,1644,1645],{},"lint",[752,1647,1648],{},"typecheck",[752,1650,1651],{},"typecheck:local",[752,1653,1654],{},"test",[752,1656,1657],{},"prepare:env",[752,1659,1660],{},"db:*",[752,1662,1663],{},"mobile:*",[752,1665,1666],{},"desktop:*",[868,1668,1669,1677],{},[888,1670,1671,1257,1674],{},[752,1672,1673],{},"AGENTS.md",[752,1675,1676],{},"apps\u002F*\u002FAGENTS.md",[888,1678,1679],{},"Conventions for you and your coding agents.",[868,1681,1682,1687],{},[888,1683,1684],{},[752,1685,1686],{},"apps\u002Fweb\u002F",[888,1688,1689,1690,1694,1695,956],{},"The ",[781,1691,1693],{"href":1692},"\u002Fexamples\u002Fstarters\u002Fmobile-standalone#what-is-in-the-starter","standalone mobile starter's"," web app, plus the desktop clients in ",[752,1696,1697],{},"nuxt.config.ts",[868,1699,1700,1705],{},[888,1701,1702],{},[752,1703,1704],{},"apps\u002Fmobile\u002F",[888,1706,1689,1707,1710],{},[781,1708,1709],{"href":552},"mobile starter's"," app, unchanged.",[868,1712,1713,1718],{},[888,1714,1715],{},[752,1716,1717],{},"apps\u002Fdesktop\u002F",[888,1719,1689,1720,1724,1725,1727],{},[781,1721,1723],{"href":1722},"\u002Fexamples\u002Fstarters\u002Fdesktop#what-is-in-the-starter","desktop starter's"," app, signing in at ",[752,1726,801],{}," in both modes.",[868,1729,1730,1734],{},[888,1731,1732],{},[752,1733,955],{},[888,1735,1736,1737,1740,1741,956],{},"App id, name, both client ids, redirect URIs, dev port ",[752,1738,1739],{},"3002"," and scopes. Exported as ",[752,1742,1743],{},"@workspace\u002Fdesktop\u002Fidentity",[868,1745,1746,1754],{},[888,1747,1748,1257,1751],{},[752,1749,1750],{},"apps\u002Fweb\u002Fserver\u002Fdb\u002Fmigrations\u002F",[752,1752,1753],{},"apps\u002Fdesktop\u002Fserver\u002Fdb\u002Fmigrations\u002F",[888,1755,1756,1757,1759],{},"The SQLite migrations of ",[752,1758,801],{}," and of the desktop app's local mode.",[1436,1761,1763],{"id":1762},"how-the-apps-fit-together","How the apps fit together",[738,1765,1766,1768,1769,952,1772,1775,1776,1778],{},[752,1767,801],{}," depends on ",[752,1770,1771],{},"@workspace\u002Fmobile",[752,1773,1774],{},"@workspace\u002Fdesktop"," to read their ",[752,1777,1317],{},", and registers one\nconfigured client for the mobile app and two for the desktop app:",[1079,1780,1785],{"className":1781,"code":1782,"filename":1783,"language":1784,"meta":1085,"style":1085},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import * as desktop from '@workspace\u002Fdesktop\u002Fidentity'\nimport { appName, clientId, devRedirectUri, nativeRedirectUri } from '@workspace\u002Fmobile\u002Fidentity'\n\nexport default defineNuxtConfig({\n  oauthServer: {\n    cors: {\n      origins: ['capacitor:\u002F\u002Flocalhost', 'https:\u002F\u002Flocalhost', ...desktop.webviewOrigins],\n      paths: ['\u002Fapi\u002F'],\n    },\n    clients: [{\n      id: clientId, \u002F\u002F 'mobile'\n      name: appName,\n      redirectUris: [nativeRedirectUri],\n      devRedirectUris: [devRedirectUri],\n    }, {\n      id: desktop.clientId, \u002F\u002F 'desktop', remote mode\n      name: `${desktop.appName} (desktop)`,\n      redirectUris: [desktop.nativeRedirectUri], \u002F\u002F 'com.example.desk:\u002Fauth\u002Fcallback'\n      devRedirectUris: [desktop.devRedirectUri], \u002F\u002F 'http:\u002F\u002Flocalhost:3002\u002Fauth\u002Fcallback'\n    }, {\n      id: desktop.localClientId, \u002F\u002F 'desktop-local', local mode\n      name: `${desktop.appName} (desktop, local mode)`,\n      redirectUris: [desktop.loopbackRedirectUri], \u002F\u002F 'http:\u002F\u002F127.0.0.1\u002Fauth\u002Ffrigear', on any port\n      devRedirectUris: [desktop.localDevRedirectUri], \u002F\u002F 'http:\u002F\u002Flocalhost:3002\u002Fauth\u002Ffrigear'\n      corsOrigins: false,\n    }],\n  },\n})\n","apps\u002Fweb\u002Fnuxt.config.ts","ts",[752,1786,1787,1815,1854,1860,1877,1888,1897,1940,1962,1968,1980,1995,2007,2020,2033,2041,2061,2089,2109,2128,2135,2153,2177,2196,2215,2229,2239,2245],{"__ignoreMap":1085},[1089,1788,1789,1793,1797,1800,1804,1807,1810,1812],{"class":1091,"line":1092},[1089,1790,1792],{"class":1791},"s7zQu","import",[1089,1794,1796],{"class":1795},"sMK4o"," *",[1089,1798,1799],{"class":1791}," as",[1089,1801,1803],{"class":1802},"sTEyZ"," desktop ",[1089,1805,1806],{"class":1791},"from",[1089,1808,1809],{"class":1795}," '",[1089,1811,1743],{"class":1099},[1089,1813,1814],{"class":1795},"'\n",[1089,1816,1817,1819,1822,1825,1828,1831,1833,1836,1838,1841,1844,1847,1849,1852],{"class":1091,"line":1115},[1089,1818,1792],{"class":1791},[1089,1820,1821],{"class":1795}," {",[1089,1823,1824],{"class":1802}," appName",[1089,1826,1827],{"class":1795},",",[1089,1829,1830],{"class":1802}," clientId",[1089,1832,1827],{"class":1795},[1089,1834,1835],{"class":1802}," devRedirectUri",[1089,1837,1827],{"class":1795},[1089,1839,1840],{"class":1802}," nativeRedirectUri",[1089,1842,1843],{"class":1795}," }",[1089,1845,1846],{"class":1791}," from",[1089,1848,1809],{"class":1795},[1089,1850,1851],{"class":1099},"@workspace\u002Fmobile\u002Fidentity",[1089,1853,1814],{"class":1795},[1089,1855,1856],{"class":1091,"line":1125},[1089,1857,1859],{"emptyLinePlaceholder":1858},true,"\n",[1089,1861,1862,1865,1868,1871,1874],{"class":1091,"line":1164},[1089,1863,1864],{"class":1791},"export",[1089,1866,1867],{"class":1791}," default",[1089,1869,1870],{"class":1118}," defineNuxtConfig",[1089,1872,1873],{"class":1802},"(",[1089,1875,1876],{"class":1795},"{\n",[1089,1878,1879,1883,1885],{"class":1091,"line":1173},[1089,1880,1882],{"class":1881},"swJcz","  oauthServer",[1089,1884,860],{"class":1795},[1089,1886,1887],{"class":1795}," {\n",[1089,1889,1890,1893,1895],{"class":1091,"line":1181},[1089,1891,1892],{"class":1881},"    cors",[1089,1894,860],{"class":1795},[1089,1896,1887],{"class":1795},[1089,1898,1900,1903,1905,1908,1911,1914,1916,1918,1920,1923,1925,1927,1930,1932,1934,1937],{"class":1091,"line":1899},7,[1089,1901,1902],{"class":1881},"      origins",[1089,1904,860],{"class":1795},[1089,1906,1907],{"class":1802}," [",[1089,1909,1910],{"class":1795},"'",[1089,1912,1913],{"class":1099},"capacitor:\u002F\u002Flocalhost",[1089,1915,1910],{"class":1795},[1089,1917,1827],{"class":1795},[1089,1919,1809],{"class":1795},[1089,1921,1922],{"class":1099},"https:\u002F\u002Flocalhost",[1089,1924,1910],{"class":1795},[1089,1926,1827],{"class":1795},[1089,1928,1929],{"class":1795}," ...",[1089,1931,907],{"class":1802},[1089,1933,956],{"class":1795},[1089,1935,1936],{"class":1802},"webviewOrigins]",[1089,1938,1939],{"class":1795},",\n",[1089,1941,1943,1946,1948,1950,1952,1955,1957,1960],{"class":1091,"line":1942},8,[1089,1944,1945],{"class":1881},"      paths",[1089,1947,860],{"class":1795},[1089,1949,1907],{"class":1802},[1089,1951,1910],{"class":1795},[1089,1953,1954],{"class":1099},"\u002Fapi\u002F",[1089,1956,1910],{"class":1795},[1089,1958,1959],{"class":1802},"]",[1089,1961,1939],{"class":1795},[1089,1963,1965],{"class":1091,"line":1964},9,[1089,1966,1967],{"class":1795},"    },\n",[1089,1969,1971,1974,1976,1978],{"class":1091,"line":1970},10,[1089,1972,1973],{"class":1881},"    clients",[1089,1975,860],{"class":1795},[1089,1977,1907],{"class":1802},[1089,1979,1876],{"class":1795},[1089,1981,1983,1986,1988,1990,1992],{"class":1091,"line":1982},11,[1089,1984,1985],{"class":1881},"      id",[1089,1987,860],{"class":1795},[1089,1989,1830],{"class":1802},[1089,1991,1827],{"class":1795},[1089,1993,1994],{"class":1454}," \u002F\u002F 'mobile'\n",[1089,1996,1998,2001,2003,2005],{"class":1091,"line":1997},12,[1089,1999,2000],{"class":1881},"      name",[1089,2002,860],{"class":1795},[1089,2004,1824],{"class":1802},[1089,2006,1939],{"class":1795},[1089,2008,2010,2013,2015,2018],{"class":1091,"line":2009},13,[1089,2011,2012],{"class":1881},"      redirectUris",[1089,2014,860],{"class":1795},[1089,2016,2017],{"class":1802}," [nativeRedirectUri]",[1089,2019,1939],{"class":1795},[1089,2021,2023,2026,2028,2031],{"class":1091,"line":2022},14,[1089,2024,2025],{"class":1881},"      devRedirectUris",[1089,2027,860],{"class":1795},[1089,2029,2030],{"class":1802}," [devRedirectUri]",[1089,2032,1939],{"class":1795},[1089,2034,2036,2039],{"class":1091,"line":2035},15,[1089,2037,2038],{"class":1795},"    },",[1089,2040,1887],{"class":1795},[1089,2042,2044,2046,2048,2051,2053,2056,2058],{"class":1091,"line":2043},16,[1089,2045,1985],{"class":1881},[1089,2047,860],{"class":1795},[1089,2049,2050],{"class":1802}," desktop",[1089,2052,956],{"class":1795},[1089,2054,2055],{"class":1802},"clientId",[1089,2057,1827],{"class":1795},[1089,2059,2060],{"class":1454}," \u002F\u002F 'desktop', remote mode\n",[1089,2062,2064,2066,2068,2071,2073,2075,2078,2081,2084,2087],{"class":1091,"line":2063},17,[1089,2065,2000],{"class":1881},[1089,2067,860],{"class":1795},[1089,2069,2070],{"class":1795}," `${",[1089,2072,907],{"class":1802},[1089,2074,956],{"class":1795},[1089,2076,2077],{"class":1802},"appName",[1089,2079,2080],{"class":1795},"}",[1089,2082,2083],{"class":1099}," (desktop)",[1089,2085,2086],{"class":1795},"`",[1089,2088,1939],{"class":1795},[1089,2090,2092,2094,2096,2099,2101,2104,2106],{"class":1091,"line":2091},18,[1089,2093,2012],{"class":1881},[1089,2095,860],{"class":1795},[1089,2097,2098],{"class":1802}," [desktop",[1089,2100,956],{"class":1795},[1089,2102,2103],{"class":1802},"nativeRedirectUri]",[1089,2105,1827],{"class":1795},[1089,2107,2108],{"class":1454}," \u002F\u002F 'com.example.desk:\u002Fauth\u002Fcallback'\n",[1089,2110,2112,2114,2116,2118,2120,2123,2125],{"class":1091,"line":2111},19,[1089,2113,2025],{"class":1881},[1089,2115,860],{"class":1795},[1089,2117,2098],{"class":1802},[1089,2119,956],{"class":1795},[1089,2121,2122],{"class":1802},"devRedirectUri]",[1089,2124,1827],{"class":1795},[1089,2126,2127],{"class":1454}," \u002F\u002F 'http:\u002F\u002Flocalhost:3002\u002Fauth\u002Fcallback'\n",[1089,2129,2131,2133],{"class":1091,"line":2130},20,[1089,2132,2038],{"class":1795},[1089,2134,1887],{"class":1795},[1089,2136,2138,2140,2142,2144,2146,2148,2150],{"class":1091,"line":2137},21,[1089,2139,1985],{"class":1881},[1089,2141,860],{"class":1795},[1089,2143,2050],{"class":1802},[1089,2145,956],{"class":1795},[1089,2147,1313],{"class":1802},[1089,2149,1827],{"class":1795},[1089,2151,2152],{"class":1454}," \u002F\u002F 'desktop-local', local mode\n",[1089,2154,2156,2158,2160,2162,2164,2166,2168,2170,2173,2175],{"class":1091,"line":2155},22,[1089,2157,2000],{"class":1881},[1089,2159,860],{"class":1795},[1089,2161,2070],{"class":1795},[1089,2163,907],{"class":1802},[1089,2165,956],{"class":1795},[1089,2167,2077],{"class":1802},[1089,2169,2080],{"class":1795},[1089,2171,2172],{"class":1099}," (desktop, local mode)",[1089,2174,2086],{"class":1795},[1089,2176,1939],{"class":1795},[1089,2178,2180,2182,2184,2186,2188,2191,2193],{"class":1091,"line":2179},23,[1089,2181,2012],{"class":1881},[1089,2183,860],{"class":1795},[1089,2185,2098],{"class":1802},[1089,2187,956],{"class":1795},[1089,2189,2190],{"class":1802},"loopbackRedirectUri]",[1089,2192,1827],{"class":1795},[1089,2194,2195],{"class":1454}," \u002F\u002F 'http:\u002F\u002F127.0.0.1\u002Fauth\u002Ffrigear', on any port\n",[1089,2197,2199,2201,2203,2205,2207,2210,2212],{"class":1091,"line":2198},24,[1089,2200,2025],{"class":1881},[1089,2202,860],{"class":1795},[1089,2204,2098],{"class":1802},[1089,2206,956],{"class":1795},[1089,2208,2209],{"class":1802},"localDevRedirectUri]",[1089,2211,1827],{"class":1795},[1089,2213,2214],{"class":1454}," \u002F\u002F 'http:\u002F\u002Flocalhost:3002\u002Fauth\u002Ffrigear'\n",[1089,2216,2218,2221,2223,2227],{"class":1091,"line":2217},25,[1089,2219,2220],{"class":1881},"      corsOrigins",[1089,2222,860],{"class":1795},[1089,2224,2226],{"class":2225},"sfNiH"," false",[1089,2228,1939],{"class":1795},[1089,2230,2232,2235,2237],{"class":1091,"line":2231},26,[1089,2233,2234],{"class":1795},"    }",[1089,2236,1959],{"class":1802},[1089,2238,1939],{"class":1795},[1089,2240,2242],{"class":1091,"line":2241},27,[1089,2243,2244],{"class":1795},"  },\n",[1089,2246,2248,2250],{"class":1091,"line":2247},28,[1089,2249,2080],{"class":1795},[1089,2251,2252],{"class":1802},")\n",[862,2254,2255,2264],{},[865,2256,2257],{},[868,2258,2259,2262],{},[871,2260,2261],{},"Piece",[871,2263,1618],{},[883,2265,2266,2278,2293,2303],{},[868,2267,2268,2272],{},[888,2269,2270],{},[752,2271,907],{},[888,2273,2274,2275,2277],{},"Remote mode's public client: the deep link of the built app, and its dev server under ",[752,2276,1573],{}," only.",[868,2279,2280,2284],{},[888,2281,2282],{},[752,2283,940],{},[888,2285,2286,2287,2292],{},"Local mode's public client. OAuth Server accepts a loopback redirect URI registered without a port on any port (",[781,2288,2291],{"href":2289,"rel":2290},"https:\u002F\u002Fwww.rfc-editor.org\u002Frfc\u002Frfc8252#section-7.3",[1020],"RFC 8252","), since the app's server picks a free one at every start.",[868,2294,2295,2300],{},[888,2296,2297],{},[752,2298,2299],{},"corsOrigins: false",[888,2301,2302],{},"The local window only calls its own server, which exchanges the code itself, so the client needs no CORS.",[868,2304,2305,2310],{},[888,2306,2307],{},[752,2308,2309],{},"cors.origins",[888,2311,2312,2313,2316,2317,2320,2321,2324],{},"The webviews of the mobile app and of the remote desktop app, ",[752,2314,2315],{},"tauri:\u002F\u002Flocalhost"," (macOS, Linux) and ",[752,2318,2319],{},"http:\u002F\u002Ftauri.localhost"," (Windows), may call the token endpoints and ",[752,2322,2323],{},"\u002Fapi\u002F**"," with a bearer token.",[738,2326,2327,2328,2330,2331,2333,2334,860],{},"The desktop app's ",[752,2329,1697],{}," switches on ",[752,2332,855],{},". In local mode it turns on the frigear provider, which\nDesktop hands off to the system browser, and points it at ",[752,2335,801],{},[1079,2337,2340],{"className":1781,"code":2338,"filename":2339,"language":1784,"meta":1085,"style":1085},"export default defineNuxtConfig({\n  authentication: {\n    settings: {\n      afterLogin: '\u002F',\n      password: false,\n      oauth: { frigear: { label: `Sign in with your ${appName} account`, icon: 'i-lucide-log-in' } },\n      pages: { login: true },\n    },\n  },\n  runtimeConfig: {\n    frigear: {\n      sso: {\n        url: process.env.NUXT_FRIGEAR_SSO_URL || 'http:\u002F\u002Flocalhost:3000',\n        clientId: process.env.NUXT_FRIGEAR_SSO_CLIENT_ID || localClientId,\n      },\n    },\n    session: { name: 'desktop-session' },\n  },\n})\n","apps\u002Fdesktop\u002Fnuxt.config.ts (local mode)",[752,2341,2342,2354,2363,2372,2388,2399,2457,2476,2480,2484,2493,2502,2511,2542,2567,2572,2576,2599,2603],{"__ignoreMap":1085},[1089,2343,2344,2346,2348,2350,2352],{"class":1091,"line":1092},[1089,2345,1864],{"class":1791},[1089,2347,1867],{"class":1791},[1089,2349,1870],{"class":1118},[1089,2351,1873],{"class":1802},[1089,2353,1876],{"class":1795},[1089,2355,2356,2359,2361],{"class":1091,"line":1115},[1089,2357,2358],{"class":1881},"  authentication",[1089,2360,860],{"class":1795},[1089,2362,1887],{"class":1795},[1089,2364,2365,2368,2370],{"class":1091,"line":1125},[1089,2366,2367],{"class":1881},"    settings",[1089,2369,860],{"class":1795},[1089,2371,1887],{"class":1795},[1089,2373,2374,2377,2379,2381,2384,2386],{"class":1091,"line":1164},[1089,2375,2376],{"class":1881},"      afterLogin",[1089,2378,860],{"class":1795},[1089,2380,1809],{"class":1795},[1089,2382,2383],{"class":1099},"\u002F",[1089,2385,1910],{"class":1795},[1089,2387,1939],{"class":1795},[1089,2389,2390,2393,2395,2397],{"class":1091,"line":1173},[1089,2391,2392],{"class":1881},"      password",[1089,2394,860],{"class":1795},[1089,2396,2226],{"class":2225},[1089,2398,1939],{"class":1795},[1089,2400,2401,2404,2406,2408,2411,2413,2415,2418,2420,2423,2426,2429,2431,2433,2436,2438,2440,2443,2445,2447,2450,2452,2454],{"class":1091,"line":1181},[1089,2402,2403],{"class":1881},"      oauth",[1089,2405,860],{"class":1795},[1089,2407,1821],{"class":1795},[1089,2409,2410],{"class":1881}," frigear",[1089,2412,860],{"class":1795},[1089,2414,1821],{"class":1795},[1089,2416,2417],{"class":1881}," label",[1089,2419,860],{"class":1795},[1089,2421,2422],{"class":1795}," `",[1089,2424,2425],{"class":1099},"Sign in with your ",[1089,2427,2428],{"class":1795},"${",[1089,2430,2077],{"class":1802},[1089,2432,2080],{"class":1795},[1089,2434,2435],{"class":1099}," account",[1089,2437,2086],{"class":1795},[1089,2439,1827],{"class":1795},[1089,2441,2442],{"class":1881}," icon",[1089,2444,860],{"class":1795},[1089,2446,1809],{"class":1795},[1089,2448,2449],{"class":1099},"i-lucide-log-in",[1089,2451,1910],{"class":1795},[1089,2453,1843],{"class":1795},[1089,2455,2456],{"class":1795}," },\n",[1089,2458,2459,2462,2464,2466,2469,2471,2474],{"class":1091,"line":1899},[1089,2460,2461],{"class":1881},"      pages",[1089,2463,860],{"class":1795},[1089,2465,1821],{"class":1795},[1089,2467,2468],{"class":1881}," login",[1089,2470,860],{"class":1795},[1089,2472,2473],{"class":2225}," true",[1089,2475,2456],{"class":1795},[1089,2477,2478],{"class":1091,"line":1942},[1089,2479,1967],{"class":1795},[1089,2481,2482],{"class":1091,"line":1964},[1089,2483,2244],{"class":1795},[1089,2485,2486,2489,2491],{"class":1091,"line":1970},[1089,2487,2488],{"class":1881},"  runtimeConfig",[1089,2490,860],{"class":1795},[1089,2492,1887],{"class":1795},[1089,2494,2495,2498,2500],{"class":1091,"line":1982},[1089,2496,2497],{"class":1881},"    frigear",[1089,2499,860],{"class":1795},[1089,2501,1887],{"class":1795},[1089,2503,2504,2507,2509],{"class":1091,"line":1997},[1089,2505,2506],{"class":1881},"      sso",[1089,2508,860],{"class":1795},[1089,2510,1887],{"class":1795},[1089,2512,2513,2516,2518,2521,2523,2526,2528,2531,2534,2536,2538,2540],{"class":1091,"line":2009},[1089,2514,2515],{"class":1881},"        url",[1089,2517,860],{"class":1795},[1089,2519,2520],{"class":1802}," process",[1089,2522,956],{"class":1795},[1089,2524,2525],{"class":1802},"env",[1089,2527,956],{"class":1795},[1089,2529,2530],{"class":1802},"NUXT_FRIGEAR_SSO_URL ",[1089,2532,2533],{"class":1795},"||",[1089,2535,1809],{"class":1795},[1089,2537,754],{"class":1099},[1089,2539,1910],{"class":1795},[1089,2541,1939],{"class":1795},[1089,2543,2544,2547,2549,2551,2553,2555,2557,2560,2562,2565],{"class":1091,"line":2022},[1089,2545,2546],{"class":1881},"        clientId",[1089,2548,860],{"class":1795},[1089,2550,2520],{"class":1802},[1089,2552,956],{"class":1795},[1089,2554,2525],{"class":1802},[1089,2556,956],{"class":1795},[1089,2558,2559],{"class":1802},"NUXT_FRIGEAR_SSO_CLIENT_ID ",[1089,2561,2533],{"class":1795},[1089,2563,2564],{"class":1802}," localClientId",[1089,2566,1939],{"class":1795},[1089,2568,2569],{"class":1091,"line":2035},[1089,2570,2571],{"class":1795},"      },\n",[1089,2573,2574],{"class":1091,"line":2043},[1089,2575,1967],{"class":1795},[1089,2577,2578,2581,2583,2585,2588,2590,2592,2595,2597],{"class":1091,"line":2063},[1089,2579,2580],{"class":1881},"    session",[1089,2582,860],{"class":1795},[1089,2584,1821],{"class":1795},[1089,2586,2587],{"class":1881}," name",[1089,2589,860],{"class":1795},[1089,2591,1809],{"class":1795},[1089,2593,2594],{"class":1099},"desktop-session",[1089,2596,1910],{"class":1795},[1089,2598,2456],{"class":1795},[1089,2600,2601],{"class":1091,"line":2091},[1089,2602,2244],{"class":1795},[1089,2604,2605,2607],{"class":1091,"line":2111},[1089,2606,2080],{"class":1795},[1089,2608,2252],{"class":1802},[738,2610,2611,2616,2617,956],{},[741,2612,2613,956],{},[752,2614,2615],{},"frigear.sso"," The issuer and the public client id, without a secret, so the app ships none. Both are baked into\nthe build from ",[752,2618,1194],{},[738,2620,2621,2626,2627,2629,2630,2632,2633,2636],{},[741,2622,2623,956],{},[752,2624,2625],{},"session.name"," Under ",[752,2628,1573],{}," both ",[752,2631,801],{}," and the desktop app set a session cookie on ",[752,2634,2635],{},"localhost",", and\ncookies do not tell ports apart. A name of its own keeps the two sessions apart.",[738,2638,2639,2642,2643,2646],{},[741,2640,2641],{},"The handoff table."," The handoff adds ",[752,2644,2645],{},"auth_frigear_handoffs"," to the desktop app's database. It is in the committed\nmigrations, and the built app applies them when it starts.",[1436,2648,2650],{"id":2649},"rename-the-apps","Rename the apps",[738,2652,2653,2654,2656,2657,925,2659,1939,2662,1257,2664,1257,2666,1257,2668,1257,2671,2674,2675,2677,2678,2680,2681,952,2684,925,2687,2690,2691,956],{},"The mobile app's names are in ",[752,2655,951],{},", the desktop app's in ",[752,2658,955],{},[752,2660,2661],{},"appId",[752,2663,2077],{},[752,2665,2055],{},[752,2667,1313],{},[752,2669,2670],{},"devPort",[752,2672,2673],{},"scopes","). ",[752,2676,801],{}," follows both. After changing an ",[752,2679,2661],{},",\nrecreate ",[752,2682,2683],{},"ios\u002F",[752,2685,2686],{},"android\u002F",[752,2688,2689],{},"pnpm mobile:native",") or run ",[752,2692,2693],{},"pnpm desktop:sync",[1436,2695,2697],{"id":2696},"change-the-database","Change the database",[738,2699,2700],{},"After adding a module with tables, or changing a module's options, generate the migrations and commit them:",[1079,2702,2704],{"className":1081,"code":2703,"language":1084,"meta":1085,"style":1085},"pnpm db:generate\n",[752,2705,2706],{"__ignoreMap":1085},[1089,2707,2708,2710],{"class":1091,"line":1092},[1089,2709,1096],{"class":1095},[1089,2711,2712],{"class":1099}," db:generate\n",[738,2714,2715,2716,1212,2719,2721],{},"It runs ",[752,2717,2718],{},"nuxt db generate",[752,2720,801],{}," and for the desktop app in local mode.",[958,2723,2725],{"id":2724},"production-checklist","Production checklist",[738,2727,2728,2729,2733,2734,952,2736,2738],{},"Do everything in the ",[781,2730,2732],{"href":2731},"\u002Fexamples\u002Fstarters\u002Fmobile-standalone#production-checklist","standalone mobile starter's checklist","\nfor ",[752,2735,801],{},[752,2737,824],{},". Then, for the desktop app:",[745,2740,2743,2765,2786,2798],{"className":2741},[2742],"contains-task-list",[748,2744,2747,2751,2752,1257,2754,1257,2756,952,2758,856,2760,2762,2763,956],{"className":2745},[2746],"task-list-item",[2748,2749],"input",{"disabled":1858,"type":2750},"checkbox"," Set your own ",[752,2753,2661],{},[752,2755,2077],{},[752,2757,2055],{},[752,2759,1313],{},[752,2761,955],{},", and run\n",[752,2764,2693],{},[748,2766,2768,2770,2771,952,2773,2775,2776,2778,2779,2782,2783,2785],{"className":2767},[2746],[2748,2769],{"disabled":1858,"type":2750}," Remote mode: set ",[752,2772,1256],{},[752,2774,1260],{}," to ",[752,2777,801],{},"'s ",[752,2780,2781],{},"https"," origin in the\nenvironment of ",[752,2784,1485],{},". They are baked in.",[748,2787,2789,2791,2792,2794,2795,2797],{"className":2788},[2746],[2748,2790],{"disabled":1858,"type":2750}," Local mode: set ",[752,2793,1290],{}," to the same origin in the environment of ",[752,2796,1485],{},". It is baked\nin too.",[748,2799,2801,2803,2804,952,2806,956],{"className":2800},[2746],[2748,2802],{"disabled":1858,"type":2750}," Replace the placeholder icons, set the version, and sign the installers. See\n",[781,2805,456],{"href":457},[781,2807,466],{"href":2808},"\u002Fmodules\u002Finterface\u002Fdesktop\u002Flocal-mode#limitations",[958,2810,2812],{"id":2811},"next-steps","Next steps",[745,2814,2815,2820,2826],{},[748,2816,2817,2819],{},[781,2818,466],{"href":467}," – the bundled server, its data folder, secrets and the browser\nhandoff.",[748,2821,2822,2825],{},[781,2823,191],{"href":2824},"\u002Fmodules\u002Fidentity\u002Fauth\u002Foauth-providers#sign-in-in-the-system-browser"," – the handoff flow and its\nsecurity notes.",[748,2827,2828,2832],{},[781,2829,2831],{"href":2830},"\u002Fguide\u002Fgoing-further\u002Foauth-application#create-it-in-nuxtconfig","Create it in nuxt.config"," – configured clients and\nreplacing them per environment.",[2834,2835,2836],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}",{"title":1085,"searchDepth":1115,"depth":1115,"links":2838},[2839,2840,2841,2842,2846,2851,2852],{"id":960,"depth":1115,"text":961},{"id":1042,"depth":1115,"text":1043},{"id":1323,"depth":1115,"text":1324},{"id":1370,"depth":1115,"text":1371,"children":2843},[2844,2845],{"id":1438,"depth":1125,"text":1439},{"id":1497,"depth":1125,"text":1498},{"id":1605,"depth":1115,"text":1606,"children":2847},[2848,2849,2850],{"id":1762,"depth":1125,"text":1763},{"id":2649,"depth":1125,"text":2650},{"id":2696,"depth":1125,"text":2697},{"id":2724,"depth":1115,"text":2725},{"id":2811,"depth":1115,"text":2812},"Start a web app that is the OAuth server and API, a Capacitor mobile app and a Tauri desktop app that both sign in at it, from the multi-platform starter.","md",null,{},{"icon":569},{"title":566,"description":2853},"92Rr6eGGuYn5nVFeEH0LMbEZ4hS9hnWySvXCm_sJT24",[2861,2863],{"title":561,"path":562,"stem":563,"description":2862,"icon":564,"children":-1},"Start a macOS, Windows and Linux app on Tauri that signs in at any OpenID Connect issuer, or runs offline with its own users and database, from the desktop starter.",{"title":576,"path":577,"stem":578,"description":2864,"icon":579,"children":-1},"The reference host app behind frigear.nu, with its modules, content, environment, database and deployment.",1796157336274]