New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

lukepolo/laravel-passport-one-time-token

Gives the ability to create one time tokens easily with Laravel Passport
193 4
Install
composer require lukepolo/laravel-passport-one-time-token
Latest Version:0.1.0
PHP:^7.1.3
Laravel:5
License:MIT
Last Updated:Dec 4, 2019
Links: GitHub  ·  Packagist
Maintainer: lukepolo

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:

    LukePOLO\LaravelPassportOneTimeToken\ServiceProvider::class,

Copy over the configuration file by running the command:

    php artisan vendor:publish --provider='LukePOLO\LaravelPassportOneTimeToken\ServiceProvider'

Requirements

Out of the box we provided some defaults to get you started.

  1. The user must be logged in
  2. Middleware
    • The default middleware assumes you are consuming this with auth:api.
    • You can change this in your config
  3. Created at least one Personal Token client.

Usage

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.

License

MIT

Related Packages

laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

106,326,770 3,421
smartins/passport-multiauth

Add support to multi-auth on Laravel Passport

332,499 283
chiefgroup/laravel-guzzle

Chiefgroup Laravel Interface API Use

5,072 2
larva/laravel-passport-socialite

This is a Laravel passport grant for social.

2,808 0
moova/laravel-passport-socialite

This is a Laravel passport grant for social.

2,400 0

Version History

Version Released PHP Laravel License
0.1.0 ^7.1.3 ^5.4.0 MIT
0.0.4 >=5.6 MIT
0.0.3 >=5.6 MIT
0.0.2 >=5.6 MIT
0.0.1 >=5.6 MIT