code: def check(self, password: str) -> bool:
          
          return (
              pbkdf2_sha512.verify(password, self.password) or
              pbkdf2_sha512.verify(password,
                                   pbkdf2_sha512.encrypt(self.api_key))
          )
docs: Checks the given password with the one stored
          in the database