{"repo":"spatie/laravel-one-time-passwords","free":true,"listed":false,"github":"https://github.com/spatie/laravel-one-time-passwords","clone":"git clone https://github.com/spatie/laravel-one-time-passwords.git","description":"Use one time passwords (OTP) to authenticate in your Laravel app","language":"PHP","stars":182,"topics":["authentication","laravel","otp","passwords"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"One-time passwords (OTP) for Laravel apps Using this package, you can securely create and consume one-time passwords. By default, a one-time password is a number of six digits long that will be sent via a mail notification. This notification can be extended so it can be sent via other channels, like SMS. The package ships with a Livewire component to allow users to log in using a one-time password. Enhanced UI with Flux For an improved OTP input experience, you can optionally install Flux. When Flux is detected, the package will automatically use the Flux OTP input component instead of a standard text input. To install Flux, follow the instructions on their website: https://fluxui.dev Build your own UI Alternatively, you can build the one-time password login flow you want with the easy-to-use methods the package provides. Here's how you would send a one-time password to a user This is what the notification mail looks like: Here's how you would try to log in a user using a one-time password. The package tries to make one-time passwords as secure as can be by: - letting them expire in a short timeframe (2 minutes by default) - only allowing to consume a one-time password on the same IP and user agent as it was generated All behavior is implemented in action classes that can be modified to your liking. Documentation All documentation is available on our documentation site. Support us We invest a lot of resources into creating best in class open source packages. You can support u","default_branch":null,"files":null,"tree":[],"storefront":"/r/spatie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spatie/laravel-one-time-passwords/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}