@@ -67,9 +67,9 @@ discard block |
||
| 67 | 67 | if (file_exists($signerKey)) { |
| 68 | 68 | $this->signer = new RsaSha256(); |
| 69 | 69 | $password = getenv('JWT_KEY_PASSWORD'); |
| 70 | - $this->privateKey = new Key('file://' . $signerKey, $password ?: null); |
|
| 70 | + $this->privateKey = new Key('file://'.$signerKey, $password ?: null); |
|
| 71 | 71 | // We're having an RSA signed key instead of a string |
| 72 | - $this->publicKey = new Key('file://' . getenv('JWT_PUBLIC_KEY')); |
|
| 72 | + $this->publicKey = new Key('file://'.getenv('JWT_PUBLIC_KEY')); |
|
| 73 | 73 | } else { |
| 74 | 74 | $this->signer = new Sha256(); |
| 75 | 75 | $this->privateKey = $signerKey; |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | * @throws OutOfBoundsException |
| 96 | 96 | * @throws BadMethodCallException |
| 97 | 97 | */ |
| 98 | - public function authenticate(array $data, HTTPRequest $request, ValidationResult &$result = null) |
|
| 98 | + public function authenticate(array $data, HTTPRequest $request, ValidationResult & $result = null) |
|
| 99 | 99 | { |
| 100 | 100 | if (!$result) { |
| 101 | 101 | $result = new ValidationResult(); |