Service/JWTGenerator.php
public static function generate(RequestInterface $request, string $issuer, string $secret): string
    {
        $data = [
            'iss' => $issuer,
            'iat' => \time(),
            'exp' => \strtotime('+1 day'),
            'qsh' => QSHGenerator::generate((string) $request->getUri(), $request->getMethod()),
        ];

        return JWT::encode($data, $secret);
    }
public static function generate(RequestInterface $request, string $issuer, string $secret): string
    {
        $data = [
            'iss' => $issuer,
            'iat' => \time(),
            'exp' => \strtotime('+1 day'),
            'qsh' => QSHGenerator::generate((string) $request->getUri(), $request->getMethod()),
        ];

        return JWT::encode($data, $secret);
    }
public static function generate ( RequestInterface $ request , string $ issuer , string $ secret ) : string { $ data = [ 'iss' => $ issuer , 'iat' => \ time ( ) , 'exp' => \ strtotime ( '+1 day' ) , 'qsh' => QSHGenerator :: generate ( ( string ) $ request -> getUri ( ) , $ request -> getMethod ( ) ) , ] ; return JWT :: encode ( $ data , $ secret ) ; }
Create JWT token used by Atlassian REST API request

@param RequestInterface $request
@param string           $issuer  Key of the add-on
@param string           $secret  Shared secret of the Tenant

@return string
Create JWT token used by Atlassian REST API request