Sign a user in on a kiosk after the user scans a QR code with a phone.
This guide tells you how to authenticate a user on a device with limited input capabilities. The user scans a QR code and completes an authentication challenge on their mobile phone.The flow has four steps:
The kiosk shows a QR code. No user is signed in. This is an anonymous challenge.
The user scans the QR code with a phone.
The user identifies themselves and completes a challenge.
The shared device receives the result and signs the user in.
This guide is not about QR code app
verification. In that method, an enrolled
mobile app scans the code and approves the request with a private key.
Terms
Term
Meaning
Kiosk
The shared device that shows the QR code. This can be a kiosk, a TV, or a desktop browser.
Phone
The personal device that scans the QR code.
Challenge ID
The identifier of the anonymous challenge. Put this value in the QR code.
Device code
A secret that the kiosk stores. The kiosk sends it with each poll request. Do not put it in the QR code.
Action code
The name of the action, for example signIn. The kiosk and the phone must use the same action code.
Sequence diagram
Before you start
You need these items:
A tenant with an active authentication method.
An action configuration. The action must challenge the user.
The tenant ID. The kiosk uses the tenant ID as a publishable key.
The tenant secret. Your backend uses the tenant secret.
A web page that you control. The phone opens this page. The page reads the challengeId query parameter.
The kiosk uses only the tenant ID. Never put the tenant secret on the kiosk.
Step 1 - Create the challenge on the kiosk
The kiosk creates an anonymous challenge. This endpoint needs no QR code authentication method configuration.
The identifier of the anonymous challenge. Put this value in the QR code.
string
The secret that identifies the kiosk. Store this value on the kiosk. The kiosk sends it with each
poll request.
The challenge expires after the token duration of your tenant. The default duration is 10 minutes. Create a new challenge before the old challenge expires to show a fresh code.
Step 2 - Show the QR code
Build the contents of the QR code. Put your own sign-in URL in the code. Add the challenge ID as a query parameter.
The kiosk shows the QR code while it waits for a user
Do not put the device code in the QR code. The device code is the secret that shows that the poll
comes from the kiosk.
Step 3 - Complete the challenge on the phone
The phone opens your sign-in page. Your page reads the challengeId parameter, identifies the user, then sends the user to the Authsignal pre-built UI.
1
Identify the user
Ask the user for an identifier. This example asks for a user ID. You can also ask for an email
address or a phone number and then read the user ID from your own user record.
The page on the phone collects an identifier before it tracks the action
2
Track the action from your backend
Send the challenge ID with the request.
const result = await authsignal.track({ userId, action: "signIn", // Must be the action code from step 1 challengeId, // From the QR code redirectUrl: "https://kiosk.example.com/api/finish",});redirect(result.url); // The Authsignal pre-built UI
The action code in the track request must be the same as the action code in step 1. If the
action codes are different, the request fails with 404 not_found and the message
Challenge not found.
3
Let the user complete the challenge
The pre-built UI challenges the user based on the methods they have enrolled and methods that are configured on the action.
4
Validate the token on your backend
The pre-built UI sends the user to your redirectUrl. The URL carries a token.
const { isValid, userId } = await authsignal.validateChallenge({ action: "signIn", // Must be the action code from step 1 token,});
The phone confirms the result after the user completes the challenge
The kiosk receives the same result from its own poll. Step 4 tells you how.
Step 4 - Poll the result on the kiosk
The kiosk polls the anonymous challenge with the challenge ID and the device code from step 1.
Poll about one time each second while the challenge is active. Stop the poll when isConsumed is true. Stop the poll if the challenge expires.
The kiosk hides the code after a user claims the challenge
When the response gives isVerified, send the accessToken to your backend. Validate the token before you make the kiosk session.
const result = await authsignal.validateChallenge({ action: "signIn", // Must be the action code from step 1 token: accessToken,});if (result.isValid) { // Make the kiosk session for result.userId}
The kiosk signs the user in after it validates the access token
The final result is single-use. Authsignal invalidates the anonymous challenge when it gives the
consumed result. A later poll with the same challenge ID and device code fails.
Was this page helpful?
⌘I
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Authsignal","colors":{"primary":"#8b7bff","light":"#8b7bff","dark":"#8b7bff"},"logo":{"light":"https://mintcdn.com/authsignal-23/Q2QPBK1EKmJpLovY/logo/light.png?fit=max\u0026auto=format\u0026n=Q2QPBK1EKmJpLovY\u0026q=85\u0026s=8c4bd51abfac23972d75d85678c2f1ed","dark":"https://mintcdn.com/authsignal-23/Q2QPBK1EKmJpLovY/logo/dark.png?fit=max\u0026auto=format\u0026n=Q2QPBK1EKmJpLovY\u0026q=85\u0026s=275e53c69fb0a7eff954a0d2ed3421a2"},"favicon":"https://mintcdn.com/authsignal-23/LJehOZQCDC4ES5ZZ/favicon.png?fit=max\u0026auto=format\u0026n=LJehOZQCDC4ES5ZZ\u0026q=85\u0026s=5a39c31db14fe195577d579ebd367170","api":{"openapi":["terminal-api.json","management-api.json","server-api.json","client-api.json","call-connect-api.json"],"playground":{"display":"simple"},"mdx":{"server":["https://api.authsignal.com/v1","https://au.api.authsignal.com/v1","https://eu.api.authsignal.com/v1","https://ca.api.authsignal.com/v1","https://uk.api.authsignal.com/v1"]}},"appearance":{"default":"light"},"background":{"decoration":"gradient"},"footer":{"socials":{"x":"https://x.com/authsignal?lang=en","linkedin":"https://www.linkedin.com/company/authsignal","github":"https://github.com/authsignal"}},"seo":{"metatags":{"description":"Learn how to integrate with Authsignal.","canonical":"https://docs.authsignal.com"},"indexing":"navigable"},"integrations":{"gtm":{"tagId":"GTM-MZPJQQSP"}},"contextual":{"options":["copy","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"authsignal-23","hasAudioNarration":false,"actualSubdomain":"authsignal-23","customDomains":["docs.authsignal.com"],"gitSource":{"type":"github","owner":"authsignal","repo":"authsignal-api-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0345e14ca26305da2a6f24","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"API reference","count":116},{"language":"default","tag":"Documentation","count":86},{"language":"default","tag":"Management API","count":44},{"language":"default","tag":"SDKs","count":36},{"language":"default","tag":"Client API","count":32},{"language":"default","tag":"Server API","count":29},{"language":"default","tag":"Integrations","count":28},{"language":"default","tag":"Client","count":26},{"language":"default","tag":"Knowledge base","count":24},{"language":"default","tag":"Webhooks","count":19}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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}],"googleFontsInlined":false},"customCss":[{"filePath":"styles/style.css","content":".action-state-pill{border-radius:9999px;padding:0.125rem 0.625rem;font-size:0.75rem;font-weight:500;line-height:1rem;color:#1f2937;background-color:#f3f4f6}.action-state-pill__CHALLENGE_FAILED{background-color:#fdd8d8;color:#611919}.action-state-pill__BLOCK{background-color:#f88b8b;color:#611919}.action-state-pill__CHALLENGE_REQUIRED{background-color:#fef4da;color:#64501d}.action-state-pill__CHALLENGE_SUCCEEDED{background-color:#daf5e7;color:#1c5135}.action-state-pill__REVIEW_REQUIRED{background-color:#d8e5fd;color:#063e5d}.action-state-pill__REVIEW_SUCCEEDED{background-color:#daf5e7;color:#1c5135}.action-state-pill__REVIEW_FAILED{background-color:#fdd8d8;color:#611919}.action-state-pill__ALLOW{background-color:#8fe0b6;color:#1c5135}.w-500{width:500px}.w-400{width:400px}.w-300{width:300px}.rl-timeline{--rl-surface: #fafafa;--rl-border: #e4e4e7;--rl-axis: #a1a1aa;--rl-muted: #71717a;--rl-blocked-band: rgba(245, 158, 11, 0.25);--rl-lane-rail: rgba(113, 113, 122, 0.12);--rl-lane-band: rgba(245, 158, 11, 0.45);--rl-error-fill: #fde2e2;--rl-error-stroke: #e8a0a0;--rl-blocked-fill: #fef3c7;--rl-blocked-stroke: #d9a43a;--rl-success-fill: #dcfce7;--rl-success-stroke: #6cc28a;margin:1.5rem 0}.dark .rl-timeline{--rl-surface: rgba(255, 255, 255, 0.03);--rl-border: rgba(255, 255, 255, 0.1);--rl-axis: #71717a;--rl-muted: #a1a1aa;--rl-blocked-band: rgba(251, 191, 36, 0.25);--rl-lane-rail: rgba(255, 255, 255, 0.06);--rl-lane-band: rgba(251, 191, 36, 0.4);--rl-error-fill: rgba(248, 113, 113, 0.25);--rl-error-stroke: #f87171;--rl-blocked-fill: rgba(251, 191, 36, 0.25);--rl-blocked-stroke: #fbbf24;--rl-success-fill: rgba(74, 222, 128, 0.25);--rl-success-stroke: #4ade80}.rl-timeline__scroll{overflow-x:auto;border:1px solid var(--rl-border);border-radius:1rem;background-color:var(--rl-surface);padding:1.25rem 0 0.75rem}.rl-timeline__track{position:relative;min-width:30rem;height:10rem;margin:0 2.5rem}.rl-timeline__axis{position:absolute;top:4rem;left:0;right:0;height:1px;background-color:var(--rl-axis)}.rl-timeline__axis::after{content:\"\";position:absolute;right:-6px;top:-4px;border-top:4.5px solid transparent;border-bottom:4.5px solid transparent;border-left:7px solid var(--rl-axis)}.rl-timeline__blocked{position:absolute;top:calc(4rem - 3px);height:7px;border-radius:9999px;background-color:var(--rl-blocked-band)}.rl-timeline__blocked-label{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);font-size:0.75rem;color:var(--rl-muted);white-space:nowrap}.rl-timeline__event{position:absolute;top:4rem;width:0;height:0}.rl-timeline__dot{position:absolute;left:-7px;top:-7px;width:14px;height:14px;border-radius:9999px;border:1.5px solid var(--rl-success-stroke);background-color:var(--rl-success-fill)}.rl-timeline__dot--error{border-color:var(--rl-error-stroke);background-color:var(--rl-error-fill)}.rl-timeline__dot--blocked{border-color:var(--rl-blocked-stroke);background-color:var(--rl-blocked-fill)}.rl-timeline__label{position:absolute;left:0;display:flex;flex-direction:column;align-items:center;gap:0.125rem;transform:translateX(-50%);white-space:nowrap}.rl-timeline__event--above .rl-timeline__label{bottom:16px}.rl-timeline__event--below .rl-timeline__label{top:16px}.rl-timeline__title{font-size:0.8125rem;font-weight:500;line-height:1.2}.rl-timeline__time,.rl-timeline__end,.rl-timeline__window-label,.rl-timeline__caption{font-size:0.75rem;line-height:1.2;color:var(--rl-muted);font-variant-numeric:tabular-nums}.rl-timeline__end{position:absolute;top:calc(4rem + 10px)}.rl-timeline__end--start{left:0}.rl-timeline__end--end{right:0}.rl-timeline__window{position:absolute;top:calc(4rem + 4.25rem);height:8px;border:1px solid var(--rl-axis);border-top:none}.rl-timeline__window-label{position:absolute;top:14px;left:50%;transform:translateX(-50%);white-space:nowrap}.rl-timeline__lane{position:absolute;left:0;right:0}.rl-timeline__lane-label{font-size:0.75rem;line-height:1.2;color:var(--rl-muted);white-space:nowrap}.rl-timeline__lane-rail{position:relative;margin-top:0.375rem;height:7px;border-radius:9999px;background-color:var(--rl-lane-rail)}.rl-timeline__lane-band{position:absolute;top:0;bottom:0;border-radius:9999px;background-color:var(--rl-lane-band)}.rl-timeline__caption{margin-top:0.5rem;text-align:center;font-size:0.875rem}.rl-groups{--rl-border: #e4e4e7;--rl-ink: #27272a;--rl-muted: #a1a1aa;--rl-note: #71717a;--rl-country-fill: #ffffff;--rl-chip-fill: #ffffff;--rl-tag-fill: rgba(113, 113, 122, 0.08);--rl-tone-0-fill: rgba(139, 123, 255, 0.08);--rl-tone-0-stroke: rgba(139, 123, 255, 0.35);--rl-tone-1-fill: rgba(14, 165, 233, 0.07);--rl-tone-1-stroke: rgba(14, 165, 233, 0.3);margin:1.5rem 0}.dark .rl-groups{--rl-border: rgba(255, 255, 255, 0.1);--rl-ink: #e4e4e7;--rl-muted: #71717a;--rl-note: #a1a1aa;--rl-country-fill: rgba(255, 255, 255, 0.03);--rl-chip-fill: rgba(255, 255, 255, 0.05);--rl-tag-fill: rgba(255, 255, 255, 0.06);--rl-tone-0-fill: rgba(139, 123, 255, 0.12);--rl-tone-0-stroke: rgba(139, 123, 255, 0.4);--rl-tone-1-fill: rgba(56, 189, 248, 0.09);--rl-tone-1-stroke: rgba(56, 189, 248, 0.35)}.rl-groups__country{border:1px solid var(--rl-border);border-radius:1rem;background-color:var(--rl-country-fill);padding:1rem 1.25rem 1.25rem}.rl-groups__header{display:flex;align-items:center;justify-content:space-between;gap:0.75rem;margin-bottom:0.75rem}.rl-groups__title{font-size:0.8125rem;font-weight:600;color:var(--rl-ink)}.rl-groups__mono{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;font-variant-numeric:tabular-nums}.rl-groups__muted{color:var(--rl-muted);font-weight:400}.rl-groups__tag{border-radius:9999px;padding:0.0625rem 0.5rem;font-size:0.6875rem;font-weight:500;white-space:nowrap;color:var(--rl-note);background-color:var(--rl-tag-fill)}.rl-groups__row{display:flex;flex-wrap:wrap;gap:0.75rem}.rl-groups__group{flex:1 1 13rem;border:1px solid;border-radius:0.625rem;padding:0.75rem}.rl-groups__group .rl-groups__header{margin-bottom:0.625rem}.rl-groups__tone-0{border-color:var(--rl-tone-0-stroke);background-color:var(--rl-tone-0-fill)}.rl-groups__tone-1{border-color:var(--rl-tone-1-stroke);background-color:var(--rl-tone-1-fill)}.rl-groups__numbers{display:flex;flex-direction:column;align-items:flex-start;gap:0.375rem}.rl-groups__chip{border:1px solid var(--rl-border);border-radius:0.375rem;padding:0.1875rem 0.5rem;font-size:0.8125rem;white-space:nowrap;color:var(--rl-ink);background-color:var(--rl-chip-fill)}.rl-groups__caption{margin-top:0.5rem;text-align:center;font-size:0.875rem;color:var(--rl-note)}#hubspot-messages-iframe-container{color-scheme:light}"}]}
{"page":{"pagePath":"advanced-usage/cross-device-qr-sign-in","slug":"/advanced-usage/cross-device-qr-sign-in","pageMetadata":{"title":"Cross-device QR code sign-in","sidebarTitle":"Cross-device QR code sign-in","description":"Sign a user in on a kiosk after the user scans a QR code with a phone.","href":"/advanced-usage/cross-device-qr-sign-in"},"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: \"Sign a user in on a kiosk after the user scans a QR code with a phone.\"\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={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Frame,Heading,Mermaid,Note,OptimizedImage,ResponseField,Step,Steps,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Mermaid)_missingMdxReference(`Mermaid`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`This guide tells you how to authenticate a user on a device with limited input capabilities. The user scans a QR code and completes an authentication challenge on their mobile phone.`}),`\n`,_jsx(_components.p,{children:`The flow has four steps:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`The kiosk shows a QR code. No user is signed in. This is an `,_jsx(_components.strong,{children:`anonymous challenge`}),`.`]}),`\n`,_jsx(_components.li,{children:`The user scans the QR code with a phone.`}),`\n`,_jsx(_components.li,{children:`The user identifies themselves and completes a challenge.`}),`\n`,_jsx(_components.li,{children:`The shared device receives the result and signs the user in.`}),`\n`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`This guide is not about `,_jsx(_components.a,{href:`/authentication-methods/app-verification/qr-code`,children:`QR code app\nverification`}),`. In that method, an enrolled\nmobile app scans the code and approves the request with a private key.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`terms`,children:`Terms`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Term`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Kiosk`}),_jsx(_components.td,{children:`The shared device that shows the QR code. This can be a kiosk, a TV, or a desktop browser.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Phone`}),_jsx(_components.td,{children:`The personal device that scans the QR code.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Challenge ID`}),_jsx(_components.td,{children:`The identifier of the anonymous challenge. Put this value in the QR code.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Device code`}),_jsx(_components.td,{children:`A secret that the kiosk stores. The kiosk sends it with each poll request. Do not put it in the QR code.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Action code`}),_jsxs(_components.td,{children:[`The name of the action, for example `,_jsx(_components.code,{children:`signIn`}),`. The kiosk and the phone must use the same action code.`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`sequence-diagram`,children:`Sequence diagram`}),`\n`,_jsx(Mermaid,{chart:`sequenceDiagram\n participant K as Kiosk\n participant B as Your backend\n participant P as Phone browser\n participant A as Authsignal\n\n K->>A: 1. Create an anonymous challenge\n A->>K: challengeId + deviceCode\n K->>K: 2. Show a QR code for your sign-in page\n P->>K: 3. User scans the code\n P->>B: 4. Open /sign-in?challengeId=...\n Note right of P: User identifies themselves\n B->>A: 5. Track the action with the userId + challengeId\n A->>B: Pre-built UI URL\n P->>A: 6. User completes the challenge\n K->>A: 7. Poll with challengeId + deviceCode\n A->>K: 8. Verified result + accessToken\n K->>B: 9. Send the accessToken\n B->>A: 10. Validate the token\n B->>K: 11. Authenticated`}),`\n`,_jsx(Heading,{level:`2`,id:`before-you-start`,children:`Before you start`}),`\n`,_jsx(_components.p,{children:`You need these items:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`A tenant with an active authentication method.`}),`\n`,_jsx(_components.li,{children:`An action configuration. The action must challenge the user.`}),`\n`,_jsx(_components.li,{children:`The tenant ID. The kiosk uses the tenant ID as a publishable key.`}),`\n`,_jsx(_components.li,{children:`The tenant secret. Your backend uses the tenant secret.`}),`\n`,_jsxs(_components.li,{children:[`A web page that you control. The phone opens this page. The page reads the `,_jsx(_components.code,{children:`challengeId`}),` query parameter.`]}),`\n`]}),`\n`,_jsx(Warning,{children:`The kiosk uses only the tenant ID. Never put the tenant secret on the kiosk.`}),`\n`,_jsx(Heading,{level:`2`,id:`step-1-create-the-challenge-on-the-kiosk`,children:`Step 1 - Create the challenge on the kiosk`}),`\n`,_jsx(_components.p,{children:`The kiosk creates an anonymous challenge. This endpoint needs no QR code authentication method configuration.`}),`\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://api.authsignal.com/v1/client/challenge`}),_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: Basic $(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`echo`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '\u003ctenant id>' `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`|`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` base64`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`)\"`}),_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:` '{\"action\": \"signIn\"}'`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The response has two values:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"challengeId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"d2c42aff-863b-4b00-9e1f-ff2d408cb4e5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"deviceCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"e4242d4a-6286-443d-b29e-0951fe5dbfdf\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(ResponseField,{name:`challengeId`,type:`string`,id:`param-challenge-id`,children:_jsx(_components.p,{children:`The identifier of the anonymous challenge. Put this value in the QR code.`})}),`\n`,_jsx(ResponseField,{name:`deviceCode`,type:`string`,id:`param-device-code`,children:_jsx(_components.p,{children:`The secret that identifies the kiosk. Store this value on the kiosk. The kiosk sends it with each\npoll request.`})}),`\n`,_jsx(_components.p,{children:`The challenge expires after the token duration of your tenant. The default duration is 10 minutes. Create a new challenge before the old challenge expires to show a fresh code.`}),`\n`,_jsx(Heading,{level:`2`,id:`step-2-show-the-qr-code`,children:`Step 2 - Show the QR code`}),`\n`,_jsx(_components.p,{children:`Build the contents of the QR code. Put your own sign-in URL in the code. Add the challenge ID as a query parameter.`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://kiosk.example.com/sign-in?challengeId=d2c42aff-863b-4b00-9e1f-ff2d408cb4e5`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Use any QR code library to draw the image.`}),`\n`,_jsx(Frame,{caption:`The kiosk shows the QR code while it waits for a user`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-kiosk-code.png?fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=53256cd34c642d9037cd324a00b1c2ae`,className:`w-500`,alt:`A kiosk screen with the heading Scan to sign in above a QR code`,\"data-og-width\":`1000`,width:`1000`,\"data-og-height\":`848`,height:`848`,\"data-path\":`images/docs/advanced-usage/cross-device-qr-kiosk-code.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-kiosk-code.png?w=280\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=32f9b2e2630a22644a7f3d1538cf90b7 280w, https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-kiosk-code.png?w=560\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=3b97cd7e632fa5d250106487c6dd5157 560w, https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-kiosk-code.png?w=840\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=7b8b89930ae5ec5f3a3611ca79284166 840w, https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-kiosk-code.png?w=1100\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=6a78bf340dc5dbc86ee26cf5c1ae0e27 1100w, https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-kiosk-code.png?w=1650\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=65e3037b6825abe011cb09722bdc8a45 1650w, https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-kiosk-code.png?w=2500\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=7ed535552b24f3da1e660124fc7a5c0e 2500w`})}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Do not put the device code in the QR code. The device code is the secret that shows that the poll\ncomes from the kiosk.`})}),`\n`,_jsx(Heading,{level:`2`,id:`step-3-complete-the-challenge-on-the-phone`,children:`Step 3 - Complete the challenge on the phone`}),`\n`,_jsxs(_components.p,{children:[`The phone opens your sign-in page. Your page reads the `,_jsx(_components.code,{children:`challengeId`}),` parameter, identifies the user, then sends the user to the Authsignal pre-built UI.`]}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Identify the user`,children:[_jsx(_components.p,{children:`Ask the user for an identifier. This example asks for a user ID. You can also ask for an email\naddress or a phone number and then read the user ID from your own user record.`}),_jsx(Frame,{caption:`The page on the phone collects an identifier before it tracks the action`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-phone-identify.png?fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=0680a58c8699273527c32b96efb44624`,className:`w-300`,alt:`A phone screen with the heading Verify it's you above an identifier field and a Continue button`,\"data-og-width\":`600`,width:`600`,\"data-og-height\":`1133`,height:`1133`,\"data-path\":`images/docs/advanced-usage/cross-device-qr-phone-identify.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-phone-identify.png?w=280\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=fff3af4117558f808a11e2bdb4c07682 280w, https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-phone-identify.png?w=560\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=1a8debfebac72408f02f93af39050532 560w, https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-phone-identify.png?w=840\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=15517f42b3b1895893179bc51dbf8a3e 840w, https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-phone-identify.png?w=1100\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=055db8b6c693f0f10188e2c336086e97 1100w, https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-phone-identify.png?w=1650\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=f17c30b7651a13324fa9f561732332bd 1650w, https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-phone-identify.png?w=2500\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=f5fa77356cb0f27788aa209d68ef0c48 2500w`})})]}),_jsxs(Step,{title:`Track the action from your backend`,children:[_jsx(_components.p,{children:`Send the challenge ID with the request.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` authsignal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`track`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` userId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` action:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"signIn\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Must be the action code from step 1`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` challengeId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// From the QR code`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` redirectUrl:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://kiosk.example.com/api/finish\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`redirect`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// The Authsignal pre-built UI`})]}),`\n`]})})}),_jsx(Warning,{children:_jsxs(_components.p,{children:[`The action code in the `,_jsx(_components.code,{children:`track`}),` request must be the same as the action code in step 1. If the\naction codes are different, the request fails with `,_jsx(_components.code,{children:`404 not_found`}),` and the message\n`,_jsx(_components.code,{children:`Challenge not found.`})]})})]}),_jsx(Step,{title:`Let the user complete the challenge`,children:_jsx(_components.p,{children:`The pre-built UI challenges the user based on the methods they have enrolled and methods that are configured on the action.`})}),_jsxs(Step,{title:`Validate the token on your backend`,children:[_jsxs(_components.p,{children:[`The pre-built UI sends the user to your `,_jsx(_components.code,{children:`redirectUrl`}),`. The URL carries a token.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`isValid`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`userId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` authsignal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`validateChallenge`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` action:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"signIn\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Must be the action code from step 1`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` token`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})})]})]}),`\n`,_jsx(Frame,{caption:`The phone confirms the result after the user completes the challenge`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-phone-success.png?fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=39f006069a63e384d71c41c899c732a6`,className:`w-300`,alt:`A phone screen with the heading All done and the text You're signed in on the kiosk`,\"data-og-width\":`600`,width:`600`,\"data-og-height\":`1133`,height:`1133`,\"data-path\":`images/docs/advanced-usage/cross-device-qr-phone-success.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-phone-success.png?w=280\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=f3fc52fa662e220b918b3849203523e9 280w, https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-phone-success.png?w=560\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=48ad8f007389b666d7da456ac6671c99 560w, https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-phone-success.png?w=840\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=1a712865be87ff88cb0ed5999430a09c 840w, https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-phone-success.png?w=1100\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=5726b15cfabf3bca6f80f5c4e86fdbbe 1100w, https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-phone-success.png?w=1650\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=1f91820fd8c1e33317934e2bd95d4e0f 1650w, https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-phone-success.png?w=2500\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=5ce383ff93a58fd7a5349df0ee1c8242 2500w`})}),`\n`,_jsxs(_components.p,{children:[`The kiosk receives the same result from its own poll. `,_jsx(_components.a,{href:`#step-4-poll-the-result-on-the-kiosk`,children:`Step 4`}),` tells you how.`]}),`\n`,_jsx(Heading,{level:`2`,id:`step-4-poll-the-result-on-the-kiosk`,children:`Step 4 - Poll the result on the kiosk`}),`\n`,_jsx(_components.p,{children:`The kiosk polls the anonymous challenge with the challenge ID and the device code from step 1.`}),`\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://api.authsignal.com/v1/client/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:` \"Authorization: Basic $(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`echo`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '\u003ctenant id>' `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`|`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` base64`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`)\"`}),_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:` '{\"challengeId\": \"...\", \"deviceCode\": \"...\"}'`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The response gives the state of the flow.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`State`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`isClaimed`})}),_jsx(_components.th,{children:_jsx(_components.code,{children:`isConsumed`})}),_jsx(_components.th,{children:_jsx(_components.code,{children:`isVerified`})}),_jsx(_components.th,{children:_jsx(_components.code,{children:`accessToken`})})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`No user has an identity on the challenge`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsx(_components.td,{children:`absent`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The user has an identity but no result yet`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`true`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsx(_components.td,{children:`absent`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The user completed the challenge successfully`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`true`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`true`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`true`})}),_jsx(_components.td,{children:`present`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The user completed the challenge unsuccessfully`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`true`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`true`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsx(_components.td,{children:`absent`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Poll about one time each second while the challenge is active. Stop the poll when `,_jsx(_components.code,{children:`isConsumed`}),` is `,_jsx(_components.code,{children:`true`}),`. Stop the poll if the challenge expires.`]}),`\n`,_jsx(Frame,{caption:`The kiosk hides the code after a user claims the challenge`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-kiosk-verifying.png?fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=a4ed839586a30a82a0d9a1da87076825`,className:`w-500`,alt:`A kiosk screen with the heading Verifying on your phone above an obscured QR code and a spinner`,\"data-og-width\":`1000`,width:`1000`,\"data-og-height\":`848`,height:`848`,\"data-path\":`images/docs/advanced-usage/cross-device-qr-kiosk-verifying.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-kiosk-verifying.png?w=280\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=062dac134e9893ea1b7a38023fee8796 280w, https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-kiosk-verifying.png?w=560\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=d8457177b5ea85e482369e498f2f3984 560w, https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-kiosk-verifying.png?w=840\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=8c7df821411ab3d72ae74905033e5357 840w, https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-kiosk-verifying.png?w=1100\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=ad7b3526b97c85d925f6946087104a61 1100w, https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-kiosk-verifying.png?w=1650\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=5833304c28e56f9c34240b63c1a14407 1650w, https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-kiosk-verifying.png?w=2500\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=bcf04a892d48716b1d9830c2298469a3 2500w`})}),`\n`,_jsxs(_components.p,{children:[`When the response gives `,_jsx(_components.code,{children:`isVerified`}),`, send the `,_jsx(_components.code,{children:`accessToken`}),` to your backend. Validate the token before you make the kiosk session.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` authsignal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`validateChallenge`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` action:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"signIn\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Must be the action code from step 1`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` token:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` accessToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`isValid`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Make the kiosk session for result.userId`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Frame,{caption:`The kiosk signs the user in after it validates the access token`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-kiosk-done.png?fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=ec3052803ec4fbd40b9de2a775ef4a58`,className:`w-500`,alt:`A kiosk screen with the heading You're in and the text Signed in as demo-1e247861`,\"data-og-width\":`1000`,width:`1000`,\"data-og-height\":`848`,height:`848`,\"data-path\":`images/docs/advanced-usage/cross-device-qr-kiosk-done.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-kiosk-done.png?w=280\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=9befda023cbeedb588db1236555bede0 280w, https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-kiosk-done.png?w=560\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=3de9504162467ca61c61d4c9a2f77a6d 560w, https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-kiosk-done.png?w=840\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=20f4d13ad6a7e6344543caf1151aca1f 840w, https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-kiosk-done.png?w=1100\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=57f65285344f3adff60c61b023bfe512 1100w, https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-kiosk-done.png?w=1650\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=afda6db329121aa84a23031cdd88d2c9 1650w, https://mintcdn.com/authsignal-23/GF2w7la1nqiZ76um/images/docs/advanced-usage/cross-device-qr-kiosk-done.png?w=2500\u0026fit=max\u0026auto=format\u0026n=GF2w7la1nqiZ76um\u0026q=85\u0026s=76961604335f875873f19d1a9e168cc4 2500w`})}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`The final result is single-use. Authsignal invalidates the anonymous challenge when it gives the\nconsumed result. A later poll with the same challenge ID and device code fails.`})})]})}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":"Cross-device QR code sign-in","sidebarTitle":"Cross-device QR code sign-in","description":"Sign a user in on a kiosk after the user scans a QR code with a phone.","href":"/advanced-usage/cross-device-qr-sign-in"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Terms","slug":"terms","depth":2,"children":[]},{"title":"Sequence diagram","slug":"sequence-diagram","depth":2,"children":[]},{"title":"Before you start","slug":"before-you-start","depth":2,"children":[]},{"title":"Step 1 - Create the challenge on the kiosk","slug":"step-1-create-the-challenge-on-the-kiosk","depth":2,"children":[]},{"title":"Step 2 - Show the QR code","slug":"step-2-show-the-qr-code","depth":2,"children":[]},{"title":"Step 3 - Complete the challenge on the phone","slug":"step-3-complete-the-challenge-on-the-phone","depth":2,"children":[]},{"title":"Step 4 - Poll the result on the kiosk","slug":"step-4-poll-the-result-on-the-kiosk","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/authsignal-23/eacb9ac8e5ece268/.prettierrc.js"],"subdomain":"authsignal-23","siteName":"Authsignal","title":"Cross-device QR code sign-in - Authsignal","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-18T20:31:30.339Z","originalFileLocation":"advanced-usage/cross-device-qr-sign-in.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=\"light\"}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=\"Sign a user in on a kiosk after the user scans a QR code with a phone.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Authsignal\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/authsignal-23/zo2TXHNNAcuLzclo/_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/authsignal-23/zo2TXHNNAcuLzclo/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/authsignal-23/zo2TXHNNAcuLzclo/_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/authsignal-23/zo2TXHNNAcuLzclo/_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/authsignal-23/zo2TXHNNAcuLzclo/_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/authsignal-23/zo2TXHNNAcuLzclo/_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/authsignal-23/zo2TXHNNAcuLzclo/_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/authsignal-23/zo2TXHNNAcuLzclo/_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/authsignal-23/zo2TXHNNAcuLzclo/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Cross-device QR code sign-in - Authsignal\">\u003cmeta data-mint-head property=\"og:description\" content=\"Sign a user in on a kiosk after the user scans a QR code with a phone.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Authsignal\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.authsignal.com/advanced-usage/cross-device-qr-sign-in\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://authsignal-23.mintlify.site/_mintlify/api/og/v2?division=Documentation\u0026amp;title=Cross-device+QR+code+sign-in\u0026amp;description=Sign+a+user+in+on+a+kiosk+after+the+user+scans+a+QR+code+with+a+phone.\u0026amp;theme=1131a770ddf70665d3e2d408\u0026amp;signature=ad5228ec30cea7b3fe3291b42e44da5659f3bb5aa0a09608a8109873d6ca3ec3\">\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=\"Cross-device QR code sign-in - Authsignal\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Sign a user in on a kiosk after the user scans a QR code with a phone.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://authsignal-23.mintlify.site/_mintlify/api/og/v2?division=Documentation\u0026amp;title=Cross-device+QR+code+sign-in\u0026amp;description=Sign+a+user+in+on+a+kiosk+after+the+user+scans+a+QR+code+with+a+phone.\u0026amp;theme=1131a770ddf70665d3e2d408\u0026amp;signature=ad5228ec30cea7b3fe3291b42e44da5659f3bb5aa0a09608a8109873d6ca3ec3\">\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/authsignal-23/zo2TXHNNAcuLzclo/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Authsignal\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#8b7bff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.authsignal.com/advanced-usage/cross-device-qr-sign-in\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/advanced-usage/cross-device-qr-sign-in.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Authsignal\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Authsignal\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/advanced-usage/cross-device-qr-sign-in.md","siteName":"Authsignal","nav":{"global":null,"tabs":[{"tab":"Documentation","icon":"book-open","groups":[{"group":"Getting started","pages":[{"title":"Welcome to Authsignal Docs","sidebarTitle":"Overview","mode":"center","href":"/getting-started/overview"},{"title":"Set up your Authsignal account","sidebarTitle":"Set up Authsignal","mode":"center","href":"/getting-started/set-up-authsignal"}]},{"group":"Integrations","pages":[{"group":"Auth0","pages":[{"title":"Using Authsignal with Auth0","sidebarTitle":"Getting started","href":"/integrations/auth0"},{"title":"Adding adaptive MFA to Auth0","sidebarTitle":"Adaptive MFA","href":"/integrations/auth0-refine-mfa"},{"title":"Using an internal user ID","sidebarTitle":"Internal user ID","href":"/integrations/auth0-internal-user-id"},{"title":"Auth0 Native Bridge","sidebarTitle":"Native Bridge","href":"/integrations/auth0-native-bridge"}]},{"group":"Amazon Cognito","pages":[{"title":"Integrating Authsignal with Amazon Cognito","sidebarTitle":"Getting started","href":"/integrations/aws-cognito/getting-started"},{"title":"Managing authenticators when integrating Authsignal with Amazon Cognito","sidebarTitle":"Authenticators","href":"/integrations/aws-cognito/authenticators"},{"title":"Using passkeys when integrating Authsignal with Amazon Cognito","sidebarTitle":"Passkeys","href":"/integrations/aws-cognito/passkeys"},{"title":"Adding adaptive MFA to your Cognito login flow","sidebarTitle":"Adaptive MFA","href":"/integrations/aws-cognito/rules"},{"title":"Uber app example","href":"/integrations/aws-cognito/example-app"}]},{"title":"Using Authsignal with WSO2 Identity Platform","sidebarTitle":"WSO2 Identity Platform","href":"/integrations/wso2-identity-platform"},{"group":"Azure AD B2C","pages":[{"title":"Using Authsignal for MFA with Microsoft Azure AD B2C","sidebarTitle":"Getting started","href":"/integrations/azure-ad-b2c/azure-ad-b2c-mfa"},{"title":"Passwordless login with Microsoft Azure AD B2C","sidebarTitle":"Passwordless login","href":"/integrations/azure-ad-b2c/azure-ad-b2c-passwordless"},{"title":"Using Passkeys with Microsoft Azure AD B2C","sidebarTitle":"Passkey autofill","href":"/integrations/azure-ad-b2c/azure-ad-b2c-passkey"},{"title":"Let users manage MFA methods with Microsoft Azure AD B2C","sidebarTitle":"Manage MFA methods","href":"/integrations/azure-ad-b2c/azure-ad-b2c-manage-security"},{"title":"Microsoft Azure AD B2C Custom Policy Snippets","sidebarTitle":"Custom policy snippets","href":"/integrations/azure-ad-b2c/azure-ad-b2c-snippets"}]},{"title":"Entra ID (External Authentication Methods - EAM)","sidebarTitle":"Entra ID","href":"/integrations/entra-id-eam"},{"group":"Duende IdentityServer","pages":[{"title":"Adding MFA to Duende IdentityServer","sidebarTitle":"Getting started","href":"/integrations/identityserver/getting-started"},{"title":"Adding passkeys to Duende IdentityServer","sidebarTitle":"Passkeys","href":"/integrations/identityserver/passkeys"}]},{"group":"Keycloak","pages":[{"title":"Adding MFA to your Keycloak login flow","sidebarTitle":"Getting started","href":"/integrations/keycloak/getting-started"},{"title":"Using Keycloak groups and roles in authentication rules","sidebarTitle":"Groups and roles","href":"/integrations/keycloak/keycloak-groups-roles"},{"title":"Federated Login with MFA","sidebarTitle":"Federated Login with MFA","href":"/integrations/keycloak/keycloak-federated-sign-in"},{"title":"Adding passkey MFA to your Keycloak login flow","sidebarTitle":"Passkey MFA","href":"/integrations/keycloak/keycloak-passkey-signup-with-prebuilt-UI"},{"title":"Adding passkey autofill to your Keycloak login flow","sidebarTitle":"Passkey autofill","href":"/integrations/keycloak/keycloak-passkey-autofill"}]},{"title":"NextAuth.js (now known as Auth.js)","sidebarTitle":"NextAuth","href":"/integrations/nextauth-js"},{"title":"Ruby on Rails","href":"/integrations/ruby-on-rails"},{"group":"ServiceNow","pages":[{"title":"ServiceNow","sidebarTitle":"Overview","href":"/integrations/service-now/overview"},{"title":"Custom mapping","sidebarTitle":"Custom mapping","href":"/integrations/service-now/table-mapping"}]},{"title":"Getting started with Salesforce","sidebarTitle":"Salesforce","href":"/integrations/salesforce/getting-started"}]},{"group":"Authentication methods","pages":[{"group":"Passkeys","pages":[{"title":"Passkeys using the Web SDK","sidebarTitle":"Web SDK","href":"/authentication-methods/passkey/web-sdk"},{"title":"Passkeys using Mobile SDKs","sidebarTitle":"Mobile SDKs","href":"/authentication-methods/passkey/mobile-sdks"},{"title":"Passkeys using Authsignal's pre-built UI","sidebarTitle":"Pre-built UI","href":"/authentication-methods/passkey/prebuilt-ui"},{"title":"Passkeys best practice for the web","sidebarTitle":"Web best practices","href":"/authentication-methods/passkey/best-practices-web"},{"title":"Passkeys best practice for native mobile apps","sidebarTitle":"Mobile best practices","href":"/authentication-methods/passkey/best-practices-mobile"}]},{"group":"App verification","pages":[{"title":"Push verification","href":"/authentication-methods/app-verification/push"},{"title":"Configuring push notifications","href":"/authentication-methods/app-verification/managed-push"},{"title":"QR code verification","href":"/authentication-methods/app-verification/qr-code"},{"title":"In-app verification","href":"/authentication-methods/app-verification/in-app"},{"title":"Attestation","href":"/authentication-methods/app-verification/attestation"},{"title":"Enrollment lifecycle","href":"/authentication-methods/app-verification/enrollment-lifecycle"}]},{"group":"Email","pages":[{"title":"Email OTP","href":"/authentication-methods/email/otp"},{"title":"Email magic link","href":"/authentication-methods/email/magic-link"}]},{"title":"SMS OTP","sidebarTitle":"SMS","href":"/authentication-methods/sms-otp"},{"title":"WhatsApp OTP","sidebarTitle":"WhatsApp","href":"/authentication-methods/whatsapp-otp"},{"title":"Authenticator app (TOTP)","sidebarTitle":"Authenticator app","href":"/authentication-methods/totp"},{"title":"Biometric auth","href":"/authentication-methods/biometrics"}]},{"group":"Flows","tag":"New","pages":[{"title":"Flows overview","sidebarTitle":"Overview","href":"/flows/overview"},{"group":"Use cases","pages":[{"title":"Enroll an authentication method","href":"/flows/use-cases/enroll-authentication-method"},{"title":"Multi-step sign-in","href":"/flows/use-cases/multi-step-sign-in"},{"title":"Risk-based sign-in","href":"/flows/use-cases/risk-based-sign-in"},{"title":"Manage methods","href":"/flows/use-cases/manage-methods"}]},{"group":"Nodes","pages":[{"title":"Verification step","href":"/flows/nodes/verification-step"},{"title":"Enrollment step","href":"/flows/nodes/enrollment-step"},{"title":"Rule","href":"/flows/nodes/rule"},{"title":"Method branch","href":"/flows/nodes/method-branch"},{"title":"Complete and Block","href":"/flows/nodes/complete-and-block"}]}]},{"group":"Implementation options","pages":[{"group":"Pre-built UI","pages":[{"title":"Pre-built UI","sidebarTitle":"Overview","href":"/implementation-options/prebuilt-ui/overview"},{"title":"Presentation modes","href":"/implementation-options/prebuilt-ui/presentation-modes"},{"title":"Enrolling authenticators","href":"/implementation-options/prebuilt-ui/enrolling-authenticators"},{"title":"Removing authenticators","href":"/implementation-options/prebuilt-ui/removing-authenticators"},{"group":"Customization","pages":[{"title":"Branding","href":"/implementation-options/prebuilt-ui/custom-branding"},{"title":"Message overrides","href":"/implementation-options/prebuilt-ui/message-overrides"},{"title":"Localization","href":"/implementation-options/prebuilt-ui/localization"},{"title":"Custom domains","href":"/implementation-options/prebuilt-ui/custom-domains"},{"title":"Contextual messaging","href":"/implementation-options/prebuilt-ui/contextual-messaging"}]},{"title":"Opt-in consent checkbox","sidebarTitle":"Opt-in consent","href":"/implementation-options/prebuilt-ui/opt-in-consent"},{"title":"Passkey uplift prompt","href":"/implementation-options/prebuilt-ui/passkey-uplift-prompt"}]},{"group":"Web SDK","pages":[{"title":"Web SDK","sidebarTitle":"Overview","href":"/implementation-options/web-sdk/overview"}]},{"group":"Mobile SDKs","pages":[{"title":"Mobile SDKs","sidebarTitle":"Overview","href":"/implementation-options/mobile-sdks/overview"}]}]},{"group":"Actions \u0026 rules","pages":[{"group":"Actions","pages":[{"sidebarTitle":"Getting started","title":"Getting started with actions","href":"/actions-rules/actions/getting-started"},{"title":"Implementing MFA","sidebarTitle":"Implementing MFA","href":"/actions-rules/actions/implementing-mfa"},{"title":"Passwordless login","sidebarTitle":"Passwordless login","href":"/actions-rules/actions/passwordless-login"},{"title":"Restricting authenticators for an action","sidebarTitle":"Restricting authenticators","href":"/actions-rules/actions/restricting-authenticators"}]},{"group":"Rules","pages":[{"sidebarTitle":"Getting started","title":"Getting started with rules","href":"/actions-rules/rules/getting-started"},{"title":"Adaptive MFA","sidebarTitle":"Adaptive MFA","href":"/actions-rules/rules/adaptive-mfa"},{"title":"Customizing rules with custom data points","sidebarTitle":"Custom data points","href":"/actions-rules/rules/custom-data-points"},{"title":"Custom lists","sidebarTitle":"Custom lists","href":"/actions-rules/rules/custom-lists"},{"title":"Testing rules","sidebarTitle":"Testing rules","href":"/actions-rules/rules/testing-rules"}]}]},{"group":"Users","pages":[{"title":"User management","href":"/users/user-management"},{"title":"User actions","href":"/users/user-actions"}]},{"group":"Advanced usage","pages":[{"title":"Session management","href":"/advanced-usage/session-management"},{"title":"Custom API domains","href":"/advanced-usage/custom-api-domains"},{"title":"Configuration as code with Terraform","sidebarTitle":"Configuration as code","href":"/advanced-usage/configuration-as-code"},{"title":"Programmatically managing authenticators on behalf of users","sidebarTitle":"Programmatic authenticator management","href":"/advanced-usage/programmatic-authenticator-management"},{"title":"Authenticator binding","href":"/advanced-usage/authenticator-binding"}]}]},{"tab":"SDKs","icon":"rectangle-code","groups":[{"group":"Server","pages":[{"title":"Server SDKs","sidebarTitle":"Overview","href":"/sdks/server/overview"},{"title":"Actions","href":"/sdks/server/actions"},{"title":"Flows","tag":"New","href":"/sdks/server/flows"},{"title":"Users","href":"/sdks/server/users"},{"title":"Authenticators","href":"/sdks/server/authenticators"},{"title":"Challenges","href":"/sdks/server/challenges"},{"title":"Sessions","href":"/sdks/server/sessions"},{"title":"Error handling","href":"/sdks/server/error-handling"},{"title":"Webhooks","href":"/sdks/server/webhooks"}]},{"group":"Client","pages":[{"group":"Web","pages":[{"title":"Web SDK","sidebarTitle":"Setup","href":"/sdks/client/web/setup"},{"title":"Passkeys","href":"/sdks/client/web/passkeys"},{"title":"Security key","href":"/sdks/client/web/security-key"},{"title":"Email OTP","href":"/sdks/client/web/email-otp"},{"title":"Email magic link","href":"/sdks/client/web/email-magic-link"},{"title":"SMS OTP","sidebarTitle":"SMS","href":"/sdks/client/web/sms"},{"title":"WhatsApp OTP","sidebarTitle":"WhatsApp","href":"/sdks/client/web/whatsapp"},{"title":"Authenticator app (TOTP)","href":"/sdks/client/web/totp"},{"title":"Push verification","href":"/sdks/client/web/push-verification"},{"title":"QR code verification","href":"/sdks/client/web/qr-code-verification"},{"title":"Actions","href":"/sdks/client/web/actions"},{"title":"Launching the pre-built UI","href":"/sdks/client/web/prebuilt-ui"},{"title":"Device tracking","href":"/sdks/client/web/device-tracking"},{"title":"Error handling","href":"/sdks/client/web/error-handling"}]},{"group":"Mobile","pages":[{"title":"Mobile SDKs","sidebarTitle":"Setup","href":"/sdks/client/mobile/setup"},{"title":"Passkeys","href":"/sdks/client/mobile/passkeys"},{"title":"Push verification","href":"/sdks/client/mobile/push-verification"},{"title":"QR code verification","href":"/sdks/client/mobile/qr-code-verification"},{"title":"In-app verification","href":"/sdks/client/mobile/in-app-verification"},{"title":"Email OTP","href":"/sdks/client/mobile/email-otp"},{"title":"SMS OTP","sidebarTitle":"SMS","href":"/sdks/client/mobile/sms"},{"title":"WhatsApp OTP","sidebarTitle":"WhatsApp","href":"/sdks/client/mobile/whatsapp"},{"title":"Authenticator app (TOTP)","href":"/sdks/client/mobile/totp"},{"title":"Actions","href":"/sdks/client/mobile/actions"},{"title":"Error handling","href":"/sdks/client/mobile/error-handling"}]},{"title":"React","href":"/sdks/client/react"}]},{"group":"Call Connect","pages":[{"title":"Call Connect SDK","sidebarTitle":"Overview","href":"/sdks/call-connect/overview"}]}]},{"tab":"API reference","icon":"rectangle-terminal","groups":[{"group":"API reference","pages":[{"title":"Authsignal APIs","sidebarTitle":"Overview","href":"/api-reference/overview"}]},{"group":"Server API","pages":[{"title":"Server API - Overview","sidebarTitle":"Overview","href":"/api-reference/server-api/overview"},{"group":"Actions","pages":[{"title":"Track Action","openapi":"server-api POST /users/{userId}/actions/{action}","href":"/api-reference/server-api/track-action"},{"title":"Validate Action","openapi":"server-api POST /validate","href":"/api-reference/server-api/validate-action"},{"title":"Get Action","openapi":"server-api GET /users/{userId}/actions/{action}/{idempotencyKey}","href":"/api-reference/server-api/get-action"},{"title":"Query Actions","openapi":"server-api GET /users/{userId}/actions","href":"/api-reference/server-api/query-actions"},{"title":"Update Action","openapi":"server-api PATCH /users/{userId}/actions/{action}/{idempotencyKey}","href":"/api-reference/server-api/update-action"}]},{"group":"Users","pages":[{"title":"Get User","openapi":"server-api GET /users/{userId}","href":"/api-reference/server-api/get-user"},{"title":"Update User","openapi":"server-api PATCH /users/{userId}","href":"/api-reference/server-api/update-user"},{"title":"Delete User","openapi":"server-api DELETE /users/{userId}","href":"/api-reference/server-api/delete-user"},{"title":"Query Users","openapi":"server-api GET /users","href":"/api-reference/server-api/query-users"}]},{"group":"Authenticators","pages":[{"title":"Enroll Verified Authenticator","openapi":"server-api POST /users/{userId}/authenticators","href":"/api-reference/server-api/enroll-verified-authenticator"},{"title":"Batch Enroll Verified Authenticators","openapi":"server-api POST /users/authenticators","href":"/api-reference/server-api/batch-enroll-verified-authenticators"},{"title":"Get Authenticators","openapi":"server-api GET /users/{userId}/authenticators","href":"/api-reference/server-api/get-authenticators"},{"title":"Delete Authenticator","openapi":"server-api DELETE /users/{userId}/authenticators/{userAuthenticatorId}","href":"/api-reference/server-api/delete-authenticator"},{"title":"Get Authenticator Configurations","openapi":"server-api GET /authenticators","href":"/api-reference/server-api/get-authenticator-configurations"}]},{"group":"Challenges","pages":[{"title":"Initiate Challenge","openapi":"server-api POST /challenge","href":"/api-reference/server-api/initiate-challenge"},{"title":"Verify Challenge","openapi":"server-api POST /verify","href":"/api-reference/server-api/verify-challenge"},{"title":"Claim Challenge","openapi":"server-api POST /claim","href":"/api-reference/server-api/claim-challenge"},{"title":"Get Challenge","openapi":"server-api GET /challenges","href":"/api-reference/server-api/get-challenge"}]},{"group":"Sessions","pages":[{"title":"Create Session","openapi":"server-api POST /sessions","href":"/api-reference/server-api/create-session"},{"title":"Validate Session","openapi":"server-api POST /sessions/validate","href":"/api-reference/server-api/validate-session"},{"title":"Refresh Session","openapi":"server-api POST /sessions/refresh","href":"/api-reference/server-api/refresh-session"},{"title":"Revoke Session","openapi":"server-api POST /sessions/revoke","href":"/api-reference/server-api/revoke-session"},{"title":"Revoke User Sessions","openapi":"server-api POST /sessions/user/revoke","href":"/api-reference/server-api/revoke-user-sessions"}]},{"group":"Devices","pages":[{"title":"Get Devices","openapi":"server-api GET /users/{userId}/devices","href":"/api-reference/server-api/get-devices"},{"title":"Update Device","openapi":"server-api PATCH /users/{userId}/devices/{deviceId}","href":"/api-reference/server-api/update-device"},{"title":"Invalidate Device","openapi":"server-api POST /users/{userId}/devices/{deviceId}/invalidate","href":"/api-reference/server-api/invalidate-device"}]},{"group":"Flows","tag":"New","pages":[{"title":"Start Flow","openapi":"server-api POST /flows","href":"/api-reference/server-api/start-flow"},{"title":"Verify Flow","openapi":"server-api POST /flows/verify","href":"/api-reference/server-api/verify-flow"}]}]},{"group":"Client API","pages":[{"title":"Client API - Overview","sidebarTitle":"Overview","href":"/api-reference/client-api/overview"},{"group":"Authenticators","pages":[{"title":"Get Authenticators","openapi":"client-api GET /user-authenticators","href":"/api-reference/client-api/get-authenticators"},{"title":"Get Authenticator Configurations","openapi":"client-api GET /authenticators","href":"/api-reference/client-api/get-authenticator-configurations"}]},{"group":"SMS","pages":[{"title":"Start SMS Enrollment","openapi":"client-api POST /user-authenticators/sms","href":"/api-reference/client-api/start-sms-enrollment"},{"title":"Start SMS Challenge","openapi":"client-api POST /challenge/sms","href":"/api-reference/client-api/start-sms-challenge"},{"title":"Verify SMS Challenge","openapi":"client-api POST /verify/sms","href":"/api-reference/client-api/verify-sms-challenge"}]},{"group":"WhatsApp","pages":[{"title":"Start WhatsApp Challenge","openapi":"client-api POST /challenge/whatsapp","href":"/api-reference/client-api/start-whatsapp-challenge"},{"title":"Verify WhatsApp Challenge","openapi":"client-api POST /verify/whatsapp","href":"/api-reference/client-api/verify-whatsapp-challenge"}]},{"group":"Email OTP","pages":[{"title":"Start Email OTP Enrollment","openapi":"client-api POST /user-authenticators/email-otp","href":"/api-reference/client-api/start-email-otp-enrollment"},{"title":"Start Email OTP Challenge","openapi":"client-api POST /challenge/email-otp","href":"/api-reference/client-api/start-email-otp-challenge"},{"title":"Verify Email OTP Challenge","openapi":"client-api POST /verify/email-otp","href":"/api-reference/client-api/verify-email-otp-challenge"}]},{"group":"Email magic link","pages":[{"title":"Start Email Magic Link Enrollment","openapi":"client-api POST /user-authenticators/email-magic-link","href":"/api-reference/client-api/start-email-magic-link-enrollment"},{"title":"Start Email Magic Link Challenge","openapi":"client-api POST /challenge/email-magic-link","href":"/api-reference/client-api/start-email-magic-link-challenge"},{"title":"Finalize Email Magic Link Challenge","openapi":"client-api POST /verify/email-magic-link/finalize","href":"/api-reference/client-api/finalize-email-magic-link-challenge"}]},{"group":"Authenticator app","pages":[{"title":"Start Authenticator App Enrollment","openapi":"client-api POST /user-authenticators/totp","href":"/api-reference/client-api/start-authenticator-app-enrollment"},{"title":"Verify Authenticator App Challenge","openapi":"client-api POST /verify/totp","href":"/api-reference/client-api/verify-authenticator-app-challenge"}]},{"group":"Passkey","pages":[{"title":"Overview","href":"/api-reference/client-api/passkey-overview"},{"title":"Generate Passkey Registration Options","openapi":"client-api POST /user-authenticators/passkey/registration-options","href":"/api-reference/client-api/generate-passkey-registration-options"},{"title":"Verify Passkey Registration","openapi":"client-api POST /user-authenticators/passkey","href":"/api-reference/client-api/verify-passkey-registration"},{"title":"Generate Passkey Authentication Options","openapi":"client-api POST /user-authenticators/passkey/authentication-options","href":"/api-reference/client-api/generate-passkey-authentication-options"},{"title":"Verify Passkey Authentication","openapi":"client-api POST /verify/passkey","href":"/api-reference/client-api/verify-passkey-authentication"},{"title":"Initiate Challenge","openapi":"client-api POST /challenge","href":"/api-reference/client-api/initiate-challenge"}]},{"group":"Push","pages":[{"title":"Push API - Overview","sidebarTitle":"Overview","href":"/api-reference/client-api/push-overview"},{"title":"Start Push Challenge","openapi":"client-api POST /challenge/push","href":"/api-reference/client-api/start-push-challenge"},{"title":"Verify Push Challenge","openapi":"client-api POST /verify/push","href":"/api-reference/client-api/verify-push-challenge"}]},{"group":"QR code","pages":[{"title":"Overview","href":"/api-reference/client-api/qr-code-overview"},{"title":"Start QR Code Challenge","openapi":"client-api POST /challenge/qr-code","href":"/api-reference/client-api/start-qr-code-challenge"},{"title":"Verify QR Code Challenge","openapi":"client-api POST /verify/qr-code","href":"/api-reference/client-api/verify-qr-code-challenge"},{"title":"WebSocket","asyncapi":"challenge-websocket.json ws-v1-challenge","href":"/api-reference/client-api/qr-code-websocket"}]},{"group":"iProov (face biometrics)","pages":[{"title":"iProov API - Overview","sidebarTitle":"Overview","href":"/api-reference/client-api/iproov-overview"},{"title":"Start iProov Challenge","openapi":"client-api POST /challenge/iproov","href":"/api-reference/client-api/start-iproov-challenge"},{"title":"Verify iProov Challenge","openapi":"client-api POST /verify/iproov","href":"/api-reference/client-api/verify-iproov-challenge"}]}]},{"group":"Management API","pages":[{"title":"Management API - Overview","sidebarTitle":"Overview","href":"/api-reference/management-api/overview"},{"group":"Tenants","pages":[{"title":"Get Tenant","openapi":"management-api GET /tenant","href":"/api-reference/management-api/get-tenant"},{"title":"Update Tenant","openapi":"management-api PATCH /tenant","href":"/api-reference/management-api/update-tenant"}]},{"group":"Action configurations","pages":[{"title":"Create Action Configuration","openapi":"management-api POST /action-configurations","href":"/api-reference/management-api/create-action-configurations"},{"title":"List Action Configurations","openapi":"management-api GET /action-configurations","href":"/api-reference/management-api/list-action-configurations"},{"title":"Get Action Configuration","openapi":"management-api GET /action-configurations/{action_code}","href":"/api-reference/management-api/get-action-configurations"},{"title":"Update Action Configuration","openapi":"management-api PATCH /action-configurations/{action_code}","href":"/api-reference/management-api/update-action-configurations"},{"title":"Delete Action Configuration","openapi":"management-api DELETE /action-configurations/{action_code}","href":"/api-reference/management-api/delete-action-configurations"}]},{"group":"Authenticator configurations","pages":[{"group":"SMS OTP","pages":[{"title":"Create SMS OTP authenticator configuration","openapi":"management-api POST /authenticator-configurations/sms","href":"/api-reference/management-api/create-sms-otp-authenticator-configuration"},{"title":"Get SMS OTP authenticator configuration","openapi":"management-api GET /authenticator-configurations/sms","href":"/api-reference/management-api/get-sms-otp-authenticator-configuration"},{"title":"Update SMS OTP authenticator configuration","openapi":"management-api PATCH /authenticator-configurations/sms","href":"/api-reference/management-api/update-sms-otp-authenticator-configuration"},{"title":"Delete SMS OTP authenticator configuration","openapi":"management-api DELETE /authenticator-configurations/sms","href":"/api-reference/management-api/delete-sms-otp-authenticator-configuration"}]},{"group":"Email OTP","pages":[{"title":"Create Email OTP authenticator configuration","openapi":"management-api POST /authenticator-configurations/email-otp","href":"/api-reference/management-api/create-email-otp-authenticator-configuration"},{"title":"Get Email OTP authenticator configuration","openapi":"management-api GET /authenticator-configurations/email-otp","href":"/api-reference/management-api/get-email-otp-authenticator-configuration"},{"title":"Update Email OTP authenticator configuration","openapi":"management-api PATCH /authenticator-configurations/email-otp","href":"/api-reference/management-api/update-email-otp-authenticator-configuration"},{"title":"Delete Email OTP authenticator configuration","openapi":"management-api DELETE /authenticator-configurations/email-otp","href":"/api-reference/management-api/delete-email-otp-authenticator-configuration"}]},{"group":"Passkey","pages":[{"title":"Create passkey authenticator configuration","openapi":"management-api POST /authenticator-configurations/passkey","href":"/api-reference/management-api/create-passkey-authenticator-configuration"},{"title":"Get passkey authenticator configuration","openapi":"management-api GET /authenticator-configurations/passkey","href":"/api-reference/management-api/get-passkey-authenticator-configuration"},{"title":"Update passkey authenticator configuration","openapi":"management-api PATCH /authenticator-configurations/passkey","href":"/api-reference/management-api/update-passkey-authenticator-configuration"},{"title":"Delete passkey authenticator configuration","openapi":"management-api DELETE /authenticator-configurations/passkey","href":"/api-reference/management-api/delete-passkey-authenticator-configuration"}]},{"group":"Push","pages":[{"title":"Create push authenticator configuration","openapi":"management-api POST /authenticator-configurations/push","href":"/api-reference/management-api/create-push-authenticator-configuration"},{"title":"Get push authenticator configuration","openapi":"management-api GET /authenticator-configurations/push","href":"/api-reference/management-api/get-push-authenticator-configuration"},{"title":"Update push authenticator configuration","openapi":"management-api PATCH /authenticator-configurations/push","href":"/api-reference/management-api/update-push-authenticator-configuration"},{"title":"Delete push authenticator configuration","openapi":"management-api DELETE /authenticator-configurations/push","href":"/api-reference/management-api/delete-push-authenticator-configuration"}]}]},{"group":"Rules","pages":[{"title":"Create Rule","openapi":"management-api POST /action-configurations/{action_code}/rules","href":"/api-reference/management-api/create-rules"},{"title":"List Rules","openapi":"management-api GET /action-configurations/{action_code}/rules","href":"/api-reference/management-api/list-rules"},{"title":"Get Rule","openapi":"management-api GET /action-configurations/{action_code}/rules/{rule_id}","href":"/api-reference/management-api/get-rules"},{"title":"Update Rule","openapi":"management-api PATCH /action-configurations/{action_code}/rules/{rule_id}","href":"/api-reference/management-api/update-rules"},{"title":"Delete Rule","openapi":"management-api DELETE /action-configurations/{action_code}/rules/{rule_id}","href":"/api-reference/management-api/delete-rules"}]},{"group":"Custom lists","pages":[{"title":"Create Custom List","openapi":"management-api POST /value-lists","href":"/api-reference/management-api/create-custom-lists"},{"title":"List Custom Lists","openapi":"management-api GET /value-lists","href":"/api-reference/management-api/list-custom-lists"},{"title":"Get Custom List","openapi":"management-api GET /value-lists/{value_list_alias}","href":"/api-reference/management-api/get-custom-lists"},{"title":"Update Custom List","openapi":"management-api PATCH /value-lists/{value_list_alias}","href":"/api-reference/management-api/update-custom-lists"},{"title":"Delete Custom List","openapi":"management-api DELETE /value-lists/{value_list_alias}","href":"/api-reference/management-api/delete-custom-lists"}]},{"group":"Custom data points","pages":[{"title":"Create Custom Data Point","openapi":"management-api POST /custom-data-points","href":"/api-reference/management-api/create-custom-data-points"},{"title":"List Custom Data Points","openapi":"management-api GET /custom-data-points","href":"/api-reference/management-api/list-custom-data-points"},{"title":"Get Custom Data Point","openapi":"management-api GET /custom-data-points/{id}","href":"/api-reference/management-api/get-custom-data-points"},{"title":"Update Custom Data Point","openapi":"management-api PATCH /custom-data-points/{id}","href":"/api-reference/management-api/update-custom-data-points"},{"title":"Delete Custom Data Point","openapi":"management-api DELETE /custom-data-points/{id}","href":"/api-reference/management-api/delete-custom-data-points"}]},{"group":"Theme","pages":[{"title":"Get Theme","openapi":"management-api GET /theme","href":"/api-reference/management-api/get-theme"},{"title":"Update Theme","openapi":"management-api PATCH /theme","href":"/api-reference/management-api/update-theme"}]},{"group":"Message Overrides","pages":[{"title":"Get Message Overrides","openapi":"management-api GET /message-overrides","href":"/api-reference/management-api/get-message-overrides"},{"title":"Update Message Overrides","openapi":"management-api PATCH /message-overrides","href":"/api-reference/management-api/update-message-overrides"},{"title":"Get Message Overrides Catalog","openapi":"management-api GET /message-overrides/catalog","href":"/api-reference/management-api/get-message-overrides-catalog"}]}]},{"group":"Call Connect API","pages":[{"title":"Call Connect API - Overview","sidebarTitle":"Overview","href":"/api-reference/call-connect-api/overview"},{"group":"Caller authentication","pages":[{"title":"Start Call Connect Session","openapi":"call-connect-api POST /call/start","href":"/api-reference/call-connect-api/start-call-connect"},{"title":"Finish Call Connect Session","openapi":"call-connect-api POST /call/finish","href":"/api-reference/call-connect-api/finish-call-connect"}]}]},{"group":"Terminal API","pages":[{"title":"Terminal API - Overview","sidebarTitle":"Overview","href":"/api-reference/terminal-api/overview"},{"group":"Payment sessions","pages":[{"title":"Create Payment Session","openapi":"terminal-api POST /terminal/payment-session","href":"/api-reference/terminal-api/create-payment-session"},{"title":"Get Payment Session","openapi":"terminal-api GET /terminal/payment-session/{challengeId}","href":"/api-reference/terminal-api/get-payment-session"}]},{"group":"In-person verifications","pages":[{"title":"Create In-person Verification","openapi":"terminal-api POST /terminal/proximity-verifications","href":"/api-reference/terminal-api/create-in-person-verification"},{"title":"Get In-person Verification","openapi":"terminal-api GET /terminal/proximity-verifications/{verificationId}","href":"/api-reference/terminal-api/get-in-person-verification"},{"title":"Cancel In-person Verification","openapi":"terminal-api POST /terminal/proximity-verifications/{verificationId}/cancel","href":"/api-reference/terminal-api/cancel-in-person-verification"}]}]}]},{"tab":"Webhooks","icon":"webhook","groups":[{"group":"Webhooks","pages":[{"title":"Webhooks","sidebarTitle":"Introduction","href":"/advanced-usage/webhooks/introduction"},{"title":"Event types","sidebarTitle":"Event types","href":"/advanced-usage/webhooks/event-types"},{"title":"Delivery and retries","sidebarTitle":"Delivery and retries","href":"/advanced-usage/webhooks/delivery"},{"title":"Verify webhook requests","sidebarTitle":"Verify webhook requests","href":"/advanced-usage/webhooks/verify-requests"}]},{"group":"Authenticator challenge events","pages":[{"title":"email.created","sidebarTitle":"email.created","icon":"https://mintlify.s3.us-west-1.amazonaws.com/authsignal-23/icons/green-dot.svg","href":"/advanced-usage/webhooks/email-created"},{"title":"sms.created","sidebarTitle":"sms.created","icon":"https://mintlify.s3.us-west-1.amazonaws.com/authsignal-23/icons/green-dot.svg","href":"/advanced-usage/webhooks/sms-created"},{"title":"push.created","sidebarTitle":"push.created","icon":"https://mintlify.s3.us-west-1.amazonaws.com/authsignal-23/icons/green-dot.svg","href":"/advanced-usage/webhooks/push-created"}]},{"group":"Authenticator events","pages":[{"title":"Authenticator events","sidebarTitle":"Overview","href":"/advanced-usage/webhooks/authenticator-events"},{"title":"authenticator.created","sidebarTitle":"authenticator.created","icon":"https://mintlify.s3.us-west-1.amazonaws.com/authsignal-23/icons/green-dot.svg","href":"/advanced-usage/webhooks/authenticator-created"},{"title":"authenticator.updated","sidebarTitle":"authenticator.updated","icon":"https://mintlify.s3.us-west-1.amazonaws.com/authsignal-23/icons/amber-dot.svg","href":"/advanced-usage/webhooks/authenticator-updated"},{"title":"authenticator.deleted","sidebarTitle":"authenticator.deleted","icon":"https://mintlify.s3.us-west-1.amazonaws.com/authsignal-23/icons/red-dot.svg","href":"/advanced-usage/webhooks/authenticator-deleted"},{"title":"authenticator.expired","sidebarTitle":"authenticator.expired","icon":"https://mintlify.s3.us-west-1.amazonaws.com/authsignal-23/icons/red-dot.svg","href":"/advanced-usage/webhooks/authenticator-expired"}]},{"group":"Action verification events","pages":[{"title":"action.verify","sidebarTitle":"action.verify","icon":"https://mintlify.s3.us-west-1.amazonaws.com/authsignal-23/icons/purple-dot.svg","href":"/advanced-usage/webhooks/action-verify"}]},{"group":"Log events","pages":[{"title":"action.log_created","sidebarTitle":"action.log_created","icon":"https://mintlify.s3.us-west-1.amazonaws.com/authsignal-23/icons/green-dot.svg","href":"/advanced-usage/webhooks/action-log-created"},{"title":"challenge.log_created","sidebarTitle":"challenge.log_created","icon":"https://mintlify.s3.us-west-1.amazonaws.com/authsignal-23/icons/green-dot.svg","href":"/advanced-usage/webhooks/challenge-log-created"}]}]},{"tab":"Knowledge base","icon":"books","groups":[{"group":"Knowledge base","pages":[{"title":"Knowledge base","sidebarTitle":"Overview","mode":"center","href":"/knowledge-base/overview"}]},{"group":"Authsignal Portal","pages":[{"title":"Roles and tenant access","href":"/knowledge-base/administration/roles"},{"title":"Viewing user activity","href":"/knowledge-base/administration/view-user-activity"},{"title":"Resetting a user's authenticators","href":"/knowledge-base/administration/resetting-user-authenticators"},{"title":"Single sign-on (SSO)","sidebarTitle":"Single sign-on","href":"/knowledge-base/administration/single-sign-on"}]},{"group":"Operations","pages":[{"title":"Rate limits","href":"/knowledge-base/operations/rate-limits"},{"title":"Risk signals","href":"/knowledge-base/operations/risk-signals"}]},{"group":"Testing","pages":[{"title":"API testing using Postman","href":"/knowledge-base/testing/postman"},{"title":"API testing passkeys","href":"/knowledge-base/testing/api-testing-passkeys"},{"title":"E2E testing passkeys","href":"/knowledge-base/testing/e2e-passkeys"},{"title":"Bypass challenges using rules","href":"/knowledge-base/testing/bypass-challenges-with-rules"},{"title":"Use static OTP codes to complete challenges","sidebarTitle":"Static OTP codes","href":"/knowledge-base/testing/static-otp-codes"}]},{"group":"Terraform","pages":[{"title":"Managing Authsignal across environments with Terraform","sidebarTitle":"Overview","href":"/knowledge-base/terraform/overview"},{"title":"How the repository is set up","sidebarTitle":"Repository setup","href":"/knowledge-base/terraform/repository-setup"},{"title":"Generate code from the dev tenant","sidebarTitle":"Generate code from dev","href":"/knowledge-base/terraform/generate-code"},{"title":"Build the module from the generated code","sidebarTitle":"Build the module","href":"/knowledge-base/terraform/build-module"},{"title":"Import the dev tenant into Terraform","sidebarTitle":"Import the dev tenant","href":"/knowledge-base/terraform/import-dev"},{"title":"Add a new environment","sidebarTitle":"Add an environment","href":"/knowledge-base/terraform/add-environment"},{"title":"Promote a change from dev","sidebarTitle":"Promote a change","href":"/knowledge-base/terraform/promote-change"},{"title":"Run Terraform in HCP Terraform","sidebarTitle":"HCP Terraform","href":"/knowledge-base/terraform/hcp-terraform"}]},{"group":"Call Connect","pages":[{"title":"Verifying customers with ServiceNow","href":"/knowledge-base/call-connect/service-now"}]},{"group":"Video walkthroughs","pages":[{"title":"Adaptive MFA video walk-through","sidebarTitle":"Adaptive MFA","href":"/knowledge-base/video-walkthroughs/adaptive-mfa"}]},{"group":"Help","pages":[{"title":"FAQs","href":"/knowledge-base/faqs"}]}]},{"tab":"Changelog","icon":"clock-rotate-left","groups":[{"group":"Changelog","pages":[{"title":"Product updates","mode":"center","href":"/changelog/product-updates"},{"title":"SDK \u0026 API updates","mode":"center","href":"/changelog/sdk-and-api-updates"}]}]}]},"basePath":"","title":"Cross-device QR code sign-in - Authsignal","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-DMn5ZJp6.js","DynamicMarkdown-5yMTCLas.js","zoom-image-lightbox-BUkqX3JF.js","lightbox-handle-r17bVUz3.js"]}