summary refs log tree commit diff
path: root/app/src/oauth.rs
diff options
context:
space:
mode:
authorAshelyn Rose <git@ashen.earth>2025-02-22 21:43:05 -0700
committerAshelyn Rose <git@ashen.earth>2025-02-22 21:43:05 -0700
commit29576c7c36f254d6a60b0d599e5f809c636acb4b (patch)
tree6db176ea0503ff9e1d12280d3c81b84313a8a2ad /app/src/oauth.rs
parentddbef5d475951dfd9157221b611e7d1ac06da86b (diff)
Slightly improved error handling in persistence module
Diffstat (limited to 'app/src/oauth.rs')
-rw-r--r--app/src/oauth.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/oauth.rs b/app/src/oauth.rs
index 1b0661c..ca8ff3f 100644
--- a/app/src/oauth.rs
+++ b/app/src/oauth.rs
@@ -106,7 +106,7 @@ impl OAuthController {
                     ])).send().await.expect("Could not send client registration")
                     .json().await.expect("Could not parse client registration response");
 
-                self.persistence.new_server(instance_domain.to_string(), registration_response.client_id.clone(), registration_response.name.to_string(), registration_response.client_secret).await;
+                self.persistence.new_server(instance_domain.to_string(), registration_response.client_id.clone(), registration_response.name.to_string(), registration_response.client_secret).await?;
 
                 self.persistence.get_server(&instance_domain.to_string()).await.unwrap()
             },
@@ -155,7 +155,7 @@ impl OAuthController {
         let username = self.resolve_account(&state, &auth_session).await?;
 
 
-        self.persistence.new_account(username.clone(), domain.clone(), auth_session.api_token).await;
+        self.persistence.new_account(username.clone(), domain.clone(), auth_session.api_token).await?;
 
         // Remove state callback record
         {self.int.lock().await.open_callbacks.remove(&state)};