diff --git a/src/web.rs b/src/web.rs index 02d16d2..d2283bb 100644 --- a/src/web.rs +++ b/src/web.rs @@ -33,7 +33,7 @@ async fn auth_setup( /* host: String, forwarded_proto: Option, */ state: State, ) -> Result { // let final_redirect_uri = format!("{}://{}/auth_done", forwarded_proto.as_deref().unwrap_or("http"), host); - let final_redirect_uri = std::env::var("MONZO_REDIRECT_URI").unwrap(); + let final_redirect_uri = format!("{}/auth_done", state.config.base_uri); let mut url = Url::parse("https://auth.monzo.com/").unwrap(); url.query_pairs_mut() .append_pair("client_id", &state.config.monzo_client_id)