Download the PHP package lukepolo/laravel-passport-one-time-token without Composer
On this page you can find all versions of the php package lukepolo/laravel-passport-one-time-token. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lukepolo/laravel-passport-one-time-token
More information about lukepolo/laravel-passport-one-time-token
Files in lukepolo/laravel-passport-one-time-token
Package laravel-passport-one-time-token
Short Description Gives the ability to create one time tokens easily with Laravel Passport
License MIT
Homepage https://github.com/lukepolo/laravel-passport-one-time-token
Informations about the package laravel-passport-one-time-token
Laravel One Time Password
Quickly allows you to create one time personal access tokens, that are revoked after one use.
Laravel compatibility
Laravel | Laravel One Time Token |
---|---|
5.4+ | ^0.1.0 |
Installation
Install the package through Composer. Edit your project's composer.json
file by adding:
{
"require": {
........,
"lukepolo/laravel-passport-one-time-token": "^0.0.3"
}
}
If using 5.4 you will need to include the service providers / facade in app/config/app.php
:
Copy over the configuration file by running the command:
Requirements
Out of the box we provided some defaults to get you started.
- The user must be logged in
- Middleware
- The default middleware assumes you are consuming this with
auth:api
. - You can change this in your config
- The default middleware assumes you are consuming this with
- Created at least one Personal Token client.
Usage
Make a post to
This will send back your token, which you can use to make another request. Once used it will be revoked.
License
MIT