Fix JWT handling for API access when logging in
This commit is contained in:
parent
aa61afb58f
commit
a1444b047e
7 changed files with 143 additions and 68 deletions
17
config/jwt.php
Normal file
17
config/jwt.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| JWT Signing Key
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This key is used for the verification of JSON Web Tokens in flight and
|
||||
| should be different than the application encryption key. This key should
|
||||
| be kept private at all times.
|
||||
|
|
||||
*/
|
||||
'key' => env('APP_JWT_KEY'),
|
||||
|
||||
'signer' => \Lcobucci\JWT\Signer\Hmac\Sha256::class,
|
||||
];
|
Loading…
Add table
Add a link
Reference in a new issue