[{"data":1,"prerenderedAt":401},["ShallowReactive",2],{"navigation_docs":3,"-authentication-email-login":218,"-authentication-email-login-surround":396},[4,20,45,75,95,105,140,168,198],{"title":5,"path":6,"stem":7,"children":8,"page":19},"Introduction","\u002Fintroduction","1.introduction",[9,14],{"title":10,"path":11,"stem":12,"icon":13},"What is GO?","\u002Fintroduction\u002Fwhat-is-go","1.introduction\u002F1.what-is-go","i-lucide-info",{"title":15,"path":16,"stem":17,"icon":18},"Features","\u002Fintroduction\u002Ffeatures","1.introduction\u002F2.features","i-lucide-sparkles",false,{"title":21,"path":22,"stem":23,"children":24,"page":19},"Getting Started","\u002Fgetting-started","2.getting-started",[25,30,35,40],{"title":26,"path":27,"stem":28,"icon":29},"Installation","\u002Fgetting-started\u002Finstallation","2.getting-started\u002F1.installation","i-lucide-download",{"title":31,"path":32,"stem":33,"icon":34},"Configuration","\u002Fgetting-started\u002Fconfiguration","2.getting-started\u002F2.configuration","i-lucide-settings",{"title":36,"path":37,"stem":38,"icon":39},"First Setup","\u002Fgetting-started\u002Ffirst-setup","2.getting-started\u002F3.first-setup","i-lucide-rocket",{"title":41,"path":42,"stem":43,"icon":44},"Updating","\u002Fgetting-started\u002Fupdating","2.getting-started\u002F4.updating","i-lucide-refresh-cw",{"title":46,"icon":19,"path":47,"stem":48,"children":49,"page":19},"User Guide","\u002Fuser-guide","3.user-guide",[50,55,60,65,70],{"title":51,"path":52,"stem":53,"icon":54},"Creating a Short Link","\u002Fuser-guide\u002Fcreating-a-short-link","3.user-guide\u002F1.creating-a-short-link","i-lucide-link",{"title":56,"path":57,"stem":58,"icon":59},"Expiration","\u002Fuser-guide\u002Fexpiration","3.user-guide\u002F2.expiration","i-lucide-clock",{"title":61,"path":62,"stem":63,"icon":64},"Renewing Links","\u002Fuser-guide\u002Frenewing-links","3.user-guide\u002F3.renewing-links","i-lucide-repeat",{"title":66,"path":67,"stem":68,"icon":69},"Dashboard","\u002Fuser-guide\u002Fdashboard","3.user-guide\u002F4.dashboard","i-lucide-layout-dashboard",{"title":71,"path":72,"stem":73,"icon":74},"Analytics","\u002Fuser-guide\u002Fanalytics","3.user-guide\u002F5.analytics","i-lucide-bar-chart-3",{"title":76,"path":77,"stem":78,"children":79,"page":19},"Authentication","\u002Fauthentication","4.authentication",[80,85,90],{"title":81,"path":82,"stem":83,"icon":84},"Email Login","\u002Fauthentication\u002Femail-login","4.authentication\u002F1.email-login","i-lucide-mail",{"title":86,"path":87,"stem":88,"icon":89},"Google Login","\u002Fauthentication\u002Fgoogle-login","4.authentication\u002F2.google-login","i-lucide-globe",{"title":91,"path":92,"stem":93,"icon":94},"Firebase Setup","\u002Fauthentication\u002Ffirebase-setup","4.authentication\u002F3.firebase-setup","i-simple-icons-firebase",{"title":96,"path":97,"stem":98,"children":99,"page":19},"Captcha","\u002Fcaptcha","5.captcha",[100],{"title":101,"path":102,"stem":103,"icon":104},"Cloudflare Turnstile","\u002Fcaptcha\u002Fcloudflare-turnstile","5.captcha\u002F1.cloudflare-turnstile","i-simple-icons-cloudflare",{"title":106,"path":107,"stem":108,"children":109,"page":19},"Administration","\u002Fadministration","6.administration",[110,115,120,125,130,135],{"title":111,"path":112,"stem":113,"icon":114},"Admin Panel","\u002Fadministration\u002Fadmin-panel","6.administration\u002F1.admin-panel","i-lucide-shield",{"title":116,"path":117,"stem":118,"icon":119},"Users","\u002Fadministration\u002Fusers","6.administration\u002F2.users","i-lucide-users",{"title":121,"path":122,"stem":123,"icon":124},"Links","\u002Fadministration\u002Flinks","6.administration\u002F3.links","i-lucide-link-2",{"title":126,"path":127,"stem":128,"icon":129},"Reports","\u002Fadministration\u002Freports","6.administration\u002F4.reports","i-lucide-flag",{"title":131,"path":132,"stem":133,"icon":134},"Bans & Timeouts","\u002Fadministration\u002Fbans-and-timeouts","6.administration\u002F5.bans-and-timeouts","i-lucide-user-x",{"title":136,"path":137,"stem":138,"icon":139},"Audit Logs","\u002Fadministration\u002Faudit-logs","6.administration\u002F6.audit-logs","i-lucide-scroll",{"title":141,"path":142,"stem":143,"children":144,"page":19},"Deployment","\u002Fdeployment","7.deployment",[145,150,155,160,165],{"title":146,"path":147,"stem":148,"icon":149},"VPS Installation","\u002Fdeployment\u002Fvps-installation","7.deployment\u002F1.vps-installation","i-lucide-server",{"title":151,"path":152,"stem":153,"icon":154},"Environment Variables","\u002Fdeployment\u002Fenvironment-variables","7.deployment\u002F2.environment-variables","i-lucide-sliders",{"title":156,"path":157,"stem":158,"icon":159},"Cloudflare Tunnel","\u002Fdeployment\u002Fcloudflare-tunnel","7.deployment\u002F3.cloudflare-tunnel","i-lucide-network",{"title":161,"path":162,"stem":163,"icon":164},"Systemd","\u002Fdeployment\u002Fsystemd","7.deployment\u002F4.systemd","i-lucide-cpu",{"title":41,"path":166,"stem":167,"icon":44},"\u002Fdeployment\u002Fupdating","7.deployment\u002F5.updating",{"title":169,"path":170,"stem":171,"children":172,"page":19},"Developer","\u002Fdeveloper","8.developer",[173,178,183,188,193],{"title":174,"path":175,"stem":176,"icon":177},"Architecture","\u002Fdeveloper\u002Farchitecture","8.developer\u002F1.architecture","i-lucide-box",{"title":179,"path":180,"stem":181,"icon":182},"API Architecture","\u002Fdeveloper\u002Fapi","8.developer\u002F2.api","i-lucide-code-xml",{"title":184,"path":185,"stem":186,"icon":187},"Database","\u002Fdeveloper\u002Fdatabase","8.developer\u002F3.database","i-lucide-database",{"title":189,"path":190,"stem":191,"icon":192},"Development","\u002Fdeveloper\u002Fdevelopment","8.developer\u002F4.development","i-lucide-terminal",{"title":194,"path":195,"stem":196,"icon":197},"Building Releases","\u002Fdeveloper\u002Fbuilding-releases","8.developer\u002F5.building-releases","i-lucide-package-check",{"title":199,"path":200,"stem":201,"children":202,"page":19},"Reference","\u002Freference","9.reference",[203,208,213],{"title":204,"path":205,"stem":206,"icon":207},"Configuration Reference","\u002Freference\u002Fconfiguration","9.reference\u002F1.configuration","i-lucide-file-cog",{"title":209,"path":210,"stem":211,"icon":212},"API Reference","\u002Freference\u002Fapi-reference","9.reference\u002F2.api-reference","i-lucide-webhook",{"title":214,"path":215,"stem":216,"icon":217},"Changelog","\u002Freference\u002Fchangelog","9.reference\u002F3.changelog","i-lucide-history",{"id":219,"title":81,"body":220,"description":387,"extension":388,"links":389,"meta":390,"navigation":391,"path":82,"seo":392,"stem":83,"__hash__":395},"docs\u002F4.authentication\u002F1.email-login.md",{"type":221,"value":222,"toc":377},"minimark",[223,227,231,234,239,242,255,277,279,283,286,296,302,336,340,347,363,373],[224,225,81],"h1",{"id":226},"email-login",[228,229,230],"p",{},"GO Shortener provides a fully self-contained, native email and password authentication system that requires no third-party identity providers to function.",[232,233],"hr",{},[235,236,238],"h2",{"id":237},"password-hashing-storage","Password Hashing & Storage",[228,240,241],{},"When a user registers or updates their password, GO never stores plaintext credentials.",[243,244,245,246,250,251,254],"important",{},"Passwords are encrypted using ",[247,248,249],"strong",{},"bcrypt"," with a computational work cost factor of ",[247,252,253],{},"12",".",[256,257,258,265,271],"ul",{},[259,260,261,264],"li",{},[247,262,263],{},"Salting",": bcrypt automatically generates a cryptographically unique 128-bit salt for every password before hashing, effectively neutralizing precomputed rainbow table attacks.",[259,266,267,270],{},[247,268,269],{},"Work Factor 12",": Balances verification speed against brute-force resilience, requiring significant CPU cycles to attempt offline dictionary attacks.",[259,272,273,276],{},[247,274,275],{},"Password Requirements",": Enforces minimum length (8+ characters) and basic complexity validation on the frontend and backend.",[232,278],{},[235,280,282],{"id":281},"session-architecture","Session Architecture",[228,284,285],{},"Upon successful authentication, the server establishes a stateful or signed session:",[287,288,290,291,295],"h3",{"id":289},"the-go_session-cookie","The ",[292,293,294],"code",{},"go_session"," Cookie",[228,297,298,299,301],{},"The authentication token is transmitted to the client in an HTTP cookie named ",[292,300,294],{}," configured with strict security flags:",[256,303,304,312,320,328],{},[259,305,306,311],{},[247,307,308],{},[292,309,310],{},"HttpOnly",": Prevents client-side JavaScript (e.g., XSS attacks) from reading or manipulating the session token.",[259,313,314,319],{},[247,315,316],{},[292,317,318],{},"SameSite=Lax",": Defends against Cross-Site Request Forgery (CSRF) by ensuring cookies are not sent on cross-site subrequests.",[259,321,322,327],{},[247,323,324],{},[292,325,326],{},"Secure",": Automatically enforced in production environments when requests are routed through HTTPS \u002F Cloudflare Tunnel.",[259,329,330,335],{},[247,331,332],{},[292,333,334],{},"Path=\u002F",": Grants session validity across all API and web routes.",[287,337,339],{"id":338},"session-lifetime","Session Lifetime",[228,341,342,343,346],{},"The validity duration of session cookies is configured via the ",[292,344,345],{},".env"," variable:",[348,349,354],"pre",{"className":350,"code":351,"filename":345,"language":352,"meta":353,"style":353},"language-dotenv shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","SESSION_DURATION_HOURS=72\n","dotenv","",[292,355,356],{"__ignoreMap":353},[357,358,361],"span",{"class":359,"line":360},"line",1,[357,362,351],{},[228,364,365,366,369,370,372],{},"When a user logs out via the user menu or ",[292,367,368],{},"POST \u002Fapi\u002Fauth\u002Flogout",", the server expires the ",[292,371,294],{}," cookie immediately.",[374,375,376],"style",{},"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":353,"searchDepth":378,"depth":378,"links":379},2,[380,381],{"id":237,"depth":378,"text":238},{"id":281,"depth":378,"text":282,"children":382},[383,386],{"id":289,"depth":384,"text":385},3,"The go_session Cookie",{"id":338,"depth":384,"text":339},"Native email and password authentication with bcrypt security.","md",null,{},{"icon":84},{"title":393,"description":394},"Email Authentication - GO Shortener","Technical details of email registration, bcrypt password hashing, and secure session cookies in GO Shortener.","-KKfRpDzPtfHJRBl31iNXykb7ZpU8t1oRZJGHAbSxfo",[397,399],{"title":71,"path":72,"stem":73,"description":398,"icon":74,"children":-1},"Privacy-conscious, aggregated click metrics and visitor telemetry.",{"title":86,"path":87,"stem":88,"description":400,"icon":89,"children":-1},"Single Sign-On using Google OAuth with automatic account linking.",1788462426772]