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
Tyler Zika 19Tyler Zika 19 

Named Credential not returning refresh token

Hello,

I'm trying to create a named credential using Google as my Authentucation Provider. I am getting a token, but no refresh token.
User-added image

The Authorize Endpoint URL in my Auth Provider, I'm using is: https://accounts.google.com/o/oauth2/auth?access_type=offline&prompt=consent

Using this url in a program like Postman returns a refresh token, but not with Salesforce. Any ideas for what could be the problem?
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Tyler Zika,

Please refer the article from the salesforce help which might be helpful. Hope it will be helpful.

Please mark it as best answer if the information is informative.

Thanks
Rahul Kumar