We are using a custom social connection for an Azure AD oAuth flow, we use the custom connection so we can do some property mapping during the flow. We are trying to not only get the access_token but also the refresh_token.
The method signature for Fetch User Profile is
function(accessToken, ctx, cb).
Access token is available as part of the method passed in parameters but the refresh_token is nowhere to be found, including in the context.
Additional information: we are requesting the scopes
Does anyone know how or if it is even possible to get the refresh_token through a custom social connection and the fetch user profile script?