Magic link
Magic link authentication verifies a user's identity through a limited-use link sent to a previously associated communication channel, enabling sign-in without a memorized password.
Software Security for Developers
Magic link authentication verifies a user's identity through a login link delivered to a previously associated email address instead of a memorized password.
- How it is used
- Replaces password entry with email-delivered, one-time authentication for convenient passwordless login.
- How deep it goes
- Explains the request, token, email, validation, session, enumeration, replay, phishing, and storage safeguards without protocol internals.
- Examples
- Uses Alice’s ACME login, signed-token claims, a sample authentication URL, best-practice guidance, and review questions.
- What you can do after
- Operate/configure a safer magic-link flow with generic responses, signed short-lived tokens, storage, single use, and request limits.
Read how Software Security for Developers explains magic link →
Architecting Accessibility
A magic link is a time-limited link sent to a user's email account that enables sign-in without a password.
- How it is used
- Offers password-free email sign-in as an alternative to cognitive function tests and transcription-heavy authentication.
- How deep it goes
- Defines the request-to-session flow and notes expiry and risks, but does not detail implementation.
- Examples
- Uses a time-limited email link that a user follows before backend validation and session creation.
- What you can do after
- Apply the sign-in flow by validating the link, authenticating the user, and creating a session.
What to know first
- authenticationAuthentication is the process of verifying the claimed identity of a user, service, device, or other entity.
- phishingPhishing is a social-engineering attack that uses deceptive communications or content to impersonate a trusted source and induce disclosure of information or another unsafe action.
Related concepts
- passwordless authenticationkind of · Passwordless authentication is an authentication method that verifies a user’s identity without requiring a conventional password.
- databaseuses · A database is an organized persistent data store, typically managed by software, that supports storing, retrieving, and modifying data.
- transcriptionaddresses · Transcription is the conversion of spoken language into a written representation.
- tokenuses · A token is a discrete unit of text, such as a word, subword, punctuation mark, or symbol, produced by tokenization and processed by a language model.
- one-time codecontrasts with · A one-time code is a temporary authentication credential intended to be accepted for a single use or during a limited validity period.
- JSON Web Tokenuses · A JSON Web Token is a compact, URL-safe format for representing claims as a JSON object that can be digitally signed, integrity-protected, or encrypted.
Questions about magic link
What is magic link?
Magic link authentication verifies a user's identity through a limited-use link sent to a previously associated communication channel, enabling sign-in without a memorized password.
Which Manning books explain magic link?
Software Security for Developers and Architecting Accessibility.
What should I know before learning magic link?
Manning books that teach magic link usually introduce authentication, phishing and SMS first.
What is the difference between magic link and one-time code?
Magic link authentication verifies a user's identity through a limited-use link sent to a previously associated communication channel, enabling sign-in without a memorized password. A one-time code is a temporary authentication credential intended to be accepted for a single use or during a limited validity period.
What is magic link a kind of?
Magic link is a kind of passwordless authentication. Passwordless authentication is an authentication method that verifies a user’s identity without requiring a conventional password.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

