Demo: Laravel Passwordless Login

Laravel

Using a signed route, I can log you into this site without you needing a password.


                            echo App\User::find(2)->createPasswordlessLoginLink();
                        

https://edgrosvenor.me/magic-login/2?expires=1729629905&user_type=app-user&signature=eaffe3ab38e382fa54d5ee7eb90bff9abb177cfd68033bf06e0e84b8fa1468c7

This package provides a trait that makes it easy to configure things like the expiration time for the link, whether it is single use or can be used multiple times, and where the user should redirect after logging in. It works with custom authentication middleware so you can use it with multiple user types side by side.

Did you find a mistake? Have something to add? This demo is on GitHub. Send me a PR!

Random

© 2024 All rights reserved.

;