We shipped both magic-link login and QR cross-device sign-in in the same slice. Both look like very different products on the marketing site, but inside the codebase they share more than they diverge.
Same approval surface. Both flows mint a short-lived session token, then route the user through a single signed approval page. The page knows whether it is consuming a magic link (HMAC-signed email link) or a QR code (HMAC-signed session token created from a desktop request) and renders accordingly. The post-approval redirect, audit log entry, and consent-screen integration are identical.
What surprised us. The trickiest part was the abandoned-session UX. Both flows can be started on one device and forgotten. We added a 'see active sign-in attempts' panel inside the profile dashboard so users can revoke anything pending; the same panel works for both magic links and QR codes because the underlying session model is shared.
More detail in the source: see app/Http/Controllers/Auth/MagicLink*Controller.php and app/Http/Controllers/Auth/LoginQrController.php.