UUID Use Case

UUID Magic Link

A magic link is a one-click login. The embedded UUID token is a bearer credential, so it must be single-use and expiring.

PasswordlessSingle-usev4

Generated locally with the Web Crypto API — nothing leaves your browser.

What Is UUID Magic Link?

How to generate

  1. Generate a v4 UUID on click.
  2. Email a /login/ link; store hashed + expiring.
  3. On visit, verify, start a session, delete the token.

Use Cases

Code Examples

JavaScript
const id = crypto.randomUUID();
Python
import uuid
id = uuid.uuid4()

Frequently Asked Questions

Magic link vs password?
Magic links avoid password storage but depend on email security; offer both.
How long should it live?
Minutes — long enough to check email, short enough to limit interception.

Related tools