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
g392908g392908 

OAuth no longer returning a refresh_token

I have an application and everything worked fine before. Now I noticed that application fails. NO CODE WAS CHANGED! The problem is that no refresh_token is returned now.

I'm using following to get refresh_token:

https://login.salesforce.com/services/oauth2/authorize?response_type=token&client_id={MyID}&redirect_uri={CallBackUri}

 

Response contains almost everything, including access_token, signature and etc., but  no refresh_token param. 

AdminBoosterAdminBooster

Did you change the connected app oAuth scope ? it should include "Perform requests on your behalf at any time (refresh_token)"