diff --git a/pubky/src/shared/auth.rs b/pubky/src/shared/auth.rs index 0dff599..5c37f48 100644 --- a/pubky/src/shared/auth.rs +++ b/pubky/src/shared/auth.rs @@ -143,11 +143,14 @@ impl PubkyClient { path_segments.push(&channel_id); drop(path_segments); - self.request(Method::POST, callback) + let response = self + .request(Method::POST, callback) .body(encrypted_token) .send() .await?; + response.error_for_status()?; + Ok(()) }