Revoking access token also revokes refresh token

Hello everyone i am working on refresh token functionality in my app , so i am revoking the access token from postman , but i am runnig into an issue , when i use https://zoom.us/oauth/token?grant_type=refresh_token&refresh_token={{refresh_token}} i get as response this message data: { reason: ‘Invalid Token!’, error: ‘invalid_request’ }.

For revoke accees token i am using this endpoint
https://zoom.us/oauth/revoke?token={{token}}

I am using zoom oAuth

I would appreciate your help.

i will add some screeshots.

Hey @webhostuni,

Thanks for reaching out about this, and happy to help.

In taking a look at your request, it looks like your request URL is a bit off for revoking a token. I see that you’ve included a refresh_token parameter, but this is not necessary. To revoke a token, your request should look something like this:

POST https://zoom.us/oauth/revoke?token=eyJhbGciOiJIUzUxMiIsInYiOiIyLjAiLCJraWQiOiI8S0lEPiJ9.eyJ2ZXIiOiI2IiwiY2xpZW50SWQiOiI8Q2xpZW50X0lEPiIsImNvZGUiOiI8Q29kZT4iLCJpc3MiOiJ1cm46em9vbTpjb25uZWN0OmNsaWVudGlkOjxDbGllbnRfSUQ-IiwiYXV0aGVudGljYXRpb25JZCI6IjxBdXRoZW50aWNhdGlvbl9JRD4iLCJ1c2VySWQiOiI8VXNlcl9JRD4iLCJncm91cE51bWJlciI6MCwiYXVkIjoiaHR0cHM6Ly9vYXV0aC56b29tLnVzIiwiYWNjb3VudElkIjoiPEFjY291bnRfSUQ-IiwibmJmIjoxNTgwMTQ3Mzk0LCJleHAiOjE1ODAxNTA5OTQsInRva2VuVHlwZSI6ImFjY2Vzc190b2tlbiIsImlhdCI6MTU4MDE0NzM5NCwianRpIjoiPEpUST4iLCJ0b2xlcmFuY2VJZCI6MjZ9.5c58p0PflZJdlz4Y7PgMIVCrQpHDnbM565iCKlrtajZ5HHmy00P5FCcoMwHb9LxjsUgbJ7653EfdeX5NEm6RoA

Let me know if this helps—thanks!
Will

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