def METHOD_NAME(self, request, app, token, **kwargs):
    # make sure token is attached to a SocialApp in the db
    ensure_socialapp_in_db(token)
    token = fernet_decrypt(token.token)
    headers = {"Authorization": f"Bearer {token}"}
    verifier = request.session["socialaccount_state"][1]
    logger.info(
        "Calling back to Salesforce to complete login.",
        extra={"tag": "oauth", "context": {"verifier": verifier}},
    )
    resp = requests.get(self.userinfo_url, headers=headers)
    resp.raise_for_status()
    extra_data = resp.json()
    instance_url = kwargs.get("response", {}).get("instance_url", None)
    ret = self.get_provider().sociallogin_from_response(request, extra_data)
    ret.account.extra_data["instance_url"] = instance_url
    try:
        org_details = self.get_org_details(extra_data, token)
    except (
        requests.HTTPError,
        KeyError,
        SalesforcePermissionsError,
    ):  # pragma: nocover
        org_details = None
    ret.account.extra_data[ORGANIZATION_DETAILS] = org_details
    return ret