Commit

a19548c

✉️ Passwordless authentication sounds simple: enter an email address, receive a link, click it, and you're signed in. The implementation gets more interesting when email scanners, concurrent requests, and two-factor authentication enter the picture. Email Magic Link for Laravel provides passwordless authentication using magic links and one-time codes, either standalone or alongside Laravel Fortify. A few details worth mentioning: 🔗 Scanner-safe magic links Email security products and browsers routinely open links before users do. This package uses an inert, signed GET request to display a confirmation page. The token is consumed only after an explicit POST request. 🔐 Fortify two-factor authentication If a user has 2FA enabled, the magic link doesn't bypass it. Authentication continues through Fortify's native two-factor challenge. ⏳ Single-use and controlled multi-use links Tokens are consumed atomically, including links configured for a limited number of uses. Concurrent requests cannot exceed the redemption limit. 📨 Resend protection Escalating cooldowns and hourly limits prevent repeated requests from flooding an inbox. Additional features include: • Email invitations with single-use acceptance • Passphrase-protected links • Multiple authentication guards • JSON responses for SPAs and mobile apps • Customizable Blade screens and email templates • Configurable account eligibility checks • Hashed tokens and responses that don't disclose account existence The package also supports issuing credentials without sending them, so applications can handle delivery themselves. Passwordless should remove the password, not the security controls around authentication. Laravel 13+, PHP 8.4+, MIT licensed. https://github.com/pushery/email-magic-link-for-laravel

commit a19548c