Overview of one-time-passwords package
mainThe spatie/laravel-one-time-passwords package allows you to securely create and consume one-time passwords (OTPs) within a Laravel application. It is designed to facilitate OTP-based login flows and includes a built-in Livewire component for quick UI integration.
To ensure security, the package implements the following defaults:
- Short Expiration: OTPs expire quickly (2 minutes by default).
- Context Validation: OTPs can only be consumed if the user agent and IP address match the ones used during generation.
- Rate Limiting: Login attempts are time-boxed to prevent brute-force attacks.