# Code: 124, message: 'Invalid access token

**URL:** <https://devforum.zoom.us/t/code-124-message-invalid-access-token/84903>\
**Category:** Meetings\
**Tags:** api\
**Created:** [March 17, 2023, 5:43pm UTC](https://devforum.zoom.us/t/code-124-message-invalid-access-token/84903 "2023-03-17T17:43:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![varunu](https://avatars.discourse-cdn.com/v4/letter/v/7cd45c/32.png) [@varunu](https://devforum.zoom.us/u/varunu)\
**Post date:** [March 17, 2023, 5:43pm UTC](https://devforum.zoom.us/t/code-124-message-invalid-access-token/84903/1 "2023-03-17T17:43:44Z")

</div>

I am using the server to server oauth app to create a meeting from react app and using below code to generate bearer token.  
const generateZoomJWT = () =\> {  
const API\_KEY = ‘’;  
const API\_SECRET = ‘’;  
const payload = {  
iss: API\_KEY,  
exp: ((new Date()).getTime() + 5000)  
};  
const token = jwt.sign(payload, API\_SECRET);  
return token;  
}

Can I know what wrong here

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [March 17, 2023, 7:06pm UTC](https://devforum.zoom.us/t/code-124-message-invalid-access-token/84903/2 "2023-03-17T19:06:07Z")

</div>

Hi @varunu  
Thanks for reaching out to the Zoom Developer forum and welcome to our community!  
Here is a link to a post about our Server to Server Oauth app, the JWT app will be deprecated in June so I highly encourage you to migrate to our Server to Server Oauth:

> [@How to user Server-to-Sever OAuth app with Postman](https://devforum.zoom.us/t/how-to-user-server-to-sever-oauth-app-with-postman/70848):
>
> How to use our Server-to-Server OAuth with Postman? As some of you might be aware of, our JWT app is being deprecated by June 2023 and we encourage you to migrate to the newly introduced [Server-to-Server OAuth App](https://marketplace.zoom.us/docs/guides/build/server-to-server-oauth-app) That being said, here is a quick and simple guide on how to use or new app with Postman As stated in our documentation here: This new app type facilitates OAuth-authenticated requests between servers without end-user involvement. And this grant type enable your private server a…
