Turn on two-factor authentication from your Account menu, keep the recovery codes, and sign out every other session.
Open Account in the top bar. It shows your Name, Password and Two-factor authentication (On or Off).
Turn on two-factor authentication
Next to Two-factor authentication, click Edit, type your Password, then Continue.
Scan the QR code with your authenticator app (or Can’t scan? Enter this key instead), type the 6-digit Authentication code, then Enable.
Save the recovery codes somewhere safe, then I have saved these codes. They are not shown again.
From then on, signing in asks for the code from your app after your password. Turning two-factor authentication on or off ends your other sessions.
Lost your phone? At sign-in, use one of your recovery codes instead of the app’s code. Each recovery code signs you in once. Without your app and your recovery codes, someone with root access to the box can reset the account: sudo casaos-user-service -ru -user <name> sets a new password and turns two-factor authentication off.
Sign out everywhere else
Sign out everywhere else at the bottom of the Account menu, then your Password and Submit: every other session is signed out. One already open keeps working for up to 3 hours.Passwords are stored with argon2id, and a session survives a restart of the box.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"ReCasaOS","colors":{"primary":"#BEF500","light":"#BEF500","dark":"#BEF500"},"logo":{"light":"https://mintcdn.com/recasaos/eJHGC42WtnPGqe06/logo/recasaos-logo-dark.svg?fit=max\u0026auto=format\u0026n=eJHGC42WtnPGqe06\u0026q=85\u0026s=0f6cd9f03434756a829c876d97c684d5","dark":"https://mintcdn.com/recasaos/eJHGC42WtnPGqe06/logo/recasaos-logo.svg?fit=max\u0026auto=format\u0026n=eJHGC42WtnPGqe06\u0026q=85\u0026s=b09f07c7412d7c9df5325c5c2ffc6748","href":"https://recasaos.org"},"favicon":"https://mintcdn.com/recasaos/eJHGC42WtnPGqe06/favicon.svg?fit=max\u0026auto=format\u0026n=eJHGC42WtnPGqe06\u0026q=85\u0026s=5436e336e6ee3af69718f2eb29714fad","api":{"playground":{"display":"none"}},"appearance":{"default":"dark","strict":true},"background":{"color":{"dark":"#151515"}},"navbar":{"links":[{"href":"https://github.com/ReCasaOS/CasaOS","type":"github"}]},"footer":{"socials":{"github":"https://github.com/ReCasaOS","website":"https://recasaos.org"}},"banner":{"content":"These pages describe ReCasaOS **v0.5.266**. Your box shows its version under Settings, Updates.","dismissible":true},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"recasaos","hasAudioNarration":false,"actualSubdomain":"recasaos","customDomains":["docs.recasaos.org"],"gitSource":{"type":"github","owner":"recasaos","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b12f13cfd64ef1a7514b310"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b134340b1dd01da57146115","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"default","tag":"Troubleshooting","count":13},{"language":"default","tag":"Apps","count":10},{"language":"default","tag":"Storage and files","count":10},{"language":"default","tag":"Backups and restore","count":8},{"language":"default","tag":"Get started","count":8},{"language":"default","tag":"Accounts and security","count":5},{"language":"default","tag":"The dashboard","count":4},{"language":"default","tag":"Alerts and logs","count":3},{"language":"default","tag":"Several servers and remote access","count":3},{"language":"default","tag":"Modules","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[{"_id":"6b1326407273df7aa1275699","deploymentId":"6b12f10eb4ecd966b424ed01","questionText":"My apps look empty after an update: what do I do?","status":"active","generatedBy":"manual","createdAt":"2026-12-04T20:44:48.283Z","updatedAt":"2026-12-04T20:44:48.283Z","__v":0},{"_id":"6b13263e7273df7aa1275671","deploymentId":"6b12f10eb4ecd966b424ed01","questionText":"How do I back up an app?","status":"active","generatedBy":"manual","createdAt":"2026-12-04T20:44:46.948Z","updatedAt":"2026-12-04T20:44:46.948Z","__v":0},{"_id":"6b1326357273df7aa1275591","deploymentId":"6b12f10eb4ecd966b424ed01","questionText":"How do I install ReCasaOS?","status":"active","generatedBy":"manual","createdAt":"2026-12-04T20:44:37.733Z","updatedAt":"2026-12-04T20:44:37.733Z","__v":0}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"security/two-factor-and-sessions","slug":"/security/two-factor-and-sessions","pageMetadata":{"title":"Two-factor authentication and sessions","description":"Turn on two-factor authentication from your Account menu, keep the recovery codes, and sign out every other session.","proof":"stub, code","proofVersion":"v0.5.265","proofDate":"2026-12-04T00:00:00.000Z","proofRef":"CasaOS-UI v0.4.277 AccountPanel.vue, TwoFactorPanel.vue, Login.vue; CHANGELOG v0.5.220; walked on the CasaOS-UI v0.4.277 stub, routes it lacks answered from fixtures (_work/docs-shots/fixtures/misc)","href":"/security/two-factor-and-sessions"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Turn on two-factor authentication from your Account menu, keep the recovery codes, and sign out every other session.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,em:`em`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Heading,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Open `,_jsx(_components.strong,{children:`Account`}),` in the top bar. It shows your `,_jsx(_components.strong,{children:`Name`}),`, `,_jsx(_components.strong,{children:`Password`}),` and `,_jsx(_components.strong,{children:`Two-factor authentication`}),` (`,_jsx(_components.em,{children:`On`}),` or `,_jsx(_components.em,{children:`Off`}),`).`]}),`\n`,_jsx(Heading,{level:`2`,id:`turn-on-two-factor-authentication`,children:`Turn on two-factor authentication`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Next to `,_jsx(_components.strong,{children:`Two-factor authentication`}),`, click `,_jsx(_components.strong,{children:`Edit`}),`, type your `,_jsx(_components.strong,{children:`Password`}),`, then `,_jsx(_components.strong,{children:`Continue`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Scan the QR code with your authenticator app (or `,_jsx(_components.em,{children:`Can’t scan? Enter this key instead`}),`), type the 6-digit `,_jsx(_components.strong,{children:`Authentication code`}),`, then `,_jsx(_components.strong,{children:`Enable`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Save the `,_jsx(_components.strong,{children:`recovery codes`}),` somewhere safe, then `,_jsx(_components.strong,{children:`I have saved these codes`}),`. They are not shown again.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`From then on, signing in asks for the code from your app after your password. Turning two-factor authentication on or off ends your other sessions.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Lost your phone? At sign-in, use one of your recovery codes instead of the app’s code. Each recovery code signs you in once. Without your app and your recovery codes, someone with root access to the box can reset the account: `,_jsx(_components.code,{children:`sudo casaos-user-service -ru -user \u003cname>`}),` sets a new password and turns two-factor authentication off.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`sign-out-everywhere-else`,children:`Sign out everywhere else`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Sign out everywhere else`}),` at the bottom of the Account menu, then your `,_jsx(_components.strong,{children:`Password`}),` and `,_jsx(_components.strong,{children:`Submit`}),`: every other session is signed out. One already open keeps working for up to 3 hours.`]}),`\n`,_jsx(_components.p,{children:`Passwords are stored with argon2id, and a session survives a restart of the box.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Two-factor authentication and sessions","description":"Turn on two-factor authentication from your Account menu, keep the recovery codes, and sign out every other session.","proof":"stub, code","proofVersion":"v0.5.265","proofDate":"2026-12-04T00:00:00.000Z","proofRef":"CasaOS-UI v0.4.277 AccountPanel.vue, TwoFactorPanel.vue, Login.vue; CHANGELOG v0.5.220; walked on the CasaOS-UI v0.4.277 stub, routes it lacks answered from fixtures (_work/docs-shots/fixtures/misc)","href":"/security/two-factor-and-sessions"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Turn on two-factor authentication","slug":"turn-on-two-factor-authentication","depth":2,"children":[]},{"title":"Sign out everywhere else","slug":"sign-out-everywhere-else","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/recasaos/534ef1be8cdd9404/matomo.js"],"subdomain":"recasaos","siteName":"ReCasaOS","title":"Two-factor authentication and sessions - ReCasaOS","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-04T20:39:48.223Z","originalFileLocation":"security/two-factor-and-sessions.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Turn on two-factor authentication from your Account menu, keep the recovery codes, and sign out every other session.\">\u003cmeta data-mint-head name=\"application-name\" content=\"ReCasaOS\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/recasaos/EN61Fpi_Nu3D1IeB/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/recasaos/EN61Fpi_Nu3D1IeB/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/recasaos/EN61Fpi_Nu3D1IeB/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/recasaos/EN61Fpi_Nu3D1IeB/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/recasaos/EN61Fpi_Nu3D1IeB/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/recasaos/EN61Fpi_Nu3D1IeB/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/recasaos/EN61Fpi_Nu3D1IeB/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/recasaos/EN61Fpi_Nu3D1IeB/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/recasaos/EN61Fpi_Nu3D1IeB/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Two-factor authentication and sessions - ReCasaOS\">\u003cmeta data-mint-head property=\"og:description\" content=\"Turn on two-factor authentication from your Account menu, keep the recovery codes, and sign out every other session.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ReCasaOS\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.recasaos.org/security/two-factor-and-sessions\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://recasaos.mintlify.site/_mintlify/api/og/v2?division=Accounts+and+security\u0026amp;title=Two-factor+authentication+and+sessions\u0026amp;description=Turn+on+two-factor+authentication+from+your+Account+menu%2C+keep+the+recovery+codes%2C+and+sign+out+every+other+session.\u0026amp;theme=34c0528e6318b7f61504dcc9\u0026amp;signature=9ec65c6be32eae255b21e76429718efe7014c991cfc0bb604f635891ad1dff0a\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Two-factor authentication and sessions - ReCasaOS\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Turn on two-factor authentication from your Account menu, keep the recovery codes, and sign out every other session.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://recasaos.mintlify.site/_mintlify/api/og/v2?division=Accounts+and+security\u0026amp;title=Two-factor+authentication+and+sessions\u0026amp;description=Turn+on+two-factor+authentication+from+your+Account+menu%2C+keep+the+recovery+codes%2C+and+sign+out+every+other+session.\u0026amp;theme=34c0528e6318b7f61504dcc9\u0026amp;signature=9ec65c6be32eae255b21e76429718efe7014c991cfc0bb604f635891ad1dff0a\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/recasaos/EN61Fpi_Nu3D1IeB/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ReCasaOS\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#BEF500\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.recasaos.org/security/two-factor-and-sessions\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/security/two-factor-and-sessions.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.recasaos.org/#organization\",\"name\":\"ReCasaOS\",\"url\":\"https://docs.recasaos.org\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/recasaos/eJHGC42WtnPGqe06/logo/recasaos-logo-dark.svg?fit=max\u0026auto=format\u0026n=eJHGC42WtnPGqe06\u0026q=85\u0026s=0f6cd9f03434756a829c876d97c684d5\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.recasaos.org#website\",\"name\":\"ReCasaOS\",\"url\":\"https://docs.recasaos.org\",\"publisher\":{\"@id\":\"https://docs.recasaos.org/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.recasaos.org/security/two-factor-and-sessions#webpage\",\"url\":\"https://docs.recasaos.org/security/two-factor-and-sessions\",\"name\":\"Two-factor authentication and sessions\",\"description\":\"Turn on two-factor authentication from your Account menu, keep the recovery codes, and sign out every other session.\",\"dateModified\":\"2026-12-04T20:39:48.223Z\",\"isPartOf\":{\"@id\":\"https://docs.recasaos.org#website\"},\"breadcrumb\":{\"@id\":\"https://docs.recasaos.org/security/two-factor-and-sessions#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.recasaos.org/security/two-factor-and-sessions#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accounts and security\",\"item\":\"https://docs.recasaos.org/security/accounts-and-roles\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Two-factor authentication and sessions\",\"item\":\"https://docs.recasaos.org/security/two-factor-and-sessions\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.recasaos.org/security/two-factor-and-sessions#article\",\"headline\":\"Two-factor authentication and sessions\",\"name\":\"Two-factor authentication and sessions\",\"description\":\"Turn on two-factor authentication from your Account menu, keep the recovery codes, and sign out every other session.\",\"url\":\"https://docs.recasaos.org/security/two-factor-and-sessions\",\"mainEntityOfPage\":{\"@id\":\"https://docs.recasaos.org/security/two-factor-and-sessions#webpage\"},\"dateModified\":\"2026-12-04T20:39:48.223Z\",\"publisher\":{\"@id\":\"https://docs.recasaos.org/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.recasaos.org#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ReCasaOS\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"ReCasaOS\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/security/two-factor-and-sessions.md","siteName":"ReCasaOS","nav":{"global":null,"groups":[{"group":"Get started","pages":[{"title":"ReCasaOS documentation","sidebarTitle":"Welcome","href":"/index"},{"title":"What is ReCasaOS","href":"/get-started/what-is-recasaos"},{"title":"Requirements and supported systems","href":"/get-started/requirements"},{"title":"Install ReCasaOS","href":"/get-started/install"},{"title":"First steps on the dashboard","href":"/get-started/first-steps"},{"title":"Update ReCasaOS","href":"/get-started/update"},{"title":"Switch from CasaOS","href":"/get-started/switch-from-casaos"},{"title":"Uninstall ReCasaOS","href":"/get-started/uninstall"}]},{"group":"Apps","pages":[{"title":"Install an app","href":"/apps/install-an-app"},{"title":"App stores","href":"/apps/app-stores"},{"title":"Edit an app's compose file and .env","href":"/apps/compose"},{"title":"Use a stack you started yourself","href":"/apps/adopt-a-stack"},{"title":"Deploy an app from git","href":"/apps/apps-from-git"},{"title":"Update apps","href":"/apps/update-apps"},{"title":"App settings","href":"/apps/app-settings"},{"title":"An app's containers: logs, terminal and files","href":"/apps/containers"},{"title":"Health checks and auto-heal","href":"/apps/health-and-auto-heal"},{"title":"Free space: Docker cleanup","href":"/apps/clean-up-docker"}]},{"group":"Backups and restore","pages":[{"title":"How backups work","href":"/backups/how-backups-work"},{"title":"Add a backup destination","href":"/backups/destinations"},{"title":"Back up an app","href":"/backups/back-up-an-app"},{"title":"Back up the box itself","href":"/backups/back-up-the-box"},{"title":"Keep backups with restic","href":"/backups/restic"},{"title":"Restore an app","href":"/backups/restore-an-app"},{"title":"Rebuild a box on new hardware","href":"/backups/rebuild-a-box"},{"title":"Check the backups of every server","href":"/backups/fleet-backups"}]},{"group":"Storage and files","pages":[{"title":"The Storage manager","href":"/storage/storage-manager"},{"title":"/DATA and merged storage","href":"/storage/data-and-merged-storage"},{"title":"Software RAID","href":"/storage/software-raid"},{"title":"SnapRAID","href":"/storage/snapraid"},{"title":"Btrfs mirror","href":"/storage/btrfs-mirror"},{"title":"ZFS pools","href":"/storage/zfs"},{"title":"Use the free space of an LVM volume group","href":"/storage/lvm"},{"title":"Disk sleep and power saving","href":"/storage/disk-sleep-and-power"},{"title":"Files","href":"/storage/files"},{"title":"Shared folders (SMB)","href":"/storage/shared-folders"}]},{"group":"The dashboard","pages":[{"title":"The classic and the new dashboard","href":"/dashboard/classic-and-new"},{"title":"Arrange your home page","href":"/dashboard/arrange-your-home"},{"title":"Built-in widgets","href":"/dashboard/built-in-widgets"},{"title":"API widgets","href":"/dashboard/api-widgets"}]},{"group":"Several servers and remote access","pages":[{"title":"Manage several boxes: the Fleet","href":"/fleet/fleet"},{"title":"Reach your box from your phone or PC","href":"/fleet/remote-access"},{"title":"Share an app on the Internet","href":"/fleet/share-an-app"}]},{"group":"Virtual machines and statistics","pages":[{"title":"Virtual machines","href":"/vms/virtual-machines"},{"title":"The Statistics app","href":"/vms/statistics"},{"title":"Resource alerts","href":"/vms/resource-alerts"}]},{"group":"Alerts and logs","pages":[{"title":"Alerts on your phone or by e-mail","href":"/alerts/alerts"},{"title":"Logs","href":"/alerts/logs"},{"title":"Address monitoring","href":"/alerts/address-monitoring"}]},{"group":"Accounts and security","pages":[{"title":"Accounts and what each one sees","description":"The owner creates accounts and chooses, for each, the parts of the dashboard it reads, its Files folders and its network access; apps can be hidden per account.","href":"/security/accounts-and-roles"},{"title":"Two-factor authentication and sessions","href":"/security/two-factor-and-sessions"},{"title":"Vulnerability scan","description":"The vuln-scan module checks your apps' images every night and flags an app when an update fixes a critical vulnerability or one attackers already exploit.","href":"/security/vulnerability-scan"},{"title":"Verify the installer","href":"/security/verify-the-installer"},{"title":"Report a vulnerability","href":"/security/report-a-vulnerability"}]},{"group":"Modules","pages":[{"title":"Modules","href":"/modules/modules"},{"title":"AI access","href":"/modules/ai-access"},{"title":"Write a module","href":"/modules/write-a-module"}]},{"group":"Troubleshooting","pages":[{"title":"Troubleshooting","href":"/troubleshooting/index"},{"title":"Collect logs for a bug report","href":"/troubleshooting/collect-logs"},{"title":"An app shows Stopped but it is running","href":"/troubleshooting/app-stopped"},{"title":"An app says Unhealthy","href":"/troubleshooting/app-unhealthy"},{"title":"Tailscale (or another VPN app) restarts in a loop","href":"/troubleshooting/app-restarts"},{"title":"Port 443 is already in use","href":"/troubleshooting/port-in-use"},{"title":"Update check says its registry could not be reached","href":"/troubleshooting/registry-unreachable"},{"title":"An app opens on the wrong address, or says Unauthorized","href":"/troubleshooting/app-opens-wrong-address"},{"title":"Statistics or Logs list apps I uninstalled","href":"/troubleshooting/ghost-containers"},{"title":"My apps look empty after an update or a restart","href":"/troubleshooting/data-empty-after-update"},{"title":"The storage card is empty or shows 0 %","href":"/troubleshooting/storage-card-empty"},{"title":"The time is wrong in the dashboard or for backups","href":"/troubleshooting/wrong-time"},{"title":"The old dashboard still shows after an update","href":"/troubleshooting/old-dashboard-after-update"}]},{"group":"Help","pages":[{"title":"FAQ","href":"/faq"}]}]},"basePath":"","title":"Two-factor authentication and sessions - ReCasaOS","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":["10e4515597"],"chunks":["BannerMarkdown-74C-oA3c.js","dist-CjxLTLs9.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}