diff --git a/src/app/operations/auth.rs b/src/app/operations/auth.rs index a7844cd..e8f82eb 100644 --- a/src/app/operations/auth.rs +++ b/src/app/operations/auth.rs @@ -38,4 +38,4 @@ impl App { println!("User logged out successfully!"); Ok(()) } -} \ No newline at end of file +} diff --git a/src/client/requests/auth.rs b/src/client/requests/auth.rs index 6564824..f649303 100644 --- a/src/client/requests/auth.rs +++ b/src/client/requests/auth.rs @@ -5,8 +5,8 @@ use serde_json::{json, Value}; use crate::client::{ errors::{api_error::ApiError, ClientError}, queries::{ - captcha_create_challenge, user_login, CaptchaChallenge, - CaptchaCreateChallenge, UserLogin, UserLoginInput, + captcha_create_challenge, user_login, CaptchaChallenge, CaptchaCreateChallenge, UserLogin, + UserLoginInput, }, GaloyClient, }; @@ -73,7 +73,7 @@ impl GaloyClient { Ok(auth_token) } - + pub async fn create_captcha_challenge(&self) -> Result { let client = Client::builder().build().expect("Can't build client"); let variables = captcha_create_challenge::Variables;