shortcodes / jwt
This is JWT Guard for Laravel Application
Installs: 339
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
Type:package
Requires
- firebase/php-jwt: ^5.0
README
This is JWT Guard for Laravel Application
.env
To use this package you have to put those variables to your .env file
JWT_SECRET=
JWT_TTL=60
JWT_REFRESH_TTL=20160
JWT_ALGO=HS256
auth.php
You have to switch api driver to jwt
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
],
'api' => [
'driver' => 'jwt',
'provider' => 'users',
],
],