lukevear/jwt-auth-guard

This package is abandoned and no longer maintained. No replacement package was suggested.

A Laravel 5.3 compatible auth guard for tymondesigns/jwt-auth

1.0.1 2016-11-16 22:41 UTC

This package is not auto-updated.

Last update: 2020-08-21 20:39:05 UTC


README

Total Downloads Latest Stable Version Latest Unstable Version License

This package provides an authentication guard for the tymon/jwt-auth package (< 1.0.0) when using Laravel or Lumen 5.3.

NOTE: The tymon/jwt-auth package as of 1.0.* supplies its own guard.

Installation

Before you can use this package, you must configure the jwt-auth package according to the project WIKI.

Once you have installed and configured the jtw-auth package, add lukevear/jwt-auth-guard to your composer.json:

"lukevear/jwt-auth-guard": "1.*"

Then you can run composer update to grab the latest and greatest version.

Alternatively, you may install this package directly from the command line:

composer require "lukevear/jwt-auth-guard:1.*"

You'll need need to activate the service provider, which you can do in config/app.php:

'providers' => [
    ...
    LukeVear\JWTAuthGuard\JWTAuthGuardServiceProvider::class,
]

Finally, configure the authentication guard in config/auth.php:

'guards' => [
    ...
    
    'api' => [
        'driver'   => 'jwt-auth',
        ...
    ],
],

What's next?

Enjoy JWT based token authentication in your Laravel/Lumen 5.3 application!