PHPackages                             codewiser/otp-authenticate - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. codewiser/otp-authenticate

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

codewiser/otp-authenticate
==========================

One time passwords for Laravel

v1.0.4(7mo ago)010MITPHPPHP ^8.2

Since Sep 25Pushed 7mo agoCompare

[ Source](https://github.com/C0deWiser/otp-authenticate)[ Packagist](https://packagist.org/packages/codewiser/otp-authenticate)[ RSS](/packages/codewiser-otp-authenticate/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

One time passwords for Laravel
==============================

[](#one-time-passwords-for-laravel)

In a very simple case, our Laravel applications authenticates users by login and password. Sometimes we force our applications to verify user's emails.

This package requires users to periodically re-verify emails using one time passwords.

The authentication process will be:

- user signs-in with login and password
- application sends an email with one time password
- user affirms authentication providing this password

[![otp](otp.png)](otp.png)

Installation
------------

[](#installation)

Install service.

```
composer require codewiser/otp-authenticate

php artisan otp:install
```

### Service Provider

[](#service-provider)

Configure the frequency of email re-verification and rate limiters in a service provider class.

*Providers/OtpServiceProvider.php*

```
