[{"data":1,"prerenderedAt":343},["ShallowReactive",2],{"navigation_docs":3,"-api-composables":129,"-api-composables-surround":338},[4,34,63,80,101,110],{"title":5,"path":6,"stem":7,"children":8,"page":33},"Getting Started","/getting-started","1.getting-started",[9,13,17,21,25,29],{"title":10,"path":11,"stem":12},"Quickstart","/getting-started/quickstart","1.getting-started/0.quickstart",{"title":14,"path":15,"stem":16},"Installation","/getting-started/installation","1.getting-started/1.installation",{"title":18,"path":19,"stem":20},"Server Configuration","/getting-started/configuration","1.getting-started/2.configuration",{"title":22,"path":23,"stem":24},"Client Setup","/getting-started/client-setup","1.getting-started/3.client-setup",{"title":26,"path":27,"stem":28},"Type Augmentation","/getting-started/type-augmentation","1.getting-started/4.type-augmentation",{"title":30,"path":31,"stem":32},"Schema Generation","/getting-started/schema-generation","1.getting-started/5.schema-generation",false,{"title":35,"path":36,"stem":37,"children":38,"page":33},"Core Concepts","/core-concepts","2.core-concepts",[39,43,47,51,55,59],{"title":40,"path":41,"stem":42},"How It Works","/core-concepts/how-it-works","2.core-concepts/0.how-it-works",{"title":44,"path":45,"stem":46},"`serverAuth()`","/core-concepts/server-auth","2.core-concepts/1.server-auth",{"title":48,"path":49,"stem":50},"Sessions","/core-concepts/sessions","2.core-concepts/2.sessions",{"title":52,"path":53,"stem":54},"Route Protection","/core-concepts/route-protection","2.core-concepts/3.route-protection",{"title":56,"path":57,"stem":58},"Auto‑Imports and Aliases","/core-concepts/auto-imports-aliases","2.core-concepts/4.auto-imports-aliases",{"title":60,"path":61,"stem":62},"Security & Caveats","/core-concepts/security-caveats","2.core-concepts/5.security-caveats",{"title":64,"path":65,"stem":66,"children":67,"page":33},"Guides","/guides","3.guides",[68,72,76],{"title":69,"path":70,"stem":71},"Role‑Based Access","/guides/role-based-access","3.guides/1.role-based-access",{"title":73,"path":74,"stem":75},"Protecting API Routes","/guides/api-protection","3.guides/2.api-protection",{"title":77,"path":78,"stem":79},"Database Dialects","/guides/custom-dialects","3.guides/3.custom-dialects",{"title":81,"path":82,"stem":83,"children":84,"page":33},"API Reference","/api","4.api",[85,89,93,97],{"title":86,"path":87,"stem":88},"Composables","/api/composables","4.api/1.composables",{"title":90,"path":91,"stem":92},"Server Utilities","/api/server-utils","4.api/2.server-utils",{"title":94,"path":95,"stem":96},"Components","/api/components","4.api/3.components",{"title":98,"path":99,"stem":100},"Types","/api/types","4.api/4.types",{"title":102,"path":103,"stem":104,"children":105,"page":33},"Troubleshooting","/troubleshooting","5.troubleshooting",[106],{"title":107,"path":108,"stem":109},"FAQ","/troubleshooting/faq","5.troubleshooting/1.faq",{"title":111,"path":112,"stem":113,"children":114},"Better Auth","/better-auth","6.better-auth",[115,117,121,125],{"title":111,"path":112,"stem":116},"6.better-auth/index",{"title":118,"path":119,"stem":120},"OAuth & Social Providers","/better-auth/oauth","6.better-auth/1.oauth",{"title":122,"path":123,"stem":124},"Plugins","/better-auth/plugins","6.better-auth/2.plugins",{"title":126,"path":127,"stem":128},"Client Plugins (Exports)","/better-auth/client-plugins","6.better-auth/3.client-plugins",{"id":130,"title":86,"body":131,"description":331,"extension":332,"links":333,"meta":334,"navigation":335,"path":87,"seo":336,"stem":88,"__hash__":337},"docs/4.api/1.composables.md",{"type":132,"value":133,"toc":328},"minimark",[134,142,146,266,324],[135,136,138],"h2",{"id":137},"useusersession",[139,140,141],"code",{},"useUserSession()",[143,144,145],"p",{},"Returns a reactive session store and Better Auth client helpers.",[147,148,153],"pre",{"className":149,"code":150,"language":151,"meta":152,"style":152},"language-ts shiki shiki-themes vitesse-light vitesse-dark vitesse-dark","const {\n  client,\n  session,\n  user,\n  loggedIn,\n  ready,\n  signIn,\n  signUp,\n  signOut,\n  fetchSession,\n  updateUser,\n} = useUserSession()\n","ts","",[139,154,155,168,178,186,194,202,210,218,226,234,242,250],{"__ignoreMap":152},[156,157,160,164],"span",{"class":158,"line":159},"line",1,[156,161,163],{"class":162},"sR2V5","const ",[156,165,167],{"class":166},"s5YmX","{\n",[156,169,171,175],{"class":158,"line":170},2,[156,172,174],{"class":173},"s6w83","  client",[156,176,177],{"class":166},",\n",[156,179,181,184],{"class":158,"line":180},3,[156,182,183],{"class":173},"  session",[156,185,177],{"class":166},[156,187,189,192],{"class":158,"line":188},4,[156,190,191],{"class":173},"  user",[156,193,177],{"class":166},[156,195,197,200],{"class":158,"line":196},5,[156,198,199],{"class":173},"  loggedIn",[156,201,177],{"class":166},[156,203,205,208],{"class":158,"line":204},6,[156,206,207],{"class":173},"  ready",[156,209,177],{"class":166},[156,211,213,216],{"class":158,"line":212},7,[156,214,215],{"class":173},"  signIn",[156,217,177],{"class":166},[156,219,221,224],{"class":158,"line":220},8,[156,222,223],{"class":173},"  signUp",[156,225,177],{"class":166},[156,227,229,232],{"class":158,"line":228},9,[156,230,231],{"class":173},"  signOut",[156,233,177],{"class":166},[156,235,237,240],{"class":158,"line":236},10,[156,238,239],{"class":173},"  fetchSession",[156,241,177],{"class":166},[156,243,245,248],{"class":158,"line":244},11,[156,246,247],{"class":173},"  updateUser",[156,249,177],{"class":166},[156,251,253,256,259,263],{"class":158,"line":252},12,[156,254,255],{"class":166},"}",[156,257,258],{"class":166}," =",[156,260,262],{"class":261},"slgps"," useUserSession",[156,264,265],{"class":166},"()\n",[267,268,269,280,298,307,315],"ul",{},[270,271,272,275,276,279],"li",{},[139,273,274],{},"client",": Better Auth client instance on client, ",[139,277,278],{},"null"," on server.",[270,281,282,285,286,289,290,293,294,297],{},[139,283,284],{},"session"," / ",[139,287,288],{},"user",": ",[139,291,292],{},"useState"," refs kept in sync by ",[139,295,296],{},"fetchSession",".",[270,299,300,289,303,306],{},[139,301,302],{},"loggedIn",[139,304,305],{},"true"," when both session and user are set.",[270,308,309,289,312,314],{},[139,310,311],{},"ready",[139,313,305],{}," after first fetch attempt.",[270,316,317,285,320,323],{},[139,318,319],{},"signIn",[139,321,322],{},"signUp",": available only on client.",[325,326,327],"style",{},"html pre.shiki code .sR2V5, html code.shiki .sR2V5{--shiki-light:#AB5959;--shiki-default:#CB7676;--shiki-dark:#CB7676}html pre.shiki code .s5YmX, html code.shiki .s5YmX{--shiki-light:#999999;--shiki-default:#666666;--shiki-dark:#666666}html pre.shiki code .s6w83, html code.shiki .s6w83{--shiki-light:#B07D48;--shiki-default:#BD976A;--shiki-dark:#BD976A}html pre.shiki code .slgps, html code.shiki .slgps{--shiki-light:#59873A;--shiki-default:#80A665;--shiki-dark:#80A665}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);}",{"title":152,"searchDepth":170,"depth":170,"links":329},[330],{"id":137,"depth":170,"text":141},"Client‑side session utilities.","md",null,{},true,{"title":86,"description":331},"s5-NglOeqI6_Y4jJDQy0joonabXc8SrBhM-Utld7jm0",[339,341],{"title":77,"path":78,"stem":79,"description":340,"children":-1},"How dialect selection affects schema generation.",{"title":90,"path":91,"stem":92,"description":342,"children":-1},"Server‑side auth helpers.",1765664062162]