def get_access_token(self, provider, param_name='access_token'):
        # provider should be from social providers list, for example 'github'
        s = self.social_auth.filter_by(provider=provider).one()
        return s.extra_data.get(param_name, None)
Method can be used for social network API access.
dataset/ETHPy150Open xen/flask-project-template/project/auth/models.py/User.get_access_token