code: def get_provider(self, provider):
          
          if self.provider is not None:
              return self.provider
          return providers.by_id(provider)
docs: Get instance of the OAuth client for this provider.