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