Reminder: JWT deprecation

I need to confirm if I have to change my authentication method that is in jwt with this code in laravel/php
use Firebase\JWT\JWT;

private function generateJWTKey()
{

    $key = config('fitpal.zoom.key');
    $secret = config('fitpal.zoom.secret');
    $now = new \DateTime();
    $now->modify('+1 day');
    $token = [
        "iss" => $key,
        "exp" => $now->getTimestamp(),
    ];
    return JWT::encode($token, $secret, 'HS256');
}

Can you show me the documentation I need to implement this new authentication method?

Hi @amadera ,

Yes, we are deprecating JWT app type soon. Please migrate from JWT to OAuth.

Here is the guide:

here is an example in PHP:

$url = 'https://zoom.us/oauth/token';
$data = array(
    'grant_type' => 'account_credentials',
    'account_id' => $accountId
);
$headers = array(
    'Content-Type: application/x-www-form-urlencoded',
    'Host: zoom.us',
    'Authorization: Basic ' . base64_encode($clientId . ':' . $clientSecret)
);