# Refresh token not working after access token expiration

**URL:** <https://devforum.zoom.us/t/refresh-token-not-working-after-access-token-expiration/107067>\
**Category:** Meetings\
**Created:** [April 3, 2024, 6:27am UTC](https://devforum.zoom.us/t/refresh-token-not-working-after-access-token-expiration/107067 "2024-04-03T06:27:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ppmp](https://avatars.discourse-cdn.com/v4/letter/p/e9c0ed/32.png) [@ppmp](https://devforum.zoom.us/u/ppmp)\
**Post date:** [April 3, 2024, 6:27am UTC](https://devforum.zoom.us/t/refresh-token-not-working-after-access-token-expiration/107067/1 "2024-04-03T06:27:24Z")

</div>

While creating a zoom meeting through my php application, the procedure I followed are :

1. I fetched the access and refresh token through database table(zoom\_settings).

2. After the access token expiration after 1 hr (it is working fine for 1 hr), I called a function to update access token and if success, it will also update the database table with new access and refresh token.

3. Inside that function , I have called a post method to /oauth/token with authorization (clientKey : secretKey) in header and in form\_params, I have passed a refresh token with grant\_type =\> refresh\_token. it is shown in the attachment below.

I am getting an error in this function while updating access token. I have followed the exact same procedure that is mentioned in the zoom official documentation.

The error in my error log says :  
Client error: `POST [https://zoom.us/oauth/token`] resulted in a `400 Bad Request` response:  
{“reason”:“Invalid Token!”,“error”:“invalid\_grant”}

Please have a look in this issue, as I am getting this error for quite a long time now.
