| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 9 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 14 | public static function generate(string $clientId, string $clientKey, string $serverKey): string  | 
            ||
| 15 |     { | 
            ||
| 16 | return JWT::encode(  | 
            ||
| 17 | [  | 
            ||
| 18 | 'sub' => $clientId,  | 
            ||
| 19 | 'clientKey' => $clientKey,  | 
            ||
| 20 | ], // payload PHP object or array  | 
            ||
| 21 | $serverKey, // key The secret key.  | 
            ||
| 22 | self::ALGORITHM_HS256, // alg The signing algorithm.  | 
            ||
| 23 | );  | 
            ||
| 45 |