File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 16
16
"ext-json" : " *" ,
17
17
"google/protobuf" : " ~3.15.8" ,
18
18
"grpc/grpc" : " ^1.35" ,
19
- "lcobucci/jwt" : " ^3.4" ,
19
+ "lcobucci/jwt" : " ^3.4.6 || ^4.1.5 " ,
20
20
"phpseclib/phpseclib" : " ^2.0|^3.0" ,
21
21
"psr/log" : " ~1.0"
22
22
},
Original file line number Diff line number Diff line change @@ -231,16 +231,7 @@ protected function getJwtToken()
231
231
{
232
232
$ now = new DateTimeImmutable ;
233
233
234
- $ key = '' ;
235
-
236
- if ($ this ->config ('private_key ' ))
237
- {
238
- $ key = JWT \Signer \Key \InMemory::plainText ($ this ->config ('private_key ' ));
239
- }
240
- else if ($ this ->config ('private_key_file ' ))
241
- {
242
- $ key = JWT \Signer \Key \LocalFileReference::file ($ this ->config ('private_key_file ' ));
243
- }
234
+ $ key = JWT \Signer \Key \InMemory::plainText ($ this ->config ('private_key ' ));
244
235
245
236
$ config = JWT \Configuration::forSymmetricSigner (
246
237
new Sha256 ,
You can’t perform that action at this time.
0 commit comments