liveBook · Manning

Magic link

As explained in Architecting Accessibility

A magic link is a time-limited link sent to a user's email account that enables sign-in without a password.

A magic link lets someone sign in without a password: they request a time-limited link sent to their email and follow it to authenticate. It can offer an alternative to cognitive function tests and reduce the effort of transcribing codes. section 7.3.2 section 7.4.2

After the user follows the link, the backend validates it and authenticates the user, then creates a session. Links typically expire after a few minutes, so allow enough time to open email and find the message. section 7.3.2

Account for usability and security when offering magic links:

  • Avoid unnecessarily short expiry windows; time pressure can lead to mistakes. section 7.3.2 section 7.4.2
  • Consider that a link can be forwarded or opened on a different device from the one that requested it. Higher-assurance uses may need more secure options or additional backend checks. section 7.4.2
  • Evaluate the method’s accessibility and security needs individually, and provide support mechanisms and alternatives. section 7.4.2

How Architecting Accessibility covers it

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.
How it connects
Connects email authentication with passwords, cognitive function tests, passkeys, federated identities, and single sign-on.

Also explained in

Compare how 2 books explain magic link →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Architecting Accessibility. The section links point to the parts of the book it draws on.