code: def _check_auth(self, username: str, password: str) -> bool:
          
          try:
              return self.credentials[username] == password
          except KeyError:
              return False
docs: Check if a username/password combination is valid.