laravel-jwt maintained by bitmax
About Package
Simple JWT Auth that provide two routes /login and /me
Configuration
Add a guard named api with a driver api to config/auth.php.
Example:
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
],
"api" => [
'driver' => 'api'
]
...
],
Add the middleare auth:api for routes you want to protect
Example:
Route::middleware('auth:api')->get('/user', function (Request $request) {
return $request->user();
});
Code of Conduct
In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.
License
The Laravel framework is open-sourced software licensed under the MIT license.