[{"data":1,"prerenderedAt":3519},["ShallowReactive",2],{"navigation_docs":3,"-modules-interface-desktop-local-mode":732,"-modules-interface-desktop-local-mode-surround":3514},[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":466,"body":734,"description":3507,"extension":3508,"links":3509,"meta":3510,"navigation":3511,"path":467,"seo":3512,"stem":468,"__hash__":3513},"docs\u002F3.modules\u002F7.interface\u002F7.desktop\u002F3.local-mode.md",{"type":735,"value":736,"toc":3493},"minimark",[737,770,776,1021,1082,1111,1116,1211,1229,1233,1246,1329,1335,1339,1407,1417,1420,1426,1480,1490,1494,1497,1604,1622,1625,1635,1638,1737,2070,2080,2087,2199,2206,2209,2237,2253,2258,2275,2301,2304,2307,2319,2341,2745,2754,2764,2934,2947,2950,3079,3083,3100,3143,3162,3181,3185,3195,3309,3318,3322,3329,3401,3405,3424,3428,3489],[738,739,740,741,748,749,754,755,759,760,764,765,769],"p",{},"In local mode the desktop app carries its own server. The production build of your Nuxt app (pages, SSR, API routes\nand every frigear server module) is compiled with ",[742,743,747],"a",{"href":744,"rel":745},"https:\u002F\u002Fbun.sh",[746],"nofollow","Bun"," into one executable. The Tauri shell starts it\nas a ",[742,750,753],{"href":751,"rel":752},"https:\u002F\u002Fv2.tauri.app\u002Fdevelop\u002Fsidecar\u002F",[746],"sidecar"," on ",[756,757,758],"code",{},"127.0.0.1"," and opens the window on it. The app works\noffline: data lives in a sqlite file in the user's app-data folder, and users sign in with a cookie session on the\nsame origin, so no OAuth is involved. To sign in at a remote issuer, see\n",[742,761,763],{"href":762},"#sign-in-at-an-issuer-with-server-auth","Sign in at an issuer with server auth"," (cookie sessions on the bundled\nserver) or ",[742,766,768],{"href":767},"#sign-in-at-a-remote-issuer","Sign in at a remote issuer"," (resource mode, tokens).",[738,771,772,773,775],{},"Set up the module first: ",[742,774,177],{"href":457},".",[777,778,784],"pre",{"className":779,"code":780,"filename":781,"language":782,"meta":783,"style":783},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export default defineNuxtConfig({\n  modules: ['@nuxthub\u002Fcore', '@frigear-nu\u002Fusers', '@frigear-nu\u002Fdesktop'],\n  desktop: {\n    appId: 'nu.frigear.desk',\n    appName: 'Desk',\n    mode: 'local',\n  },\n  \u002F\u002F Auth in server mode, which is the default, or resource mode (see below). Client mode fails the build.\n  hub: {\n    db: { dialect: 'sqlite', driver: 'libsql', connection: { url: 'file:.\u002F.data\u002Fdb\u002Fsqlite.db' } },\n  },\n})\n","nuxt.config.ts","ts","",[756,785,786,810,858,869,886,903,920,926,933,943,1007,1012],{"__ignoreMap":783},[787,788,791,795,798,802,806],"span",{"class":789,"line":790},"line",1,[787,792,794],{"class":793},"s7zQu","export",[787,796,797],{"class":793}," default",[787,799,801],{"class":800},"s2Zo4"," defineNuxtConfig",[787,803,805],{"class":804},"sTEyZ","(",[787,807,809],{"class":808},"sMK4o","{\n",[787,811,813,817,820,823,826,830,832,835,838,841,843,845,847,850,852,855],{"class":789,"line":812},2,[787,814,816],{"class":815},"swJcz","  modules",[787,818,819],{"class":808},":",[787,821,822],{"class":804}," [",[787,824,825],{"class":808},"'",[787,827,829],{"class":828},"sfazB","@nuxthub\u002Fcore",[787,831,825],{"class":808},[787,833,834],{"class":808},",",[787,836,837],{"class":808}," '",[787,839,840],{"class":828},"@frigear-nu\u002Fusers",[787,842,825],{"class":808},[787,844,834],{"class":808},[787,846,837],{"class":808},[787,848,849],{"class":828},"@frigear-nu\u002Fdesktop",[787,851,825],{"class":808},[787,853,854],{"class":804},"]",[787,856,857],{"class":808},",\n",[787,859,861,864,866],{"class":789,"line":860},3,[787,862,863],{"class":815},"  desktop",[787,865,819],{"class":808},[787,867,868],{"class":808}," {\n",[787,870,872,875,877,879,882,884],{"class":789,"line":871},4,[787,873,874],{"class":815},"    appId",[787,876,819],{"class":808},[787,878,837],{"class":808},[787,880,881],{"class":828},"nu.frigear.desk",[787,883,825],{"class":808},[787,885,857],{"class":808},[787,887,889,892,894,896,899,901],{"class":789,"line":888},5,[787,890,891],{"class":815},"    appName",[787,893,819],{"class":808},[787,895,837],{"class":808},[787,897,898],{"class":828},"Desk",[787,900,825],{"class":808},[787,902,857],{"class":808},[787,904,906,909,911,913,916,918],{"class":789,"line":905},6,[787,907,908],{"class":815},"    mode",[787,910,819],{"class":808},[787,912,837],{"class":808},[787,914,915],{"class":828},"local",[787,917,825],{"class":808},[787,919,857],{"class":808},[787,921,923],{"class":789,"line":922},7,[787,924,925],{"class":808},"  },\n",[787,927,929],{"class":789,"line":928},8,[787,930,932],{"class":931},"sHwdD","  \u002F\u002F Auth in server mode, which is the default, or resource mode (see below). Client mode fails the build.\n",[787,934,936,939,941],{"class":789,"line":935},9,[787,937,938],{"class":815},"  hub",[787,940,819],{"class":808},[787,942,868],{"class":808},[787,944,946,949,951,954,957,959,961,964,966,968,971,973,975,978,980,982,985,987,989,992,994,996,999,1001,1004],{"class":789,"line":945},10,[787,947,948],{"class":815},"    db",[787,950,819],{"class":808},[787,952,953],{"class":808}," {",[787,955,956],{"class":815}," dialect",[787,958,819],{"class":808},[787,960,837],{"class":808},[787,962,963],{"class":828},"sqlite",[787,965,825],{"class":808},[787,967,834],{"class":808},[787,969,970],{"class":815}," driver",[787,972,819],{"class":808},[787,974,837],{"class":808},[787,976,977],{"class":828},"libsql",[787,979,825],{"class":808},[787,981,834],{"class":808},[787,983,984],{"class":815}," connection",[787,986,819],{"class":808},[787,988,953],{"class":808},[787,990,991],{"class":815}," url",[787,993,819],{"class":808},[787,995,837],{"class":808},[787,997,998],{"class":828},"file:.\u002F.data\u002Fdb\u002Fsqlite.db",[787,1000,825],{"class":808},[787,1002,1003],{"class":808}," }",[787,1005,1006],{"class":808}," },\n",[787,1008,1010],{"class":789,"line":1009},11,[787,1011,925],{"class":808},[787,1013,1015,1018],{"class":789,"line":1014},12,[787,1016,1017],{"class":808},"}",[787,1019,1020],{"class":804},")\n",[777,1022,1026],{"className":1023,"code":1024,"language":1025,"meta":783,"style":783},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npx frigear-desktop doctor --fix   # also installs Bun in local mode\nnpx frigear-desktop init      # src-tauri\u002F with the shell plugin and the sidecar code in src\u002Flib.rs\nnpx frigear-desktop dev       # nuxt dev in a Tauri window, without the sidecar\nnpx frigear-desktop build     # nuxt build, the server compiled with Bun, then tauri build\n","bash",[756,1027,1028,1046,1058,1070],{"__ignoreMap":783},[787,1029,1030,1034,1037,1040,1043],{"class":789,"line":790},[787,1031,1033],{"class":1032},"sBMFI","npx",[787,1035,1036],{"class":828}," frigear-desktop",[787,1038,1039],{"class":828}," doctor",[787,1041,1042],{"class":828}," --fix",[787,1044,1045],{"class":931},"   # also installs Bun in local mode\n",[787,1047,1048,1050,1052,1055],{"class":789,"line":812},[787,1049,1033],{"class":1032},[787,1051,1036],{"class":828},[787,1053,1054],{"class":828}," init",[787,1056,1057],{"class":931},"      # src-tauri\u002F with the shell plugin and the sidecar code in src\u002Flib.rs\n",[787,1059,1060,1062,1064,1067],{"class":789,"line":860},[787,1061,1033],{"class":1032},[787,1063,1036],{"class":828},[787,1065,1066],{"class":828}," dev",[787,1068,1069],{"class":931},"       # nuxt dev in a Tauri window, without the sidecar\n",[787,1071,1072,1074,1076,1079],{"class":789,"line":871},[787,1073,1033],{"class":1032},[787,1075,1036],{"class":828},[787,1077,1078],{"class":828}," build",[787,1080,1081],{"class":931},"     # nuxt build, the server compiled with Bun, then tauri build\n",[1083,1084,1087,1091,1092,1095,1096,1099,1100,1103,1104,1107,1108,775],"callout",{"color":1085,"icon":1086},"success","i-lucide-check",[1088,1089,1090],"strong",{},"What you should see:"," ",[756,1093,1094],{},"frigear-desktop build"," writes ",[756,1097,1098],{},"src-tauri\u002Fbinaries\u002F\u003CbinaryName>-\u003Ctarget triple>"," before\nTauri bundles. Run that binary with ",[756,1101,1102],{},"DATA_DIR=\u002Ftmp\u002Fdesk PORT=0"," and it prints ",[756,1105,1106],{},"READY \u003Cport>",", then serves your app on\n",[756,1109,1110],{},"http:\u002F\u002F127.0.0.1:\u003Cport>",[1112,1113,1115],"h2",{"id":1114},"how-it-works","How it works",[1117,1118,1119,1151,1162,1165,1174,1185,1192],"ol",{},[1120,1121,1122,1123,1126,1127,1130,1131,1134,1135,1138,1139,1142,1143,1146,1147,1150],"li",{},"The shell starts the sidecar with ",[756,1124,1125],{},"PORT"," (",[756,1128,1129],{},"desktop.local.port",", default ",[756,1132,1133],{},"0","), ",[756,1136,1137],{},"HOST=127.0.0.1"," and ",[756,1140,1141],{},"DATA_DIR",". The\ndata folder is ",[756,1144,1145],{},"\u003Capp-data folder>\u002F\u003CdataDirName>",", for example\n",[756,1148,1149],{},"~\u002FLibrary\u002FApplication Support\u002Fnu.frigear.desk\u002Fdata"," on macOS. The window shows a small loading page meanwhile.",[1120,1152,1153,1154,1158,1159,1161],{},"Before Nitro reads its runtime config, the server creates the data folder, makes it its working directory, loads\nthe secrets (see ",[742,1155,1157],{"href":1156},"#secrets","Secrets",") and forces ",[756,1160,758],{}," as the host.",[1120,1163,1164],{},"It applies the pending migrations. Requests wait until they are done.",[1120,1166,1167,1168,1170,1171,1173],{},"Once it listens and the migrations are applied, it prints exactly ",[756,1169,1106],{}," on stdout. With port ",[756,1172,1133],{}," the OS\npicks a free port, so the port in that line is the only reliable one.",[1120,1175,1176,1177,1180,1181,1184],{},"The shell reads that line and navigates the ",[756,1178,1179],{},"main"," window to ",[756,1182,1183],{},"http:\u002F\u002F127.0.0.1:\u003Cport>\u002F",". If the server exits\nbefore it is ready, the loading page shows the exit code.",[1120,1186,1187,1188,1191],{},"When the app quits (",[756,1189,1190],{},"RunEvent::Exit","), the shell stops the server. Single instance stays on, so a second launch\nnever starts a second server on the same database.",[1120,1193,1194,1195,1198,1199,1202,1203,1206,1207,1210],{},"If the shell dies without quitting (a crash, a force quit, ",[756,1196,1197],{},"kill -9","), the server stops by itself: the shell sets\n",[756,1200,1201],{},"FRIGEAR_DESKTOP_PARENT_WATCH=1"," and holds the server's stdin open, the OS closes it when the shell goes, and the\nserver then runs Nitro's ",[756,1204,1205],{},"close"," hooks, closes the database and exits (on Unix also when its parent pid changes).\nWithout that variable (",[756,1208,1209],{},"nuxt dev",", the binary started by hand) the server ignores stdin.",[738,1212,1213,1214,1217,1218,1221,1222,1225,1226,775],{},"The generated ",[756,1215,1216],{},"src-tauri\u002Fsrc\u002Flib.rs"," holds this code in its ",[756,1219,1220],{},"local_server"," module. Like the rest of ",[756,1223,1224],{},"lib.rs",", it is\nyours after ",[756,1227,1228],{},"init",[1112,1230,1232],{"id":1231},"what-the-build-changes","What the build changes",[738,1234,1235,1236,1239,1240,1242,1243,1245],{},"These changes apply to a production build only (",[756,1237,1238],{},"nuxt build",", which ",[756,1241,1094],{}," runs). ",[756,1244,1209],{}," keeps\nNuxtHub's own driver, database and migrations.",[1247,1248,1249,1279,1308],"ul",{},[1120,1250,1251,1254,1255,1258,1259,1262,1263,1266,1267,1270,1271,1274,1275,1278],{},[1088,1252,1253],{},"One file."," It uses the Nitro ",[756,1256,1257],{},"bun"," preset, with public assets inlined (",[756,1260,1261],{},"serveStatic: 'inline'",") and every\ndependency bundled into one chunk (",[756,1264,1265],{},"noExternals",", ",[756,1268,1269],{},"inlineDynamicImports","), so ",[756,1272,1273],{},".output\u002Fserver\u002Findex.mjs"," runs on its\nown. ",[756,1276,1277],{},"bun build --compile"," turns it into the executable.",[1120,1280,1281,1284,1285,1288,1289,1292,1293,1296,1297,1300,1301,1304,1305,1307],{},[1088,1282,1283],{},"Database."," libsql loads a native addon, and a compiled binary cannot load one. The module replaces NuxtHub's\ngenerated ",[756,1286,1287],{},"@nuxthub\u002Fdb"," client with drizzle's ",[756,1290,1291],{},"sqlite-proxy"," over ",[756,1294,1295],{},"bun:sqlite",". The schema stays NuxtHub's, and\n",[756,1298,1299],{},"db.batch"," works. The client opens ",[756,1302,1303],{},"$DATA_DIR\u002Fapp.db"," with WAL and foreign keys on. This replaces a NuxtHub internal\non purpose. A unit test fails when the installed ",[756,1306,829],{}," changes it, and a build with a version the module\nwas not checked against prints a warning.",[1120,1309,1310,1313,1314,1317,1318,1321,1322,1325,1326,775],{},[1088,1311,1312],{},"Migrations."," In production NuxtHub only migrates at build time, and the database it migrates then is the one on\nthe build machine. Local mode sets ",[756,1315,1316],{},"hub.db.applyMigrationsDuringBuild: false",". It bundles NuxtHub's collected\nmigrations (yours and every module's) and applies the pending ones at startup. It records them in NuxtHub's\n",[756,1319,1320],{},"_hub_migrations"," table, with the same names, so ",[756,1323,1324],{},"nuxt db"," commands and the app agree. Each migration runs in a\ntransaction with foreign keys off, as drizzle-kit's table rebuilds need. A failing migration is rolled back and the\nserver exits before ",[756,1327,1328],{},"READY",[738,1330,1331,1334],{},[756,1332,1333],{},"hub.db"," must use the sqlite dialect.",[1112,1336,1338],{"id":1337},"data-folder","Data folder",[1340,1341,1342,1355],"table",{},[1343,1344,1345],"thead",{},[1346,1347,1348,1352],"tr",{},[1349,1350,1351],"th",{},"File",[1349,1353,1354],{},"What it is",[1356,1357,1358,1377,1390],"tbody",{},[1346,1359,1360,1374],{},[1361,1362,1363,1366,1367,1138,1370,1373],"td",{},[756,1364,1365],{},"app.db"," (with ",[756,1368,1369],{},"-wal",[756,1371,1372],{},"-shm",")",[1361,1375,1376],{},"The database.",[1346,1378,1379,1384],{},[1361,1380,1381],{},[756,1382,1383],{},"secrets.json",[1361,1385,1386,1387,775],{},"The installation's secrets, mode ",[756,1388,1389],{},"0600",[1346,1391,1392,1397],{},[1361,1393,1394],{},[756,1395,1396],{},".data\u002Fkv\u002F",[1361,1398,1399,1400,1403,1404,1406],{},"NuxtHub KV (sign-in throttling), from ",[756,1401,1402],{},"hub.kv","'s relative default path. Not in resource mode, unless you turn ",[756,1405,1402],{}," on.",[738,1408,1409,1410,1412,1413,1416],{},"Relative paths the app or NuxtHub bake in resolve inside the data folder, because the server runs there. Deleting the\nfolder resets the app. Deleting only ",[756,1411,1383],{}," signs every user out, and makes the data encrypted with keys\nderived from ",[756,1414,1415],{},"NUXT_APP_SECRET"," unreadable (kept OAuth tokens, per-form secrets).",[1112,1418,1157],{"id":1419},"secrets",[738,1421,1422,1423,1425],{},"On its first start the server generates the secrets the app needs into ",[756,1424,1383],{},". It then loads them into the\nenvironment on every start:",[1340,1427,1428,1441],{},[1343,1429,1430],{},[1346,1431,1432,1435,1438],{},[1349,1433,1434],{},"Env var",[1349,1436,1437],{},"When",[1349,1439,1440],{},"Used for",[1356,1442,1443,1463],{},[1346,1444,1445,1449,1452],{},[1361,1446,1447],{},[756,1448,1415],{},[1361,1450,1451],{},"Always",[1361,1453,1454,1455,1458,1459,1462],{},"Nuxt's ",[756,1456,1457],{},"appSecret",": seals the session cookie (nuxt-auth-utils). Module keys, such as the one that encrypts kept OAuth tokens, are derived from it (",[742,1460,1157],{"href":1461},"\u002Fget-started\u002Fconfiguration#secrets",").",[1346,1464,1465,1470,1477],{},[1361,1466,1467],{},[756,1468,1469],{},"NUXT_OAUTH_SERVER_PRIVATE_KEY",[1361,1471,1472,1473,1476],{},"With ",[756,1474,1475],{},"@frigear-nu\u002Foauth-server",", not in resource mode",[1361,1478,1479],{},"Signs its tokens (a 2048-bit RSA key).",[738,1481,1482,1483,1486,1487,1489],{},"An env var that is already set wins, so the shell, or you, can pass your own. The server generates the secrets\nitself, so the Rust shell needs no crypto crates. An installation an older version set up also has\n",[756,1484,1485],{},"NUXT_AUTH_TOKENS_KEY"," in ",[756,1488,1383],{},", and keeps loading it, so its kept OAuth tokens stay readable.",[1112,1491,1493],{"id":1492},"offline-defaults","Offline defaults",[738,1495,1496],{},"With Auth in server mode, local mode sets these defaults. Your own config wins over each of them. Resource mode gets\nnone of them: people sign in at the issuer, which sends the emails and throttles sign-ins.",[1340,1498,1499,1512],{},[1343,1500,1501],{},[1346,1502,1503,1506,1509],{},[1349,1504,1505],{},"Setting",[1349,1507,1508],{},"Default",[1349,1510,1511],{},"Why",[1356,1513,1514,1529,1544,1561,1580],{},[1346,1515,1516,1521,1526],{},[1361,1517,1518],{},[756,1519,1520],{},"authentication.settings.verifyEmail",[1361,1522,1523],{},[756,1524,1525],{},"false",[1361,1527,1528],{},"A verification email reaches nobody offline. The build warns when you turn it on.",[1346,1530,1531,1536,1541],{},[1361,1532,1533],{},[756,1534,1535],{},"authentication.settings.trustRequestOrigin",[1361,1537,1538],{},[756,1539,1540],{},"true",[1361,1542,1543],{},"The port changes on every start, so emailed links use the request's origin.",[1346,1545,1546,1551,1556],{},[1361,1547,1548],{},[756,1549,1550],{},"authentication.settings.oauth.frigear.handoff",[1361,1552,1553,1555],{},[756,1554,1540],{}," when you enable the frigear provider",[1361,1557,1558,1559,775],{},"\"Log in with frigear.nu\" signs in in the system browser. See ",[742,1560,763],{"href":762},[1346,1562,1563,1568,1573],{},[1361,1564,1565],{},[756,1566,1567],{},"runtimeConfig.frigear.handoff.returnUrl",[1361,1569,1570],{},[756,1571,1572],{},"\u003CappId in lowercase>:\u002Fauth\u002Freturn",[1361,1574,1575,1576,1579],{},"The deep link the browser's \"Signed in\" page opens to bring the app forward. ",[756,1577,1578],{},"NUXT_FRIGEAR_HANDOFF_RETURN_URL"," overrides it.",[1346,1581,1582,1586,1590],{},[1361,1583,1584],{},[756,1585,1402],{},[1361,1587,1588],{},[756,1589,1540],{},[1361,1591,1592,1593,1595,1596,1599,1600,1603],{},"Sign-in throttling counts attempts in KV (fs-lite, inside the data folder). Auth turns throttling off under ",[756,1594,1209],{},", but the KV is there for your own code. NuxtHub's generated KV client imports ",[756,1597,1598],{},"unstorage"," from the app, so add it to the app's dependencies (",[756,1601,1602],{},"pnpm add unstorage","); the build stops with that hint otherwise.",[738,1605,1606,1609,1610,1613,1614,1617,1618,1621],{},[756,1607,1608],{},"authentication.mode"," must be ",[756,1611,1612],{},"server",", which is the default, or ",[756,1615,1616],{},"resource",". With ",[756,1619,1620],{},"client"," the build fails: it has\nno server half.",[1112,1623,763],{"id":1624},"sign-in-at-an-issuer-with-server-auth",[738,1626,1627,1628,1631,1632,1634],{},"Auth stays in server mode: the bundled server keeps its own users and cookie sessions, and \"Log in with frigear.nu\"\nsigns people in at an ",[742,1629,1630],{"href":91},"issuer",", such as your website running\n",[742,1633,233],{"href":234},". The sign-in happens in the system browser, so passkeys at the issuer\nwork, and the app ships no client secret.",[738,1636,1637],{},"Which one to choose:",[1340,1639,1640,1653],{},[1343,1641,1642],{},[1346,1643,1644,1646,1649],{},[1349,1645],{},[1349,1647,1648],{},"Server auth with the handoff (this section)",[1349,1650,1651],{},[742,1652,195],{"href":767},[1356,1654,1655,1666,1686,1697,1708,1723],{},[1346,1656,1657,1660,1663],{},[1361,1658,1659],{},"Session",[1361,1661,1662],{},"A cookie session on the bundled server",[1361,1664,1665],{},"The issuer's access token on every request",[1346,1667,1668,1671,1678],{},[1361,1669,1670],{},"Permissions",[1361,1672,1673,1674,1677],{},"All of them, ",[756,1675,1676],{},"sessionOnly"," ones included (assigning roles, managing users, API tokens)",[1361,1679,1680,1682,1683],{},[756,1681,1676],{}," permissions answer ",[756,1684,1685],{},"403 session_required",[1346,1687,1688,1691,1694],{},[1361,1689,1690],{},"Offline",[1361,1692,1693],{},"Signed in until the session ends, with no issuer needed after sign-in",[1361,1695,1696],{},"Until the access token expires; refreshing needs the issuer",[1346,1698,1699,1702,1705],{},[1361,1700,1701],{},"Local accounts",[1361,1703,1704],{},"Possible next to the issuer (password, passkeys on the bundled server)",[1361,1706,1707],{},"None: only the issuer's accounts",[1346,1709,1710,1713,1720],{},[1361,1711,1712],{},"Auth tables",[1361,1714,1715,1716,1719],{},"Auth's tables in the local database, ",[756,1717,1718],{},"auth_frigear_handoffs"," included",[1361,1721,1722],{},"None",[1346,1724,1725,1728,1731],{},[1361,1726,1727],{},"Rendering",[1361,1729,1730],{},"SSR on the bundled server",[1361,1732,1733,1734,1373],{},"SPA (",[756,1735,1736],{},"spa: true",[777,1738,1740],{"className":779,"code":1739,"filename":781,"language":782,"meta":783,"style":783},"export default defineNuxtConfig({\n  modules: ['@nuxthub\u002Fcore', '@nuxt\u002Fui', '@frigear-nu\u002Fusers', '@frigear-nu\u002Fdesktop'],\n  desktop: {\n    appId: 'nu.frigear.desk',\n    appName: 'Desk',\n    mode: 'local',\n  },\n  authentication: {\n    settings: {\n      \u002F\u002F Enables the provider. Local mode turns the browser handoff on (`{ handoff: true }`); `{ handoff: false }` keeps\n      \u002F\u002F it off.\n      oauth: { frigear: true },\n      pages: { login: true },\n    },\n  },\n  runtimeConfig: {\n    \u002F\u002F The issuer and the public client id (`NUXT_FRIGEAR_SSO_URL`, `NUXT_FRIGEAR_SSO_CLIENT_ID`). No secret.\n    frigear: { sso: { url: 'https:\u002F\u002Ffrigear.nu', clientId: 'desk' } },\n  },\n  hub: {\n    db: { dialect: 'sqlite', driver: 'libsql', connection: { url: 'file:.\u002F.data\u002Fdb\u002Fsqlite.db' } },\n  },\n})\n",[756,1741,1742,1754,1797,1805,1819,1833,1847,1851,1860,1869,1874,1879,1899,1918,1924,1929,1939,1945,1991,1996,2005,2058,2063],{"__ignoreMap":783},[787,1743,1744,1746,1748,1750,1752],{"class":789,"line":790},[787,1745,794],{"class":793},[787,1747,797],{"class":793},[787,1749,801],{"class":800},[787,1751,805],{"class":804},[787,1753,809],{"class":808},[787,1755,1756,1758,1760,1762,1764,1766,1768,1770,1772,1775,1777,1779,1781,1783,1785,1787,1789,1791,1793,1795],{"class":789,"line":812},[787,1757,816],{"class":815},[787,1759,819],{"class":808},[787,1761,822],{"class":804},[787,1763,825],{"class":808},[787,1765,829],{"class":828},[787,1767,825],{"class":808},[787,1769,834],{"class":808},[787,1771,837],{"class":808},[787,1773,1774],{"class":828},"@nuxt\u002Fui",[787,1776,825],{"class":808},[787,1778,834],{"class":808},[787,1780,837],{"class":808},[787,1782,840],{"class":828},[787,1784,825],{"class":808},[787,1786,834],{"class":808},[787,1788,837],{"class":808},[787,1790,849],{"class":828},[787,1792,825],{"class":808},[787,1794,854],{"class":804},[787,1796,857],{"class":808},[787,1798,1799,1801,1803],{"class":789,"line":860},[787,1800,863],{"class":815},[787,1802,819],{"class":808},[787,1804,868],{"class":808},[787,1806,1807,1809,1811,1813,1815,1817],{"class":789,"line":871},[787,1808,874],{"class":815},[787,1810,819],{"class":808},[787,1812,837],{"class":808},[787,1814,881],{"class":828},[787,1816,825],{"class":808},[787,1818,857],{"class":808},[787,1820,1821,1823,1825,1827,1829,1831],{"class":789,"line":888},[787,1822,891],{"class":815},[787,1824,819],{"class":808},[787,1826,837],{"class":808},[787,1828,898],{"class":828},[787,1830,825],{"class":808},[787,1832,857],{"class":808},[787,1834,1835,1837,1839,1841,1843,1845],{"class":789,"line":905},[787,1836,908],{"class":815},[787,1838,819],{"class":808},[787,1840,837],{"class":808},[787,1842,915],{"class":828},[787,1844,825],{"class":808},[787,1846,857],{"class":808},[787,1848,1849],{"class":789,"line":922},[787,1850,925],{"class":808},[787,1852,1853,1856,1858],{"class":789,"line":928},[787,1854,1855],{"class":815},"  authentication",[787,1857,819],{"class":808},[787,1859,868],{"class":808},[787,1861,1862,1865,1867],{"class":789,"line":935},[787,1863,1864],{"class":815},"    settings",[787,1866,819],{"class":808},[787,1868,868],{"class":808},[787,1870,1871],{"class":789,"line":945},[787,1872,1873],{"class":931},"      \u002F\u002F Enables the provider. Local mode turns the browser handoff on (`{ handoff: true }`); `{ handoff: false }` keeps\n",[787,1875,1876],{"class":789,"line":1009},[787,1877,1878],{"class":931},"      \u002F\u002F it off.\n",[787,1880,1881,1884,1886,1888,1891,1893,1897],{"class":789,"line":1014},[787,1882,1883],{"class":815},"      oauth",[787,1885,819],{"class":808},[787,1887,953],{"class":808},[787,1889,1890],{"class":815}," frigear",[787,1892,819],{"class":808},[787,1894,1896],{"class":1895},"sfNiH"," true",[787,1898,1006],{"class":808},[787,1900,1902,1905,1907,1909,1912,1914,1916],{"class":789,"line":1901},13,[787,1903,1904],{"class":815},"      pages",[787,1906,819],{"class":808},[787,1908,953],{"class":808},[787,1910,1911],{"class":815}," login",[787,1913,819],{"class":808},[787,1915,1896],{"class":1895},[787,1917,1006],{"class":808},[787,1919,1921],{"class":789,"line":1920},14,[787,1922,1923],{"class":808},"    },\n",[787,1925,1927],{"class":789,"line":1926},15,[787,1928,925],{"class":808},[787,1930,1932,1935,1937],{"class":789,"line":1931},16,[787,1933,1934],{"class":815},"  runtimeConfig",[787,1936,819],{"class":808},[787,1938,868],{"class":808},[787,1940,1942],{"class":789,"line":1941},17,[787,1943,1944],{"class":931},"    \u002F\u002F The issuer and the public client id (`NUXT_FRIGEAR_SSO_URL`, `NUXT_FRIGEAR_SSO_CLIENT_ID`). No secret.\n",[787,1946,1948,1951,1953,1955,1958,1960,1962,1964,1966,1968,1971,1973,1975,1978,1980,1982,1985,1987,1989],{"class":789,"line":1947},18,[787,1949,1950],{"class":815},"    frigear",[787,1952,819],{"class":808},[787,1954,953],{"class":808},[787,1956,1957],{"class":815}," sso",[787,1959,819],{"class":808},[787,1961,953],{"class":808},[787,1963,991],{"class":815},[787,1965,819],{"class":808},[787,1967,837],{"class":808},[787,1969,1970],{"class":828},"https:\u002F\u002Ffrigear.nu",[787,1972,825],{"class":808},[787,1974,834],{"class":808},[787,1976,1977],{"class":815}," clientId",[787,1979,819],{"class":808},[787,1981,837],{"class":808},[787,1983,1984],{"class":828},"desk",[787,1986,825],{"class":808},[787,1988,1003],{"class":808},[787,1990,1006],{"class":808},[787,1992,1994],{"class":789,"line":1993},19,[787,1995,925],{"class":808},[787,1997,1999,2001,2003],{"class":789,"line":1998},20,[787,2000,938],{"class":815},[787,2002,819],{"class":808},[787,2004,868],{"class":808},[787,2006,2008,2010,2012,2014,2016,2018,2020,2022,2024,2026,2028,2030,2032,2034,2036,2038,2040,2042,2044,2046,2048,2050,2052,2054,2056],{"class":789,"line":2007},21,[787,2009,948],{"class":815},[787,2011,819],{"class":808},[787,2013,953],{"class":808},[787,2015,956],{"class":815},[787,2017,819],{"class":808},[787,2019,837],{"class":808},[787,2021,963],{"class":828},[787,2023,825],{"class":808},[787,2025,834],{"class":808},[787,2027,970],{"class":815},[787,2029,819],{"class":808},[787,2031,837],{"class":808},[787,2033,977],{"class":828},[787,2035,825],{"class":808},[787,2037,834],{"class":808},[787,2039,984],{"class":815},[787,2041,819],{"class":808},[787,2043,953],{"class":808},[787,2045,991],{"class":815},[787,2047,819],{"class":808},[787,2049,837],{"class":808},[787,2051,998],{"class":828},[787,2053,825],{"class":808},[787,2055,1003],{"class":808},[787,2057,1006],{"class":808},[787,2059,2061],{"class":789,"line":2060},22,[787,2062,925],{"class":808},[787,2064,2066,2068],{"class":789,"line":2065},23,[787,2067,1017],{"class":808},[787,2069,1020],{"class":804},[738,2071,2072,2073,2075,2076,2079],{},"The handoff adds the ",[756,2074,1718],{}," table: generate a migration (",[756,2077,2078],{},"nuxt db generate",") and commit it. The\nbundled server applies it on its next start.",[738,2081,2082,2083,2086],{},"Register the app at the issuer as a public client, with the loopback redirect URI and no port. OAuth Server accepts\n",[756,2084,2085],{},"http:\u002F\u002F127.0.0.1:\u003Cany port>\u002Fauth\u002Ffrigear"," for it, so the port picked on every start works:",[777,2088,2091],{"className":779,"code":2089,"filename":2090,"language":782,"meta":783,"style":783},"export default defineNuxtConfig({\n  oauthServer: {\n    clients: [{\n      id: 'desk',\n      name: 'Desk',\n      \u002F\u002F The bundled server's callback, on whatever port it picked.\n      redirectUris: ['http:\u002F\u002F127.0.0.1\u002Fauth\u002Ffrigear'],\n    }],\n  },\n})\n","nuxt.config.ts (issuer)",[756,2092,2093,2105,2114,2125,2140,2155,2160,2180,2189,2193],{"__ignoreMap":783},[787,2094,2095,2097,2099,2101,2103],{"class":789,"line":790},[787,2096,794],{"class":793},[787,2098,797],{"class":793},[787,2100,801],{"class":800},[787,2102,805],{"class":804},[787,2104,809],{"class":808},[787,2106,2107,2110,2112],{"class":789,"line":812},[787,2108,2109],{"class":815},"  oauthServer",[787,2111,819],{"class":808},[787,2113,868],{"class":808},[787,2115,2116,2119,2121,2123],{"class":789,"line":860},[787,2117,2118],{"class":815},"    clients",[787,2120,819],{"class":808},[787,2122,822],{"class":804},[787,2124,809],{"class":808},[787,2126,2127,2130,2132,2134,2136,2138],{"class":789,"line":871},[787,2128,2129],{"class":815},"      id",[787,2131,819],{"class":808},[787,2133,837],{"class":808},[787,2135,1984],{"class":828},[787,2137,825],{"class":808},[787,2139,857],{"class":808},[787,2141,2142,2145,2147,2149,2151,2153],{"class":789,"line":888},[787,2143,2144],{"class":815},"      name",[787,2146,819],{"class":808},[787,2148,837],{"class":808},[787,2150,898],{"class":828},[787,2152,825],{"class":808},[787,2154,857],{"class":808},[787,2156,2157],{"class":789,"line":905},[787,2158,2159],{"class":931},"      \u002F\u002F The bundled server's callback, on whatever port it picked.\n",[787,2161,2162,2165,2167,2169,2171,2174,2176,2178],{"class":789,"line":922},[787,2163,2164],{"class":815},"      redirectUris",[787,2166,819],{"class":808},[787,2168,822],{"class":804},[787,2170,825],{"class":808},[787,2172,2173],{"class":828},"http:\u002F\u002F127.0.0.1\u002Fauth\u002Ffrigear",[787,2175,825],{"class":808},[787,2177,854],{"class":804},[787,2179,857],{"class":808},[787,2181,2182,2185,2187],{"class":789,"line":928},[787,2183,2184],{"class":808},"    }",[787,2186,854],{"class":804},[787,2188,857],{"class":808},[787,2190,2191],{"class":789,"line":935},[787,2192,925],{"class":808},[787,2194,2195,2197],{"class":789,"line":945},[787,2196,1017],{"class":808},[787,2198,1020],{"class":804},[738,2200,2201,2202,2205],{},"The client needs no ",[756,2203,2204],{},"corsOrigins",": the window only calls its own server, the browser reaches the issuer by\nnavigation, and the bundled server exchanges the code itself.",[738,2207,2208],{},"How it works:",[1117,2210,2211,2214,2225,2234],{},[1120,2212,2213],{},"The sign-in page's frigear.nu button starts an attempt on the bundled server, which answers the issuer's authorize\nURL (PKCE, with a nonce) and binds the attempt to the window with an httpOnly cookie.",[1120,2215,2216,2217,2220,2221,2224],{},"Desktop opens that URL in the system browser with ",[756,2218,2219],{},"@tauri-apps\u002Fplugin-opener"," (the ",[756,2222,2223],{},"auth:frigear:open"," hook).",[1120,2226,2227,2228,2231,2232,775],{},"The issuer sends the browser back to ",[756,2229,2230],{},"http:\u002F\u002F127.0.0.1:\u003Cport>\u002Fauth\u002Ffrigear",". The bundled server exchanges the code\nand creates or links the user. The browser shows \"Signed in\" and opens ",[756,2233,1572],{},[1120,2235,2236],{},"That deep link only brings the window to the front: it never navigates and carries nothing. Meanwhile the window\npolls the attempt, and once it is complete, collects its cookie session.",[738,2238,2239,2240,2243,2244,2246,2247,1126,2249,2252],{},"The full flow and its security notes are on ",[742,2241,191],{"href":2242},"\u002Fmodules\u002Fidentity\u002Fauth\u002Foauth-providers#sign-in-in-the-system-browser",".\nAttempts are only accepted by a server reached on ",[756,2245,758],{}," from ",[756,2248,758],{},[756,2250,2251],{},"403 handoff_not_local"," otherwise).\nThe bundled server only listens there.",[1083,2254,2255,2257],{"color":1085,"icon":1086},[1088,2256,1090],{}," \"Log in with frigear.nu\" opens the system browser. After signing in there, the browser says\n\"Signed in\", the app comes to the front, and the window is signed in.",[738,2259,2260,2261,1138,2263,2266,2267,2270,2271,2274],{},"The handoff needs ",[756,2262,2219],{},[756,2264,2265],{},"@tauri-apps\u002Fplugin-deep-link"," (required in the manifest, so\n",[756,2268,2269],{},"frigear-desktop doctor"," reports them when they are missing). The generated capability already grants the bundled\nserver's pages the opener, deep-link and window-focus permissions. With ",[756,2272,2273],{},"deepLinks.schemes: false"," no scheme is\nregistered, so there is no return link: the window still signs in, the user switches back by hand.",[2276,2277,2278,2279,1091,2281,1138,2283,2285,2286,2289,2290,2293,2294,2297,2298,775],"warning",{},"Without ",[756,2280,2219],{},[756,2282,1238],{},[756,2284,1209],{}," fail (",[756,2287,2288],{},"nuxt prepare"," only warns): the sign-in would\nfall back to ",[756,2291,2292],{},"window.open",", which does nothing in a Tauri window. Install it (",[756,2295,2296],{},"pnpm add @tauri-apps\u002Fplugin-opener","), or\nturn the handoff off with ",[756,2299,2300],{},"oauth: { frigear: { handoff: false } }",[2276,2302,2303],{},"Tested end to end against the compiled server and a stand-in issuer (PKCE checked, no secret sent), not yet in a real\nTauri window, with a passkey at frigear.nu, or with the deep link opening the installed app.",[1112,2305,768],{"id":2306},"sign-in-at-a-remote-issuer",[738,2308,1472,2309,2312,2313,2315,2316,2318],{},[742,2310,2311],{"href":196},"Auth in resource mode",", people sign in at an\n",[742,2314,1630],{"href":91},", such as your website running ",[742,2317,233],{"href":234},". The\nbundled server keeps its own database, users and server modules, and accepts the issuer's access tokens. Use it when\nthe desktop app belongs to accounts that already exist elsewhere, but keeps its data on the machine.",[777,2320,2322],{"className":1023,"code":2321,"language":1025,"meta":783,"style":783},"pnpm add @frigear-nu\u002Fauth @frigear-nu\u002Foauth-resource @frigear-nu\u002Fauthorization\n",[756,2323,2324],{"__ignoreMap":783},[787,2325,2326,2329,2332,2335,2338],{"class":789,"line":790},[787,2327,2328],{"class":1032},"pnpm",[787,2330,2331],{"class":828}," add",[787,2333,2334],{"class":828}," @frigear-nu\u002Fauth",[787,2336,2337],{"class":828}," @frigear-nu\u002Foauth-resource",[787,2339,2340],{"class":828}," @frigear-nu\u002Fauthorization\n",[777,2342,2344],{"className":779,"code":2343,"filename":781,"language":782,"meta":783,"style":783},"export default defineNuxtConfig({\n  modules: ['@nuxthub\u002Fcore', '@nuxt\u002Fui', '@frigear-nu\u002Foauth-resource', '@frigear-nu\u002Fauthorization', '@frigear-nu\u002Fdesktop'],\n  desktop: {\n    appId: 'nu.frigear.desk',\n    appName: 'Desk',\n    mode: 'local',\n  },\n  authentication: {\n    mode: 'resource',\n    client: {\n      issuer: 'https:\u002F\u002Ffrigear.nu',\n      clientId: 'desk',\n      scopes: ['openid', 'profile', 'email', 'offline_access'],\n      \u002F\u002F `native.scheme` comes from `appId`: the redirect URI is `nu.frigear.desk:\u002Fauth\u002Fcallback`.\n    },\n  },\n  \u002F\u002F The issuer's access tokens, checked against its keys. Without a resolver the build fails.\n  oauthResource: {\n    issuer: 'https:\u002F\u002Ffrigear.nu',\n    audience: 'frigear-services',\n  },\n  routeRules: {\n    '\u002F**': { authenticated: true },\n  },\n  hub: {\n    db: { dialect: 'sqlite', driver: 'libsql', connection: { url: 'file:.\u002F.data\u002Fdb\u002Fsqlite.db' } },\n  },\n})\n",[756,2345,2346,2358,2410,2418,2432,2446,2460,2464,2472,2486,2495,2510,2525,2572,2577,2581,2585,2590,2599,2614,2630,2634,2643,2666,2671,2680,2733,2738],{"__ignoreMap":783},[787,2347,2348,2350,2352,2354,2356],{"class":789,"line":790},[787,2349,794],{"class":793},[787,2351,797],{"class":793},[787,2353,801],{"class":800},[787,2355,805],{"class":804},[787,2357,809],{"class":808},[787,2359,2360,2362,2364,2366,2368,2370,2372,2374,2376,2378,2380,2382,2384,2387,2389,2391,2393,2396,2398,2400,2402,2404,2406,2408],{"class":789,"line":812},[787,2361,816],{"class":815},[787,2363,819],{"class":808},[787,2365,822],{"class":804},[787,2367,825],{"class":808},[787,2369,829],{"class":828},[787,2371,825],{"class":808},[787,2373,834],{"class":808},[787,2375,837],{"class":808},[787,2377,1774],{"class":828},[787,2379,825],{"class":808},[787,2381,834],{"class":808},[787,2383,837],{"class":808},[787,2385,2386],{"class":828},"@frigear-nu\u002Foauth-resource",[787,2388,825],{"class":808},[787,2390,834],{"class":808},[787,2392,837],{"class":808},[787,2394,2395],{"class":828},"@frigear-nu\u002Fauthorization",[787,2397,825],{"class":808},[787,2399,834],{"class":808},[787,2401,837],{"class":808},[787,2403,849],{"class":828},[787,2405,825],{"class":808},[787,2407,854],{"class":804},[787,2409,857],{"class":808},[787,2411,2412,2414,2416],{"class":789,"line":860},[787,2413,863],{"class":815},[787,2415,819],{"class":808},[787,2417,868],{"class":808},[787,2419,2420,2422,2424,2426,2428,2430],{"class":789,"line":871},[787,2421,874],{"class":815},[787,2423,819],{"class":808},[787,2425,837],{"class":808},[787,2427,881],{"class":828},[787,2429,825],{"class":808},[787,2431,857],{"class":808},[787,2433,2434,2436,2438,2440,2442,2444],{"class":789,"line":888},[787,2435,891],{"class":815},[787,2437,819],{"class":808},[787,2439,837],{"class":808},[787,2441,898],{"class":828},[787,2443,825],{"class":808},[787,2445,857],{"class":808},[787,2447,2448,2450,2452,2454,2456,2458],{"class":789,"line":905},[787,2449,908],{"class":815},[787,2451,819],{"class":808},[787,2453,837],{"class":808},[787,2455,915],{"class":828},[787,2457,825],{"class":808},[787,2459,857],{"class":808},[787,2461,2462],{"class":789,"line":922},[787,2463,925],{"class":808},[787,2465,2466,2468,2470],{"class":789,"line":928},[787,2467,1855],{"class":815},[787,2469,819],{"class":808},[787,2471,868],{"class":808},[787,2473,2474,2476,2478,2480,2482,2484],{"class":789,"line":935},[787,2475,908],{"class":815},[787,2477,819],{"class":808},[787,2479,837],{"class":808},[787,2481,1616],{"class":828},[787,2483,825],{"class":808},[787,2485,857],{"class":808},[787,2487,2488,2491,2493],{"class":789,"line":945},[787,2489,2490],{"class":815},"    client",[787,2492,819],{"class":808},[787,2494,868],{"class":808},[787,2496,2497,2500,2502,2504,2506,2508],{"class":789,"line":1009},[787,2498,2499],{"class":815},"      issuer",[787,2501,819],{"class":808},[787,2503,837],{"class":808},[787,2505,1970],{"class":828},[787,2507,825],{"class":808},[787,2509,857],{"class":808},[787,2511,2512,2515,2517,2519,2521,2523],{"class":789,"line":1014},[787,2513,2514],{"class":815},"      clientId",[787,2516,819],{"class":808},[787,2518,837],{"class":808},[787,2520,1984],{"class":828},[787,2522,825],{"class":808},[787,2524,857],{"class":808},[787,2526,2527,2530,2532,2534,2536,2539,2541,2543,2545,2548,2550,2552,2554,2557,2559,2561,2563,2566,2568,2570],{"class":789,"line":1901},[787,2528,2529],{"class":815},"      scopes",[787,2531,819],{"class":808},[787,2533,822],{"class":804},[787,2535,825],{"class":808},[787,2537,2538],{"class":828},"openid",[787,2540,825],{"class":808},[787,2542,834],{"class":808},[787,2544,837],{"class":808},[787,2546,2547],{"class":828},"profile",[787,2549,825],{"class":808},[787,2551,834],{"class":808},[787,2553,837],{"class":808},[787,2555,2556],{"class":828},"email",[787,2558,825],{"class":808},[787,2560,834],{"class":808},[787,2562,837],{"class":808},[787,2564,2565],{"class":828},"offline_access",[787,2567,825],{"class":808},[787,2569,854],{"class":804},[787,2571,857],{"class":808},[787,2573,2574],{"class":789,"line":1920},[787,2575,2576],{"class":931},"      \u002F\u002F `native.scheme` comes from `appId`: the redirect URI is `nu.frigear.desk:\u002Fauth\u002Fcallback`.\n",[787,2578,2579],{"class":789,"line":1926},[787,2580,1923],{"class":808},[787,2582,2583],{"class":789,"line":1931},[787,2584,925],{"class":808},[787,2586,2587],{"class":789,"line":1941},[787,2588,2589],{"class":931},"  \u002F\u002F The issuer's access tokens, checked against its keys. Without a resolver the build fails.\n",[787,2591,2592,2595,2597],{"class":789,"line":1947},[787,2593,2594],{"class":815},"  oauthResource",[787,2596,819],{"class":808},[787,2598,868],{"class":808},[787,2600,2601,2604,2606,2608,2610,2612],{"class":789,"line":1993},[787,2602,2603],{"class":815},"    issuer",[787,2605,819],{"class":808},[787,2607,837],{"class":808},[787,2609,1970],{"class":828},[787,2611,825],{"class":808},[787,2613,857],{"class":808},[787,2615,2616,2619,2621,2623,2626,2628],{"class":789,"line":1998},[787,2617,2618],{"class":815},"    audience",[787,2620,819],{"class":808},[787,2622,837],{"class":808},[787,2624,2625],{"class":828},"frigear-services",[787,2627,825],{"class":808},[787,2629,857],{"class":808},[787,2631,2632],{"class":789,"line":2007},[787,2633,925],{"class":808},[787,2635,2636,2639,2641],{"class":789,"line":2060},[787,2637,2638],{"class":815},"  routeRules",[787,2640,819],{"class":808},[787,2642,868],{"class":808},[787,2644,2645,2648,2651,2653,2655,2657,2660,2662,2664],{"class":789,"line":2065},[787,2646,2647],{"class":808},"    '",[787,2649,2650],{"class":815},"\u002F**",[787,2652,825],{"class":808},[787,2654,819],{"class":808},[787,2656,953],{"class":808},[787,2658,2659],{"class":815}," authenticated",[787,2661,819],{"class":808},[787,2663,1896],{"class":1895},[787,2665,1006],{"class":808},[787,2667,2669],{"class":789,"line":2668},24,[787,2670,925],{"class":808},[787,2672,2674,2676,2678],{"class":789,"line":2673},25,[787,2675,938],{"class":815},[787,2677,819],{"class":808},[787,2679,868],{"class":808},[787,2681,2683,2685,2687,2689,2691,2693,2695,2697,2699,2701,2703,2705,2707,2709,2711,2713,2715,2717,2719,2721,2723,2725,2727,2729,2731],{"class":789,"line":2682},26,[787,2684,948],{"class":815},[787,2686,819],{"class":808},[787,2688,953],{"class":808},[787,2690,956],{"class":815},[787,2692,819],{"class":808},[787,2694,837],{"class":808},[787,2696,963],{"class":828},[787,2698,825],{"class":808},[787,2700,834],{"class":808},[787,2702,970],{"class":815},[787,2704,819],{"class":808},[787,2706,837],{"class":808},[787,2708,977],{"class":828},[787,2710,825],{"class":808},[787,2712,834],{"class":808},[787,2714,984],{"class":815},[787,2716,819],{"class":808},[787,2718,953],{"class":808},[787,2720,991],{"class":815},[787,2722,819],{"class":808},[787,2724,837],{"class":808},[787,2726,998],{"class":828},[787,2728,825],{"class":808},[787,2730,1003],{"class":808},[787,2732,1006],{"class":808},[787,2734,2736],{"class":789,"line":2735},27,[787,2737,925],{"class":808},[787,2739,2741,2743],{"class":789,"line":2740},28,[787,2742,1017],{"class":808},[787,2744,1020],{"class":804},[738,2746,2747,2751,2752,775],{},[742,2748,2749],{"href":250},[756,2750,2386],{}," is required: resource mode accepts only bearer\ntokens, and it is the resolver that checks them. It also installs ",[742,2753,199],{"href":200},[738,2755,2756,2757,2760,2761,2763],{},"Register the app at the issuer as a public client. The redirect URI is the deep link, the same as in remote mode:\n",[756,2758,2759],{},"\u003CappId in lowercase>:\u002Fauth\u002Fcallback",". The window calls the issuer from ",[756,2762,1110],{},", on a port picked at\nevery start, so the client allows the loopback IP on any port for CORS:",[777,2765,2767],{"className":779,"code":2766,"filename":2090,"language":782,"meta":783,"style":783},"export default defineNuxtConfig({\n  oauthServer: {\n    accessTokenAudience: 'frigear-services',\n    clients: [{\n      id: 'desk',\n      name: 'Desk',\n      \u002F\u002F The deep link of the desktop app.\n      redirectUris: ['nu.frigear.desk:\u002Fauth\u002Fcallback'],\n      \u002F\u002F Only accepted under `nuxt dev`: the window loads the app's dev server.\n      devRedirectUris: ['http:\u002F\u002Flocalhost:3000\u002Fauth\u002Fcallback'],\n      \u002F\u002F The bundled server's origin, on whatever port it picked.\n      corsOrigins: ['http:\u002F\u002F127.0.0.1:*'],\n    }],\n  },\n})\n",[756,2768,2769,2781,2789,2804,2814,2828,2842,2847,2866,2871,2891,2896,2916,2924,2928],{"__ignoreMap":783},[787,2770,2771,2773,2775,2777,2779],{"class":789,"line":790},[787,2772,794],{"class":793},[787,2774,797],{"class":793},[787,2776,801],{"class":800},[787,2778,805],{"class":804},[787,2780,809],{"class":808},[787,2782,2783,2785,2787],{"class":789,"line":812},[787,2784,2109],{"class":815},[787,2786,819],{"class":808},[787,2788,868],{"class":808},[787,2790,2791,2794,2796,2798,2800,2802],{"class":789,"line":860},[787,2792,2793],{"class":815},"    accessTokenAudience",[787,2795,819],{"class":808},[787,2797,837],{"class":808},[787,2799,2625],{"class":828},[787,2801,825],{"class":808},[787,2803,857],{"class":808},[787,2805,2806,2808,2810,2812],{"class":789,"line":871},[787,2807,2118],{"class":815},[787,2809,819],{"class":808},[787,2811,822],{"class":804},[787,2813,809],{"class":808},[787,2815,2816,2818,2820,2822,2824,2826],{"class":789,"line":888},[787,2817,2129],{"class":815},[787,2819,819],{"class":808},[787,2821,837],{"class":808},[787,2823,1984],{"class":828},[787,2825,825],{"class":808},[787,2827,857],{"class":808},[787,2829,2830,2832,2834,2836,2838,2840],{"class":789,"line":905},[787,2831,2144],{"class":815},[787,2833,819],{"class":808},[787,2835,837],{"class":808},[787,2837,898],{"class":828},[787,2839,825],{"class":808},[787,2841,857],{"class":808},[787,2843,2844],{"class":789,"line":922},[787,2845,2846],{"class":931},"      \u002F\u002F The deep link of the desktop app.\n",[787,2848,2849,2851,2853,2855,2857,2860,2862,2864],{"class":789,"line":928},[787,2850,2164],{"class":815},[787,2852,819],{"class":808},[787,2854,822],{"class":804},[787,2856,825],{"class":808},[787,2858,2859],{"class":828},"nu.frigear.desk:\u002Fauth\u002Fcallback",[787,2861,825],{"class":808},[787,2863,854],{"class":804},[787,2865,857],{"class":808},[787,2867,2868],{"class":789,"line":935},[787,2869,2870],{"class":931},"      \u002F\u002F Only accepted under `nuxt dev`: the window loads the app's dev server.\n",[787,2872,2873,2876,2878,2880,2882,2885,2887,2889],{"class":789,"line":945},[787,2874,2875],{"class":815},"      devRedirectUris",[787,2877,819],{"class":808},[787,2879,822],{"class":804},[787,2881,825],{"class":808},[787,2883,2884],{"class":828},"http:\u002F\u002Flocalhost:3000\u002Fauth\u002Fcallback",[787,2886,825],{"class":808},[787,2888,854],{"class":804},[787,2890,857],{"class":808},[787,2892,2893],{"class":789,"line":1009},[787,2894,2895],{"class":931},"      \u002F\u002F The bundled server's origin, on whatever port it picked.\n",[787,2897,2898,2901,2903,2905,2907,2910,2912,2914],{"class":789,"line":1014},[787,2899,2900],{"class":815},"      corsOrigins",[787,2902,819],{"class":808},[787,2904,822],{"class":804},[787,2906,825],{"class":808},[787,2908,2909],{"class":828},"http:\u002F\u002F127.0.0.1:*",[787,2911,825],{"class":808},[787,2913,854],{"class":804},[787,2915,857],{"class":808},[787,2917,2918,2920,2922],{"class":789,"line":1901},[787,2919,2184],{"class":808},[787,2921,854],{"class":804},[787,2923,857],{"class":808},[787,2925,2926],{"class":789,"line":1920},[787,2927,925],{"class":808},[787,2929,2930,2932],{"class":789,"line":1926},[787,2931,1017],{"class":808},[787,2933,1020],{"class":804},[1083,2935,2936,2938,2939,2942,2943,2946],{"color":1085,"icon":1086},[1088,2937,1090],{}," the app opens on the sign-in page. Signing in opens the system browser, and the deep link\nbrings you back signed in. ",[756,2940,2941],{},"\u002Fapi\u002F..."," routes of the bundled server answer ",[756,2944,2945],{},"401"," without a token, and the first\nsigned-in request creates your user in the local database.",[738,2948,2949],{},"What changes compared with server auth:",[1247,2951,2952,2970,2976,3011,3028,3048,3073],{},[1120,2953,2954,2957,2958,2962,2963,2246,2966,2969],{},[1088,2955,2956],{},"Sign-in."," It happens in the system browser, and the redirect comes back as a deep link, as in\n",[742,2959,2961],{"href":2960},"\u002Fmodules\u002Finterface\u002Fdesktop#sign-in","remote mode",". Desktop fills in ",[756,2964,2965],{},"client.native.scheme",[756,2967,2968],{},"appId"," and\nregisters the scheme. The capability already grants the server's pages the deep-link, opener and store permissions.",[1120,2971,2972,2975],{},[1088,2973,2974],{},"No sign-in pages, no cookie sessions."," There is no registration, password, passkey or emailed link on the bundled\nserver. Every request carries the access token as a bearer token.",[1120,2977,2978,2981,2982,2984,2985,2987,2988,2991,2992,2995,2996,1266,2999,3002,3003,3006,3007,775],{},[1088,2979,2980],{},"Session-only permissions are denied."," A ",[756,2983,1676],{}," permission answers ",[756,2986,1685],{},", such as\nAuthorization's ",[756,2989,2990],{},"roles:assign"," or Users' ",[756,2993,2994],{},"users:manage",". Give roles with ",[756,2997,2998],{},"authorization.roles",[756,3000,3001],{},"defaultRoles"," or the\n",[756,3004,3005],{},"authorization:roles"," hook. See ",[742,3008,3010],{"href":3009},"\u002Fmodules\u002Fidentity\u002Fauth\u002Fresource-mode#what-a-token-may-do","What a token may do",[1120,3012,3013,3016,3017,3020,3021,3023,3024,3027],{},[1088,3014,3015],{},"The SPA shell."," Resource mode renders on the client only, so ",[756,3018,3019],{},"spa"," defaults to ",[756,3022,1540],{},", and ",[756,3025,3026],{},"spa: false"," fails the\nbuild. The bundled server still serves the pages (the SPA shell and its inlined assets) and the API. The loading page\nand the navigation to the server stay the same.",[1120,3029,3030,3033,3034,1266,3038,3041,3042,3044,3045,3047],{},[1088,3031,3032],{},"Not applied:"," the ",[742,3035,3037],{"href":3036},"#offline-defaults","offline defaults",[756,3039,3040],{},"secureCookie",", and the ",[756,3043,1469],{},"\nsecret. ",[756,3046,1415],{}," is still generated.",[1120,3049,3050,3053,3054,3057,3058,3060,3061,3064,3065,3068,3069,3072],{},[1088,3051,3052],{},"The port."," With ",[756,3055,3056],{},"local.port: 0"," the origin changes on every start. OAuth Server allows it through\n",[756,3059,2909],{},"; an issuer that only takes exact origins needs a fixed ",[756,3062,3063],{},"local.port"," and that origin instead (a\nfixed port fails to start when another program uses it, so pick an unusual one). The sign-in is kept in the Tauri\nstore (",[756,3066,3067],{},"@tauri-apps\u002Fplugin-store",", required with port 0), since ",[756,3070,3071],{},"localStorage"," follows the origin.",[1120,3074,3075,3078],{},[1088,3076,3077],{},"Online sign-in."," Signing in needs the issuer. The data and a signed-in session keep working offline until the\naccess token expires; refreshing it needs the issuer again.",[1112,3080,3082],{"id":3081},"the-session-cookie","The session cookie",[738,3084,3085,3086,3089,3090,3092,3093,3095,3096,3099],{},"Local mode drops ",[756,3087,3088],{},"Secure"," from the session cookie (nuxt-auth-utils', ",[756,3091,3088],{}," by default). WKWebView (macOS) and\nWebKitGTK (Linux) refuse a ",[756,3094,3088],{}," cookie set over ",[756,3097,3098],{},"http:\u002F\u002F127.0.0.1",", so the session would never come back and\nevery sign-in would end signed out:",[1247,3101,3102,3124,3137],{},[1120,3103,3104,3107,3108,3110,3111,3113,3114,1138,3119,775],{},[1088,3105,3106],{},"WKWebView:"," checked on macOS 26 with a WKWebView loading ",[756,3109,1110],{},": of a ",[756,3112,3088],{}," and a plain\ncookie in one response, only the plain one was stored and sent back. WebKit tracks this as\n",[742,3115,3118],{"href":3116,"rel":3117},"https:\u002F\u002Fbugs.webkit.org\u002Fshow_bug.cgi?id=232088",[746],"bug 232088",[742,3120,3123],{"href":3121,"rel":3122},"https:\u002F\u002Fbugs.webkit.org\u002Fshow_bug.cgi?id=281149",[746],"bug 281149",[1120,3125,3126,3129,3130,3132,3133,3136],{},[1088,3127,3128],{},"WebKitGTK:"," libsoup's cookie jar refuses to set a ",[756,3131,3088],{}," cookie for a URI that is not ",[756,3134,3135],{},"https",", and never sends\none to it. It has no loopback exception.",[1120,3138,3139,3142],{},[1088,3140,3141],{},"WebView2 (Chromium):"," treats loopback as a secure context and is reported to accept it, but that is not checked\nhere.",[738,3144,3145,3146,3148,3149,3152,3153,3156,3157,1292,3159,775],{},"The server only listens on ",[756,3147,758],{},", so the cookie never crosses a network either way. The cookie stays ",[756,3150,3151],{},"HttpOnly","\nand ",[756,3154,3155],{},"SameSite=Lax",". The handoff's attempt cookie is never ",[756,3158,3088],{},[756,3160,3161],{},"http",[738,3163,3164,3167,3168,3170,3171,3174,3175,754,3177,3180],{},[756,3165,3166],{},"desktop.local.secureCookie: true"," keeps ",[756,3169,3088],{},", for an app that only ships on Windows. Under\n",[756,3172,3173],{},"frigear-desktop dev"," the window loads ",[756,3176,1209],{},[756,3178,3179],{},"http:\u002F\u002Flocalhost",", where the same applies.",[1112,3182,3184],{"id":3183},"options","Options",[738,3186,3187,3188,3191,3192,775],{},"Options go under ",[756,3189,3190],{},"desktop.local",", and only apply with ",[756,3193,3194],{},"mode: 'local'",[1340,3196,3197,3212],{},[1343,3198,3199],{},[1346,3200,3201,3204,3207,3209],{},[1349,3202,3203],{},"Option",[1349,3205,3206],{},"Type",[1349,3208,1508],{},[1349,3210,3211],{},"Purpose",[1356,3213,3214,3240,3264,3290],{},[1346,3215,3216,3221,3226,3231],{},[1361,3217,3218],{},[756,3219,3220],{},"binaryName",[1361,3222,3223],{},[756,3224,3225],{},"string",[1361,3227,3228],{},[756,3229,3230],{},"\u003Clast segment of appId>-server",[1361,3232,3233,3234,1138,3237,775],{},"The sidecar's name: ",[756,3235,3236],{},"src-tauri\u002Fbinaries\u002F\u003CbinaryName>-\u003Ctriple>",[756,3238,3239],{},"bundle.externalBin",[1346,3241,3242,3247,3252,3256],{},[1361,3243,3244],{},[756,3245,3246],{},"port",[1361,3248,3249],{},[756,3250,3251],{},"number",[1361,3253,3254],{},[756,3255,1133],{},[1361,3257,3258,3259,3261,3262,775],{},"The port. ",[756,3260,1133],{}," lets the OS pick a free one, read back from ",[756,3263,1106],{},[1346,3265,3266,3270,3275,3279],{},[1361,3267,3268],{},[756,3269,3040],{},[1361,3271,3272],{},[756,3273,3274],{},"boolean",[1361,3276,3277],{},[756,3278,1525],{},[1361,3280,3281,3167,3283,3285,3286,3289],{},[756,3282,1540],{},[756,3284,3088],{}," on the session cookie, which WKWebView and WebKitGTK then drop. See ",[742,3287,3082],{"href":3288},"#the-session-cookie",". Ignored in resource mode.",[1346,3291,3292,3297,3301,3306],{},[1361,3293,3294],{},[756,3295,3296],{},"dataDirName",[1361,3298,3299],{},[756,3300,3225],{},[1361,3302,3303],{},[756,3304,3305],{},"data",[1361,3307,3308],{},"The folder inside the app-data folder that holds the database and secrets.",[738,3310,3311,3020,3313,3315,3316,775],{},[756,3312,3019],{},[756,3314,1525],{}," in local mode, because the bundled server renders the pages. With Auth in resource mode it\ndefaults to ",[756,3317,1540],{},[1112,3319,3321],{"id":3320},"what-the-module-writes","What the module writes",[738,3323,3324,3325,819],{},"On top of ",[742,3326,3328],{"href":3327},"\u002Fmodules\u002Finterface\u002Fdesktop#what-the-module-writes","the remote-mode files",[1247,3330,3331,3352,3366,3375],{},[1120,3332,3333,3336,3337,3340,3341,3344,3345,3347,3348,3351],{},[756,3334,3335],{},"tauri.conf.json",": ",[756,3338,3339],{},"build.frontendDist"," is ",[756,3342,3343],{},"frigear-loading"," (the loading page) and ",[756,3346,3239],{}," is\n",[756,3349,3350],{},"[\"binaries\u002F\u003CbinaryName>\"]",". Tauri appends the target triple.",[1120,3353,3354,3357,3358,3361,3362,3365],{},[756,3355,3356],{},"capabilities\u002Ffrigear.json"," adds ",[756,3359,3360],{},"remote.urls: [\"http:\u002F\u002F127.0.0.1:*\"]",", so the server's pages get the same\npermissions (window controls, opener, deep links). It grants no ",[756,3363,3364],{},"shell:*"," permission: the Rust code starts the\nsidecar, and the pages cannot start processes.",[1120,3367,3368,1239,3371,3374],{},[756,3369,3370],{},"src-tauri\u002Ffrigear-loading\u002Findex.html",[756,3372,3373],{},"sync"," owns and rewrites.",[1120,3376,3377,3379,3380,3383,3384,1266,3387,3383,3390,3393,3394,3397,3398,3400],{},[756,3378,1228],{}," also adds ",[756,3381,3382],{},"tauri-plugin-shell"," to ",[756,3385,3386],{},"Cargo.toml",[756,3388,3389],{},"\u002Fbinaries\u002F",[756,3391,3392],{},"src-tauri\u002F.gitignore",", and an empty\n",[756,3395,3396],{},"beforeBuildCommand",", since ",[756,3399,1094],{}," builds the server itself.",[1112,3402,3404],{"id":3403},"prerequisites","Prerequisites",[738,3406,3407,3408,3412,3413,3416,3417,3420,3421,775],{},"Everything ",[742,3409,3411],{"href":3410},"\u002Fmodules\u002Finterface\u002Fdesktop\u002Fcli#prerequisites","remote mode needs",", plus ",[742,3414,747],{"href":744,"rel":3415},[746]," on the\nbuild machine. Install it, or set ",[756,3418,3419],{},"BUN"," to its path. The app's users do not need Bun: the executable contains it.\nBun cross-compiles, so one machine can build the server for every target:\n",[756,3422,3423],{},"frigear-desktop sidecar --target x86_64-pc-windows-msvc",[1112,3425,3427],{"id":3426},"limitations","Limitations",[1247,3429,3430,3447,3455,3461,3467],{},[1120,3431,3432,3435,3436,3438,3439,3442,3443,3446],{},[1088,3433,3434],{},"Not tested in a real Tauri window yet."," The server side is tested end to end: the compiled binary migrates,\nprints ",[756,3437,1328],{},", registers, signs in, serves ",[756,3440,3441],{},"\u002Fapi\u002Fme"," and renders signed-in pages, and keeps its secrets and sessions\nacross restarts. The Rust shell in ",[756,3444,3445],{},"src\u002Flib.rs"," is not compiled in CI yet.",[1120,3448,3449,3452,3453,775],{},[1088,3450,3451],{},"Webview cookies:"," WKWebView was checked outside Tauri, WebKitGTK from libsoup's source, WebView2 not at all. See\n",[742,3454,3082],{"href":3288},[1120,3456,3457,3460],{},[1088,3458,3459],{},"Size."," The executable is about 70 MB (27 MB gzipped) for the mobile-standalone starter. Startup takes about\n0.3 s on a fresh database and 0.2 s after that, on an Apple Silicon Mac. The first start of a freshly signed binary\non macOS adds 1 to 2 s for Gatekeeper.",[1120,3462,3463,3466],{},[1088,3464,3465],{},"x86_64 and aarch64 only",", on macOS, Windows and Linux. Those are the targets Bun compiles for.",[1120,3468,3469,1091,3475,3477,3478,3480,3481,3484,3485,3488],{},[1088,3470,3471,3472,775],{},"No sidecar under ",[756,3473,3474],{},"dev",[756,3476,3173],{}," opens the window on ",[756,3479,1209],{},", with NuxtHub's own database in\n",[756,3482,3483],{},".data\u002F",". Run ",[756,3486,3487],{},"frigear-desktop sidecar"," and start the binary yourself to try the bundled server.",[3490,3491,3492],"style",{},"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 .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}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 .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 .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}",{"title":783,"searchDepth":812,"depth":812,"links":3494},[3495,3496,3497,3498,3499,3500,3501,3502,3503,3504,3505,3506],{"id":1114,"depth":812,"text":1115},{"id":1231,"depth":812,"text":1232},{"id":1337,"depth":812,"text":1338},{"id":1419,"depth":812,"text":1157},{"id":1492,"depth":812,"text":1493},{"id":1624,"depth":812,"text":763},{"id":2306,"depth":812,"text":768},{"id":3081,"depth":812,"text":3082},{"id":3183,"depth":812,"text":3184},{"id":3320,"depth":812,"text":3321},{"id":3403,"depth":812,"text":3404},{"id":3426,"depth":812,"text":3427},"Ship the whole Nuxt app, server modules included, inside the desktop app. It runs offline on a sqlite database in the user's app-data folder.","md",null,{},{"title":466},{"title":466,"description":3507},"EMI_YZmB55IuvtmhjDRIuFm1FGwJHuF5jWDCXvX6qR0",[3515,3517],{"title":462,"path":463,"stem":464,"description":3516,"children":-1},"Create and update the Tauri project, run the app in a window, build installers and check your machine.",{"title":470,"path":471,"stem":472,"description":3518,"children":-1},"A building block for modules that need a place or a layout, such as a location picker, a plane layout editor, web and mobile viewers with live layers, and the schemas and helpers to store the values.",1796157351564]