Responses

  1. This solution shows me this error.
    The authentication provider didn't provide a refresh token. If the access token expires, your org won't be able to access this named credential.

  2. ISSUE : The authentication provider didn't provide a refresh token. If the access token expires, your org won't be able to access this named credential.

    Fix : In the Auth. Provider, set Provider Type to 'Open ID Connect' (not 'Google'), and in 'Authorize Endpoint URL' put 'https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&approval_prompt=force'. In Named Credential, include 'openid' as the first scope, you can add any other Google scopes after that. Read more: https://developer.salesforce.com/docs/atlas.en-us.noversion.mobile_sdk.meta/mobile_sdk/sso_provider_openid_connect.htm

Popular Salesforce Blogs