File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -61,11 +61,11 @@ public function authenticate(JWTClaim $claim)
61
61
$ this ->claim = $ claim ;
62
62
63
63
// $key Has to be the key file handler opened using openssl method
64
- $ key = openssl_get_privatekey ("file:// " . getcwd () . ' / ' . $ this ->private_key , $ this ->pass_phrase );
64
+ $ key = openssl_get_privatekey ("file:// " . $ this ->private_key , $ this ->pass_phrase );
65
65
66
66
if ($ key === false ) {
67
67
// TODO: Move to separate exception
68
- throw new \Exception ('Could not read key from " ' . "file:// " . getcwd () . ' / ' . $ this ->private_key . '" with pass phrase " ' . $ this ->pass_phrase . '" ' );
68
+ throw new \Exception ('Could not read key from " ' . "file:// " . $ this ->private_key . '" with pass phrase " ' . $ this ->pass_phrase . '" ' );
69
69
}
70
70
71
71
$ token = $ claim ->toArray ();
You can’t perform that action at this time.
0 commit comments