Gives the ability to create one time tokens easily with Laravel Passport. Based on lukepolo/laravel-passport-one-time-token package, just updating passport version.
the-msy/laravel-passport-one-time-token is a Laravel package for gives the ability to create one time tokens easily with laravel passport. based on lukepolo/laravel-passport-one-time-token package, just updating passport version..
It currently has 0 GitHub stars and 87 downloads on Packagist (latest version 0.0.4).
Install it with composer require the-msy/laravel-passport-one-time-token.
Discover more Laravel packages by the-msy
or browse all Laravel packages to compare alternatives.
Last updated
Quickly allows you to create one time personal access tokens, that are revoked after one use.
Laravel | Laravel One Time Token :---------|:---------- 5.4+ | dev-master
Install the package through Composer. Edit your project's composer.json file by adding:
{
"require": {
........,
"lukepolo/laravel-passport-one-time-token": "dev-master"
}
}
If using 5.4 you will need to include the service providers / facade in app/config/app.php:
LukePOLO\LaravelPassportOneTimeToken\ServiceProvider::class,
Copy over the configuration file by running the command:
php artisan vendor:publish --provider='LukePOLO\LaravelPassportOneTimeToken\ServiceProvider'
Out of the box we provided some defaults to get you started.
auth:api.Make a post to
oauth/one-time/create
This will send back your token , which you can use to make another request. Once used it will be revoked.
MIT