function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
manimmanim 

Refresh token flow

Hi,

I want to test refresh token flow using outh framework.

I want to do it something like below:

 

if(response.toString().contains("access token expired")){

//SEND REQUETS FOR REFRESH TOKEN

}

How do I test this? Is there any way to manually deactivate the access token?

Thanks.



Best Answer chosen by Admin (Salesforce Developers) 
SuperfellSuperfell

You can call logout in the soap api to make your access_token expire. (i have a little python script that uses beatbox to do this)