[{"data":1,"prerenderedAt":478,"buildId":479},["ShallowReactive",2],{"\u002Fself-hosting\u002Ftwo-factor-and-passkeys":3,"\u002Fself-hosting\u002Ftwo-factor-and-passkeys-surround":193,"navigation":203},{"id":4,"title":5,"body":6,"description":185,"extension":186,"meta":187,"navigation":188,"path":189,"seo":190,"stem":191,"__hash__":192},"docs\u002F6.self-hosting\u002F8.two-factor-and-passkeys.md","Two-factor and passkeys",{"type":7,"value":8,"toc":177},"minimark",[9,18,23,26,53,68,71,74,100,104,107,122,129,141,145,148,168],[10,11,12,13,17],"p",{},"Everyone manages their own sign-in in ",[14,15,16],"strong",{},"Settings › Sign-in and security",". Nothing needs configuring on the server.",[19,20,22],"h2",{"id":21},"two-factor-authentication","Two-factor authentication",[10,24,25],{},"With two-factor authentication on, signing in with a password also asks for a 6-digit code from an authenticator app such as 1Password, Bitwarden, Google Authenticator or Microsoft Authenticator.",[27,28,29,41,44,50],"ol",{},[30,31,32,33,36,37,40],"li",{},"Choose ",[14,34,35],{},"Set up"," under ",[38,39,22],"em",{},".",[30,42,43],{},"Scan the QR code with the app, or type the setup key into it.",[30,45,46,47,40],{},"Enter the code the app shows and choose ",[14,48,49],{},"Turn on",[30,51,52],{},"Save the 10 recovery codes somewhere safe, such as a password manager. They're shown only once.",[10,54,55,56,59,60,63,64,67],{},"Each recovery code signs you in once in place of an app code; choose ",[14,57,58],{},"Use a recovery code"," on the code screen. The settings page shows how many are left. ",[14,61,62],{},"New recovery codes"," replaces them all, and ",[14,65,66],{},"Turn off"," removes two-factor authentication. Both ask for a current app code or a recovery code first.",[10,69,70],{},"Five wrong codes in a row lock the account for five minutes, the same as wrong passwords.",[10,72,73],{},"Two-factor codes protect password sign-in only:",[75,76,77,86,94,97],"ul",{},[30,78,79,80,85],{},"Signing in with a ",[81,82,84],"a",{"href":83},"#passkeys","passkey"," doesn't ask for a code, because a passkey already proves both who you are and that you have your device.",[30,87,88,89,93],{},"Signing in with ",[81,90,92],{"href":91},"\u002Fself-hosting\u002Fsingle-sign-on","single sign-on"," doesn't ask for a code. Turn on two-factor authentication at your identity provider instead.",[30,95,96],{},"Accounts without a password, such as ones created by single sign-on, don't see the option.",[30,98,99],{},"API tokens, including the one ShareX uses, are unaffected.",[19,101,103],{"id":102},"passkeys","Passkeys",[10,105,106],{},"A passkey signs you in with your fingerprint, face, screen lock or a security key, without typing a password. Passkeys are kept by your device or password manager, and many sync between your devices.",[27,108,109,116,119],{},[30,110,32,111,36,114,40],{},[14,112,113],{},"Add a passkey",[38,115,103],{},[30,117,118],{},"Give it a name you'll recognize, such as the device or password manager that keeps it.",[30,120,121],{},"Confirm in your browser's prompt.",[10,123,124,125,128],{},"On the sign-in page, choose ",[14,126,127],{},"Use a passkey",". Rename or remove passkeys from the menu next to each one. Removing a passkey in Tessra doesn't delete it from your device, so remove it there too.",[10,130,131,132,136,137,140],{},"Passkeys belong to the address Tessra runs at. They need HTTPS, except on ",[133,134,135],"code",{},"localhost",", and they stop working if ",[133,138,139],{},"Tessra__BaseUrl"," moves to a different domain. Add them again after a move.",[19,142,144],{"id":143},"lost-your-phone-or-passkeys","Lost your phone or passkeys",[10,146,147],{},"Use a recovery code, or another passkey. Without either:",[75,149,150,157],{},[30,151,152,153,156],{},"An administrator can reset your sign-in in ",[14,154,155],{},"Settings › Users",". This removes your password, two-factor authentication, passkeys and single sign-on link, and gives you a new setup link.",[30,158,159,160,163,164,40],{},"On the server, ",[133,161,162],{},"admin reset-password \u003Cuser name>"," prints a new password and turns off two-factor authentication. Passkeys are kept. See ",[81,165,167],{"href":166},"\u002Fself-hosting\u002Ftroubleshooting#lost-a-password","Troubleshooting",[10,169,170,171,174,175,40],{},"Administrators can see who has two-factor authentication or passkeys from the ",[14,172,173],{},"2FA"," and passkey badges in ",[14,176,155],{},{"title":178,"searchDepth":179,"depth":180,"links":181},"",2,3,[182,183,184],{"id":21,"depth":179,"text":22},{"id":102,"depth":179,"text":103},{"id":143,"depth":179,"text":144},"Protect password sign-in with authenticator codes, and sign in with a passkey instead of a password.","md",{},true,"\u002Fself-hosting\u002Ftwo-factor-and-passkeys",{"title":5,"description":185},"6.self-hosting\u002F8.two-factor-and-passkeys","3TY_Iv5vPb3_dvOmxQV7wRMk2KEf4Vj-crwPcS6gsjI",[194,198],{"title":195,"path":91,"stem":196,"description":197,"children":-1},"Single sign-on","6.self-hosting\u002F7.single-sign-on","Sign in to Tessra with Pocket ID, Authentik, Authelia, Keycloak or another OpenID Connect provider.",{"title":199,"path":200,"stem":201,"description":202,"children":-1},"Importing","\u002Fself-hosting\u002Fimporting","6.self-hosting\u002F9.importing","Copy an existing library into Tessra from Zipline or a folder on the server, with a preview first, progress you can pause, old Zipline links that keep working, and repeatable imports that skip what already came over.",[204,224,263,307,318,337,348,381,416,430,446],{"title":205,"path":206,"stem":207,"children":208,"icon":223},"Getting started","\u002Fgetting-started","1.getting-started\u002F1.index",[209,211,215,219],{"title":210,"path":206,"stem":207},"Introduction",{"title":212,"path":213,"stem":214},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation",{"title":216,"path":217,"stem":218},"Configure ShareX","\u002Fgetting-started\u002Fsharex","1.getting-started\u002F3.sharex",{"title":220,"path":221,"stem":222},"Updating Tessra","\u002Fgetting-started\u002Fupdating","1.getting-started\u002F4.updating","i-lucide-rocket",{"title":225,"icon":226,"path":227,"stem":228,"children":229,"page":262},"Library","i-lucide-folder","\u002Flibrary","2.library",[230,234,238,242,246,250,254,258],{"title":231,"path":232,"stem":233},"Uploading files","\u002Flibrary\u002Fuploading","2.library\u002F1.uploading",{"title":235,"path":236,"stem":237},"Files and folders","\u002Flibrary\u002Ffiles-and-folders","2.library\u002F2.files-and-folders",{"title":239,"path":240,"stem":241},"Sharing files","\u002Flibrary\u002Fsharing","2.library\u002F3.sharing",{"title":243,"path":244,"stem":245},"Tags","\u002Flibrary\u002Ftags","2.library\u002F4.tags",{"title":247,"path":248,"stem":249},"Fields","\u002Flibrary\u002Ffields","2.library\u002F5.fields",{"title":251,"path":252,"stem":253},"Attachments","\u002Flibrary\u002Fattachments","2.library\u002F6.attachments",{"title":255,"path":256,"stem":257},"Search","\u002Flibrary\u002Fsearch","2.library\u002F7.search",{"title":259,"path":260,"stem":261},"Trash and recovery","\u002Flibrary\u002Ftrash","2.library\u002F8.trash",false,{"title":264,"path":265,"stem":266,"children":267,"icon":306},"Automations","\u002Fautomations","3.automations\u002F01.index",[268,270,274,278,282,286,290,294,298,302],{"title":269,"path":265,"stem":266},"Overview",{"title":271,"path":272,"stem":273},"Your first workflow","\u002Fautomations\u002Ffirst-workflow","3.automations\u002F02.first-workflow",{"title":275,"path":276,"stem":277},"The editor","\u002Fautomations\u002Feditor","3.automations\u002F03.editor",{"title":279,"path":280,"stem":281},"Values and templates","\u002Fautomations\u002Fvalues","3.automations\u002F04.values",{"title":283,"path":284,"stem":285},"Conditions and branching","\u002Fautomations\u002Fbranching","3.automations\u002F05.branching",{"title":287,"path":288,"stem":289},"Upload intake","\u002Fautomations\u002Fintake","3.automations\u002F06.intake",{"title":291,"path":292,"stem":293},"Testing","\u002Fautomations\u002Ftesting","3.automations\u002F07.testing",{"title":295,"path":296,"stem":297},"Runs and history","\u002Fautomations\u002Fruns","3.automations\u002F08.runs",{"title":299,"path":300,"stem":301},"Quarantine and failures","\u002Fautomations\u002Fquarantine","3.automations\u002F09.quarantine",{"title":303,"path":304,"stem":305},"Workflow templates","\u002Fautomations\u002Ftemplates","3.automations\u002F10.templates","i-lucide-workflow",{"title":308,"path":309,"stem":310,"children":311,"icon":317},"Connections","\u002Fconnections","4.connections\u002F1.index",[312,313],{"title":269,"path":309,"stem":310},{"title":314,"path":315,"stem":316},"AI providers","\u002Fconnections\u002Fai-providers","4.connections\u002F2.ai-providers","i-lucide-plug",{"title":319,"path":320,"stem":321,"children":322,"icon":336},"AI","\u002Fai","5.ai\u002F1.index",[323,324,328,332],{"title":269,"path":320,"stem":321},{"title":325,"path":326,"stem":327},"AI classify and extract","\u002Fai\u002Fclassify-and-extract","5.ai\u002F2.classify-and-extract",{"title":329,"path":330,"stem":331},"AI describe, summarize and write","\u002Fai\u002Fdescribe-and-write","5.ai\u002F3.describe-and-write",{"title":333,"path":334,"stem":335},"AI detect and suggest tags","\u002Fai\u002Fdetect-and-tag","5.ai\u002F4.detect-and-tag","i-lucide-sparkles",{"title":338,"path":339,"stem":340,"children":341,"icon":347},"OCR","\u002Focr","5.ocr\u002F1.index",[342,343],{"title":269,"path":339,"stem":340},{"title":344,"path":345,"stem":346},"Setup","\u002Focr\u002Fsetup","5.ocr\u002F2.setup","i-lucide-scan-text",{"title":349,"path":350,"stem":351,"children":352,"icon":380},"Self-hosting","\u002Fself-hosting","6.self-hosting\u002F1.index",[353,354,357,361,365,369,373,377,378,379],{"title":269,"path":350,"stem":351},{"title":167,"path":355,"stem":356},"\u002Fself-hosting\u002Ftroubleshooting","6.self-hosting\u002F10.troubleshooting",{"title":358,"path":359,"stem":360},"Configuration","\u002Fself-hosting\u002Fconfiguration","6.self-hosting\u002F2.configuration",{"title":362,"path":363,"stem":364},"Reverse proxies and HTTPS","\u002Fself-hosting\u002Freverse-proxy","6.self-hosting\u002F3.reverse-proxy",{"title":366,"path":367,"stem":368},"DigitalOcean","\u002Fself-hosting\u002Fdigitalocean","6.self-hosting\u002F4.digitalocean",{"title":370,"path":371,"stem":372},"Backups and restoration","\u002Fself-hosting\u002Fbackups","6.self-hosting\u002F5.backups",{"title":374,"path":375,"stem":376},"Users and roles","\u002Fself-hosting\u002Fusers","6.self-hosting\u002F6.users",{"title":195,"path":91,"stem":196},{"title":5,"path":189,"stem":191},{"title":199,"path":200,"stem":201},"i-lucide-server",{"title":382,"path":383,"stem":384,"children":385,"icon":415},"Guides","\u002Fguides","7.guides\u002F1.index",[386,387,391,395,399,403,407,411],{"title":269,"path":383,"stem":384},{"title":388,"path":389,"stem":390},"Optimize ShareX uploads","\u002Fguides\u002Fcompress-uploads","7.guides\u002F2.compress-uploads",{"title":392,"path":393,"stem":394},"Send Discord notifications","\u002Fguides\u002Fdiscord-notifications","7.guides\u002F3.discord-notifications",{"title":396,"path":397,"stem":398},"Organize screenshots with AI","\u002Fguides\u002Fcategorize-screenshots","7.guides\u002F4.categorize-screenshots",{"title":400,"path":401,"stem":402},"Extract receipts with AI","\u002Fguides\u002Fextract-receipts","7.guides\u002F5.extract-receipts",{"title":404,"path":405,"stem":406},"Name screenshots with AI","\u002Fguides\u002Fai-file-names","7.guides\u002F6.ai-file-names",{"title":408,"path":409,"stem":410},"Run AI locally with Ollama","\u002Fguides\u002Flocal-ai-ollama","7.guides\u002F7.local-ai-ollama",{"title":412,"path":413,"stem":414},"Make screenshots searchable","\u002Fguides\u002Fsearchable-screenshots","7.guides\u002F8.searchable-screenshots","i-lucide-book-open",{"title":417,"icon":418,"path":419,"stem":420,"children":421,"page":262},"Reference","i-lucide-library","\u002Freference","8.reference",[422,426],{"title":423,"path":424,"stem":425},"Step reference","\u002Freference\u002Fsteps","8.reference\u002F1.steps",{"title":427,"path":428,"stem":429},"Limits and errors","\u002Freference\u002Flimits","8.reference\u002F2.limits",{"title":431,"path":432,"stem":433,"children":434,"icon":445},"Development","\u002Fdevelopment","9.development\u002F1.index",[435,437,441],{"title":436,"path":432,"stem":433},"Local development",{"title":438,"path":439,"stem":440},"Plugin development","\u002Fdevelopment\u002Fplugins","9.development\u002F2.plugins",{"title":442,"path":443,"stem":444},"Writing documentation","\u002Fdevelopment\u002Fdocumentation","9.development\u002F3.documentation","i-lucide-code",{"title":447,"path":448,"stem":449,"children":450,"icon":477},"Comparisons","\u002Fcomparisons","99.comparisons\u002F1.index",[451,453,457,461,465,469,473],{"title":452,"path":448,"stem":449},"Comparing Tessra",{"title":454,"path":455,"stem":456},"Tessra and Zipline","\u002Fcomparisons\u002Fzipline","99.comparisons\u002F2.zipline",{"title":458,"path":459,"stem":460},"Tessra and XBackBone","\u002Fcomparisons\u002Fxbackbone","99.comparisons\u002F3.xbackbone",{"title":462,"path":463,"stem":464},"Tessra and chibisafe","\u002Fcomparisons\u002Fchibisafe","99.comparisons\u002F4.chibisafe",{"title":466,"path":467,"stem":468},"Tessra and Slink","\u002Fcomparisons\u002Fslink","99.comparisons\u002F5.slink",{"title":470,"path":471,"stem":472},"Tessra and Pingvin Share","\u002Fcomparisons\u002Fpingvin-share","99.comparisons\u002F6.pingvin-share",{"title":474,"path":475,"stem":476},"Tessra and PicoShare","\u002Fcomparisons\u002Fpicoshare","99.comparisons\u002F7.picoshare","i-lucide-scale",1796304103061,"274e9c9b-14f5-43a9-b08a-f9db377ea0d1"]