# Reminder: JWT deprecation

**URL:** <https://devforum.zoom.us/t/reminder-jwt-deprecation/89661>\
**Category:** API and Webhooks\
**Tags:** api\
**Created:** [June 5, 2023, 6:23pm UTC](https://devforum.zoom.us/t/reminder-jwt-deprecation/89661 "2023-06-05T18:23:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amadera](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/amadera/32/49141_2.png) [@amadera](https://devforum.zoom.us/u/amadera)\
**Post date:** [June 5, 2023, 6:23pm UTC](https://devforum.zoom.us/t/reminder-jwt-deprecation/89661/1 "2023-06-05T18:23:59Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [June 5, 2023, 8:48pm UTC](https://devforum.zoom.us/t/reminder-jwt-deprecation/89661/2 "2023-06-05T20:48:08Z")

</div>

Hi @amadera ,

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

Here is the guide:

> **[JWT app type migration guide](https://developers.zoom.us/docs/internal-apps/jwt-app-migration/)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

here is an example in PHP:

```auto
$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)
);

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [June 8, 2024, 12:24pm UTC](https://devforum.zoom.us/t/reminder-jwt-deprecation/89661/3 "2024-06-08T12:24:26Z")

</div>

Closed on June 8, 2024, 12:24pm UTC

This topic was automatically closed 368 days after the last reply. New replies are no longer allowed.
