docs: def get_auth(self):
          """
          Cached value of authenticate() + the logic for the dynamic auth
          """
          if self.dynamic:
              return self.dynamic
          if self.settings_dict['USER'] == 'dynamic auth':
              return {'instance_url': self.settings_dict['HOST']}
          # If another thread is running inside this method, wait for it to
          # finish. Always release the lock no matter what happens in the block
          db_alias = self.db_alias
          with oauth_lock:
              if db_alias not in oauth_data:
                  oauth_data[db_alias] = self.authenticate()
              return oauth_data[db_alias]