code: def attempt_social_login(self, provider, id):
          
          if not provider or not id:
              return False
  
          params = dict()
          params[provider.lower() + '_id'] = id
          user = self.first(**params)
          if not user:
              return False
  
          self.force_login(user)
          return True
docs: Attempt social login and return boolean result