Schero D.

Magic Link

Magic Link is a Strapi 5 plugin for passwordless login. Your users type their e-mail address, click the link in their inbox and get a normal Users & Permissions session, the same kind /api/auth/local creates. When a link is not enough, you add a second factor: an e-mailed one-time code or an authenticator app (TOTP) with backup codes.

Install

npm install strapi-plugin-magic-link-v5
Magic Link icon
Version
v7.1.1
Strapi
^5.24.0
Node.js
>=22.0.0 <=26.x.x
License
MIT, free
Released

Version, release date and ranges are read from the npm registry at build time.

Magic Link tokens page in the Strapi admin with token counts and a list of sent links
JWT sessions page listing active sign-ins with revoke actions
Magic Link settings for second factors: e-mail code and authenticator app
Magic Link tokens page in dark mode
IP bans page of Magic Link

What it does

Use it when

The end users of your app sign in through Users & Permissions and you want e-mail login without passwords, with or without MFA.

Not for

It does not replace the Strapi admin login. It is e-mail only: WhatsApp and SMS delivery were removed in 6.0.0.

What it needs

Users & Permissions, a configured Strapi e-mail provider (or Magic Mail) and two secrets of 32 or more characters: MAGIC_LINK_ENCRYPTION_KEY and MAGIC_LINK_OTP_PEPPER.

Questions

Does Magic Link replace the Strapi admin login?

No. It signs in the users of your app (Users & Permissions accounts). The Strapi admin login stays as it is.

Do I need a frontend?

For a good experience, yes: a form that calls send-link and a landing page that posts the token to /login. Any framework works, for example Next.js, Nuxt or SvelteKit.

Does it work with GraphQL?

The login routes are REST. The JWT they return works for GraphQL like any Users & Permissions JWT, and revoked tokens are rejected there too.

Can I run several Strapi instances?

Yes. All state lives in the database and is shared safely; the behaviour is tested with 8 processes on SQLite and PostgreSQL 16.

Full documentation

Other plugins