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
Rohit Soni 35Rohit Soni 35 

Refresh token from Configured Oauth provider

Can anyone tell as to how to get the refresh token from the configured Oauth provider , I am trying to use the Auth.AuthToken.refreshAccessToken(....) api , but it returns null in AT and message as - No_Refresh_Token , has anyone tried using this api? , anything specific sequence needs to be followed to use this?

Thanks
SwethaSwetha (Salesforce Developers) 
Can you try the approach of using
https://na16.salesforce.com/services/oauth2/authorize?response_type=token&client_id=[your_client_id]&redirect_uri=https://login.salesforce.com/services/oauth2/success&display=touch&scope=refresh_token%20full

Reference: https://salesforce.stackexchange.com/questions/78394/not-getting-the-refresh-token-in-oauth
Related:https://salesforce.stackexchange.com/questions/148015/oauth-getting-refresh-token

If this information helps, please mark the answer as best. Thank you