| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1); |
||
| 11 | class JWTGenerator |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Create JWT token used by Atlassian REST API request |
||
| 15 | * |
||
| 16 | * @param RequestInterface $request |
||
| 17 | * @param string $issuer Key of the add-on |
||
| 18 | * @param string $secret Shared secret of the Tenant |
||
| 19 | * @param null|string $user |
||
| 20 | * |
||
| 21 | * @return string |
||
| 22 | */ |
||
| 23 | public static function generate(RequestInterface $request, string $issuer, string $secret, ?string $user): string |
||
| 39 |