Two-factor authentication (2FA) protects your Aria Compute account with a rotating six-digit code from an authenticator app. Turn it on, sign in with it, and manage your active sessions.
Enable 2FA
1
Start the setup
curl -X POST https://ariacompute.com/api/auth/2fa/setup \ -H "Authorization: Bearer eyJhbGciOi..."
The response returns the TOTP secret and a qr_code_url you can render in your dashboard.
2
Add the account to your authenticator app
Scan the QR code (or paste the secret) into Google Authenticator, 1Password, Authy, or any TOTP-compatible app.
curl -X POST \ -H "Authorization: Bearer eyJhbGciOi..." \ https://ariacompute.com/api/auth/sessions/revoke-others
curl -X POST \ -H "Authorization: Bearer eyJhbGciOi..." \ https://ariacompute.com/api/auth/logout
If you suspect a device was compromised, revoke other sessions first, then rotate any API keys that may have been visible on that device.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Aria Compute","description":"Aria Compute builds device-native foundation models: advanced intelligence for processors outside of data centers, built for the latency, privacy, and hardware constraints of the physical world.","colors":{"primary":"#000000","light":"#FFFFFF","dark":"#000000"},"logo":{"light":"https://mintcdn.com/aria-compute/-w-NBR2v0CcqoPHV/images/banner-international.svg?fit=max\u0026auto=format\u0026n=-w-NBR2v0CcqoPHV\u0026q=85\u0026s=499bf3ea5acf886ef6db7ec92010a457","dark":"https://mintcdn.com/aria-compute/-w-NBR2v0CcqoPHV/images/banner-international-dark.svg?fit=max\u0026auto=format\u0026n=-w-NBR2v0CcqoPHV\u0026q=85\u0026s=da580e01e23dcc43b51a13d9141ff580"},"favicon":{"light":"https://mintcdn.com/aria-compute/f1-7a2QscLtIHU5r/images/favicon.svg?fit=max\u0026auto=format\u0026n=f1-7a2QscLtIHU5r\u0026q=85\u0026s=9696e231abd64ca5daf78dc8cd0b675a","dark":"https://mintcdn.com/aria-compute/f1-7a2QscLtIHU5r/images/favicon-dark.svg?fit=max\u0026auto=format\u0026n=f1-7a2QscLtIHU5r\u0026q=85\u0026s=611570f32e99265bb4d520c9968f170b"},"navbar":{"links":[{"href":"mailto:[email protected]","label":"Support"}],"primary":{"type":"button","label":"Home","href":"https://ariacompute.com"}},"footer":{"socials":{"x":"https://x.com/ariacompute","github":"https://github.com/ariacompute","linkedin":"https://www.linkedin.com/in/ariacompute","discord":"https://discord.gg/UMFE55XPT","youtube":"https://youtube.com/@ariacompute"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"aria-compute","hasAudioNarration":false,"actualSubdomain":"aria-compute","customDomains":["docs.ariacompute.com"],"gitSource":{"type":"github","owner":"ariacompute","repo":"docs-intl","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true,"edits":false,"issues":false},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6b01070f0d37e11df1438485","clientVersion":"0.0.4263","searchFilterCounts":[{"language":"default","tag":"API Reference","count":187},{"language":"default","tag":"MEMO API","count":66},{"language":"default","tag":"PIN API","count":56},{"language":"default","tag":"AGENT API","count":33},{"language":"default","tag":"ROUTER API","count":32},{"language":"default","tag":"Documentation","count":23},{"language":"default","tag":"Auth \u0026 Users","count":15},{"language":"default","tag":"GPU Nodes \u0026 Agents","count":11},{"language":"default","tag":"Jobs","count":11},{"language":"default","tag":"Memory Cubes","count":10}],"searchSettings":{"showContentSnippets":true,"isFiltersEnabled":true}},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"workos-onboarding","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":"site-roles","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":"assistant-v5","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":"workos-sso-scim","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":"workos-signup","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":"workos-enabled","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":"sso-setup-deadline-banner","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":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"privacy":{"consentBanner":{"enabled":false}},"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"img.nav-logo{height:3rem!important;width:auto!important;max-width:none!important}@media (min-width: 1024px){img.nav-logo{height:3.5rem!important}}"}]}
{"page":{"pagePath":"guides/two-factor-auth","slug":"/guides/two-factor-auth","pageMetadata":{"title":"Enable two-factor authentication for your account","sidebarTitle":"Two-Factor Auth","description":null,"href":"/guides/two-factor-auth"},"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`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Step,Steps,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Two-factor authentication (2FA) protects your Aria Compute account with a rotating six-digit code from an authenticator app. Turn it on, sign in with it, and manage your active sessions.`}),`\n`,_jsx(Heading,{level:`2`,id:`enable-2fa`,children:`Enable 2FA`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Start the setup`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://ariacompute.com/api/auth/2fa/setup`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer eyJhbGciOi...\"`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`The response returns the TOTP `,_jsx(_components.code,{children:`secret`}),` and a `,_jsx(_components.code,{children:`qr_code_url`}),` you can render in your dashboard.`]})]}),_jsx(Step,{title:`Add the account to your authenticator app`,children:_jsx(_components.p,{children:`Scan the QR code (or paste the secret) into Google Authenticator, 1Password, Authy, or any TOTP-compatible app.`})}),_jsxs(Step,{title:`Confirm the code`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://ariacompute.com/api/auth/2fa/enable`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer eyJhbGciOi...\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"code\": \"123456\"}'`})]}),`\n`]})})}),_jsx(_components.p,{children:`A successful call activates 2FA on the account.`})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`sign-in-with-2fa`,children:`Sign in with 2FA`}),`\n`,_jsxs(_components.p,{children:[`After 2FA is enabled, `,_jsx(_components.code,{children:`POST /api/auth/login`}),` returns a challenge instead of a full session. Verify the code to complete sign-in:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://ariacompute.com/api/auth/2fa/verify`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"challenge\": \"chg_01H...\", \"code\": \"123456\"}'`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The successful response has the same shape as a normal login: a `,_jsx(_components.code,{children:`token`}),` plus a `,_jsx(_components.code,{children:`user`}),` object.`]}),`\n`,_jsx(Heading,{level:`2`,id:`disable-2fa`,children:`Disable 2FA`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://ariacompute.com/api/auth/2fa/disable`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer eyJhbGciOi...\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"code\": \"123456\"}'`})]}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Disabling 2FA weakens account security. Only do so when you plan to re-enroll on a new device immediately after.`})}),`\n`,_jsx(Heading,{level:`2`,id:`manage-active-sessions`,children:`Manage active sessions`}),`\n`,_jsx(_components.p,{children:`Every sign-in creates a session. Review and revoke them:`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`List sessions`,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer eyJhbGciOi...\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://ariacompute.com/api/auth/sessions`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Revoke one session`,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` DELETE`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer eyJhbGciOi...\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://ariacompute.com/api/auth/sessions/sess_01H...`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Revoke everything except this one`,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer eyJhbGciOi...\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://ariacompute.com/api/auth/sessions/revoke-others`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Log out this session`,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer eyJhbGciOi...\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://ariacompute.com/api/auth/logout`})}),`\n`]})})})]}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`If you suspect a device was compromised, revoke other sessions first, then rotate any API keys that may have been visible on that device.`})})]})}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":"Enable two-factor authentication for your account","sidebarTitle":"Two-Factor Auth","description":null,"href":"/guides/two-factor-auth"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Enable 2FA","slug":"enable-2fa","depth":2,"children":[]},{"title":"Sign in with 2FA","slug":"sign-in-with-2fa","depth":2,"children":[]},{"title":"Disable 2FA","slug":"disable-2fa","depth":2,"children":[]},{"title":"Manage active sessions","slug":"manage-active-sessions","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"aria-compute","siteName":"Aria Compute","title":"Enable two-factor authentication for your account - Aria Compute","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{},"searchTabScopes":[{"tab":"Documentation"},{"tab":"API Reference"}]},"lastModified":"2026-10-12T15:27:55.614Z","originalFileLocation":"guides/two-factor-auth.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;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=\"system\"}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=\"application-name\" content=\"Aria Compute\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aria-compute/wF_Yt21DrH5Bfzsr/_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/aria-compute/wF_Yt21DrH5Bfzsr/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aria-compute/wF_Yt21DrH5Bfzsr/_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/aria-compute/wF_Yt21DrH5Bfzsr/_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/aria-compute/wF_Yt21DrH5Bfzsr/_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/aria-compute/wF_Yt21DrH5Bfzsr/_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/aria-compute/wF_Yt21DrH5Bfzsr/_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/aria-compute/wF_Yt21DrH5Bfzsr/_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/aria-compute/wF_Yt21DrH5Bfzsr/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Enable two-factor authentication for your account - Aria Compute\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Aria Compute\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.ariacompute.com/guides/two-factor-auth\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://aria-compute.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=Enable+two-factor+authentication+for+your+account\u0026amp;theme=94ee2310f0d96cac827194b7\u0026amp;signature=8b6c01576745431afdb2c5dc452519ddcc120a0862dc6e5797be3bb04e28e65e\">\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=\"Enable two-factor authentication for your account - Aria Compute\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://aria-compute.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=Enable+two-factor+authentication+for+your+account\u0026amp;theme=94ee2310f0d96cac827194b7\u0026amp;signature=8b6c01576745431afdb2c5dc452519ddcc120a0862dc6e5797be3bb04e28e65e\">\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/aria-compute/wF_Yt21DrH5Bfzsr/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Aria Compute\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#000000\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.ariacompute.com/guides/two-factor-auth\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/two-factor-auth.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.ariacompute.com/#organization\",\"name\":\"Aria Compute\",\"url\":\"https://docs.ariacompute.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/aria-compute/-w-NBR2v0CcqoPHV/images/banner-international.svg?fit=max\u0026auto=format\u0026n=-w-NBR2v0CcqoPHV\u0026q=85\u0026s=499bf3ea5acf886ef6db7ec92010a457\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.ariacompute.com#website\",\"name\":\"Aria Compute\",\"url\":\"https://docs.ariacompute.com\",\"publisher\":{\"@id\":\"https://docs.ariacompute.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.ariacompute.com/guides/two-factor-auth#webpage\",\"url\":\"https://docs.ariacompute.com/guides/two-factor-auth\",\"name\":\"Enable two-factor authentication for your account\",\"dateModified\":\"2026-10-12T15:27:55.614Z\",\"isPartOf\":{\"@id\":\"https://docs.ariacompute.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.ariacompute.com/guides/two-factor-auth#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.ariacompute.com/guides/two-factor-auth#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https://docs.ariacompute.com/guides/playground\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Enable two-factor authentication for your account\",\"item\":\"https://docs.ariacompute.com/guides/two-factor-auth\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.ariacompute.com/guides/two-factor-auth#article\",\"headline\":\"Enable two-factor authentication for your account\",\"name\":\"Enable two-factor authentication for your account\",\"url\":\"https://docs.ariacompute.com/guides/two-factor-auth\",\"mainEntityOfPage\":{\"@id\":\"https://docs.ariacompute.com/guides/two-factor-auth#webpage\"},\"dateModified\":\"2026-10-12T15:27:55.614Z\",\"publisher\":{\"@id\":\"https://docs.ariacompute.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.ariacompute.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Aria Compute\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Aria Compute\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/guides/two-factor-auth.md","siteName":"Aria Compute","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Get Started","pages":[{"title":"Aria Compute Documentation","sidebarTitle":"Introduction","href":""},{"title":"Get started with Aria Compute in minutes","sidebarTitle":"Quickstart","href":"/quickstart"},{"title":"Authenticate requests to the Aria Compute API","sidebarTitle":"Authentication","href":"/authentication"}]},{"group":"Product","pages":[{"title":"AFM foundation models","sidebarTitle":"AFM Foundation Models","href":"/concepts/models"},{"title":"PIN training platform","sidebarTitle":"PIN Training Platform","href":"/concepts/pin-training"},{"title":"ROUTER decision routing","sidebarTitle":"ROUTER Decision Routing","href":"/concepts/router-routing"},{"title":"AGENT cloud agents","sidebarTitle":"AGENT Cloud Agents","href":"/concepts/agent-cloud"},{"title":"MEMO Memory Storage","sidebarTitle":"MEMO Memory Storage","href":"/concepts/memo-memory"}]},{"group":"Guides","pages":[{"title":"Playground experience","sidebarTitle":"Playground experience","href":"/guides/playground"},{"title":"Run Ollaya","sidebarTitle":"Run Ollaya","href":"/guides/run-olaya"},{"title":"Create, rotate, and revoke your API keys","sidebarTitle":"Manage API Keys","href":"/guides/manage-api-keys"},{"title":"Top up your wallet with Stripe, WeChat Pay, or Alipay","sidebarTitle":"Top Up Wallet","href":"/guides/top-up-wallet"},{"title":"Download invoices and receipts for your payments","sidebarTitle":"Invoices \u0026 Receipts","description":null,"href":"/guides/invoices-receipts"},{"title":"Enable two-factor authentication for your account","sidebarTitle":"Two-Factor Auth","href":"/guides/two-factor-auth"},{"title":"International and China sites, and how to choose","sidebarTitle":"Sites \u0026 Regions","description":null,"href":"/guides/sites-regions"}]},{"group":"SDKs","pages":[{"title":"Aria Compute SDKs and client libraries","sidebarTitle":"Overview","href":"/sdks/overview"},{"title":"AFM Runtime","sidebarTitle":"AFM Runtime","href":"/sdks/engine-runtime"},{"title":"ROUTER Runtime","sidebarTitle":"ROUTER Runtime","href":"/sdks/router-runtime"},{"title":"AGENT runtime","sidebarTitle":"AGENT runtime","href":"/sdks/agent-runtime"},{"title":"MEMO CLI guide","sidebarTitle":"MEMO CLI","href":"/guides/memo-cli"}]},{"group":"Resources","pages":[{"title":"Latest Aria Engine, Router, Agent, and Memo releases","sidebarTitle":"Downloads","href":"/resources/downloads"},{"title":"HTTP status codes and error responses","sidebarTitle":"Status codes","href":"/resources/status-codes"},{"title":"Platform changelog","sidebarTitle":"Changelog","href":"/resources/changelog"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/pin/introduction"}]}]},"basePath":"","title":"Enable two-factor authentication for your account - Aria Compute","deploymentId":"dpl_7AgmPo2RyRWZ68ZGceW618SWGEAz","buildId":"dpl_7AgmPo2RyRWZ68ZGceW618SWGEAz","dynamics":[],"chunks":[]}