> For the complete documentation index, see [llms.txt](https://docs.mdintegrations.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mdintegrations.com/changelog/2026/magic-link-authentication-for-patient-workflows.md).

# Magic-Link Authentication for Patient Workflows

*Released September 18, 2026 (UAT available September 18, 2026)*

> **Breaking change:** API endpoints will no longer return 2FA codes for white-label partners. If your integration reads 2FA codes from the API, update it before this change reaches production.

This release updates how patients access intake forms and white-label workflows, to improve security and simplify login.

## \[What's Changing]

* White-label partners transition from two-factor authentication to magic-link-based access; API endpoints will no longer return 2FA codes
* All links sent to patients or returned via the API use opaque, non-identifiable tokens — no voucher IDs, patient IDs, or emails appear in URLs
* Embedded workflows require no changes — your existing implementation continues to work

## \[Why]

Current URLs expose identifiable information and can be reused without verification. The new model prevents link leakage, protects patient data, and ensures links can't be decoded or reused across devices.

## \[How the New Flow Works]

1. Your system or MDI's system generates a single-use magic link containing only a secure hash
2. When the patient opens the link, the request is verified (browser checks, usage signals, headers)
3. If valid, the token is invalidated, a session cookie is set, and the patient is redirected to the correct voucher/workflow
4. If the link is reused without a valid session, the patient sees an error and can request a new link
5. If a patient tries the same link on a different device, they're prompted to request a new token
6. Any newly requested link always leads to the same voucher/workflow as the original, so the destination stays consistent


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.mdintegrations.com/changelog/2026/magic-link-authentication-for-patient-workflows.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
