Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/evans-kim/jwt-guard
JWT Guard (Laravel 5.4 Auth Guard custom driver for tymon/jwt-auth
https://github.com/evans-kim/jwt-guard
auth-guards custom-driver laravel-authentication laravel54 php56
Last synced: about 2 months ago
JSON representation
JWT Guard (Laravel 5.4 Auth Guard custom driver for tymon/jwt-auth
- Host: GitHub
- URL: https://github.com/evans-kim/jwt-guard
- Owner: evans-kim
- License: mit
- Created: 2018-11-29T03:55:16.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-27T06:23:06.000Z (over 5 years ago)
- Last Synced: 2024-10-11T10:42:03.530Z (3 months ago)
- Topics: auth-guards, custom-driver, laravel-authentication, laravel54, php56
- Language: PHP
- Homepage:
- Size: 10.7 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# JWT Guard
>tymon/jwt-auth:0.5* 패키지에 라라벨 커스텀 AuthGuard 드라이버를 추가하는 포크 입니다.
라라벨 5.4 미만에서 'jwt' 드라이버를 설정하면 auth() 헬퍼 함수 등을 사용할 수 있습니다.>This is a fork of tymon/jwt-auth:0.5* package to support AuthGuard custom driver.
Below Laravel 5.4, It help you using `auth('api')` helper or `middleware('auth:api')`
before use this please watch Laravel Document then check how to change auth driver.### Install
```shell script
composer require tymon/jwt-auth korodo/jwt-guard:dev-master
```
### Register Service Providersconfig/app.php
```php
'providers'=>[
...
App\Providers\RouteServiceProvider::class,
\Tymon\JWTAuth\Providers\JWTAuthServiceProvider::class,
\Korodo\JWTGuard\JWTGuardServiceProvider::class,
...
]
```
config/auth.php```php
'guards' => [
...
'api' => [
'driver' => 'jwt', // it was token
'provider' => 'users',
],
...
],
``````shell script
php artisan jwt:generate
```## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.