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
Naveen Shrivastava 10Naveen Shrivastava 10 

Connected App + refresh token policy

Hi I am using Connected App for Using Oauth2 connection. where Third Party can access rest API's devloped in salesforce using connected App.
while we are stablish connetion with Third part app using Connected App token is avilabel for 20 minutes only.
my connected app 
Refresh Token Policy: Refresh token is valid until revoked. so why token is expired in 20 minutes.
I want to use same Token until I revoke it. so Third party App dosen required connection every 20 minutes.
Khan AnasKhan Anas (Salesforce Developers) 
Hi Naveen,

Greetings to you!

Please refer to the below links which might help you further with the above issue.

https://salesforce.stackexchange.com/questions/65590/what-causes-a-connected-apps-refresh-token-to-expire

https://salesforce.stackexchange.com/questions/69161/refresh-token-policy-locked-to-immediatly-expire-token

https://salesforce.stackexchange.com/questions/73512/oauth-access-token-expiration

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
prem jonnala 11prem jonnala 11
Give higher number at the follownig place

connected app -> manage -> edit policies -> Refresh Token Policy: Expire refresh token after 1000 Month(s)