Fix old use of env var
continuous-integration/drone the build was successful
Details
continuous-integration/drone the build was successful
Details
This commit is contained in:
parent
10fc9e4acd
commit
e34d84d7fb
|
@ -33,7 +33,7 @@ async fn auth_setup(
|
|||
/* host: String, forwarded_proto: Option<String>, */ state: State,
|
||||
) -> Result<impl warp::Reply, warp::Rejection> {
|
||||
// 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)
|
||||
|
|
Loading…
Reference in New Issue