lukevear / jwt-auth-guard
A Laravel 5.3 compatible auth guard for tymondesigns/jwt-auth
Installs: 10 766
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 1
Forks: 3
Open Issues: 0
Requires
- php: >=7.0
- illuminate/support: >=5.3.0
- tymon/jwt-auth: 0.5.*
This package is not auto-updated.
Last update: 2020-08-21 20:39:05 UTC
README
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!