| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1); |
||
| 46 | private static function createToken(RequestInterface $request, string $issuer, string $secret): string |
||
| 47 | { |
||
| 48 | return JWT::encode([ |
||
| 49 | 'iss' => $issuer, |
||
| 50 | 'iat' => \time(), |
||
| 51 | 'exp' => \strtotime('+1 day'), |
||
| 52 | 'qsh' => QSHGenerator::generate((string) $request->getUri(), $request->getMethod()), |
||
| 53 | ], $secret); |
||
| 54 | } |
||
| 56 |