This commit is contained in:
Maxime Bedard
2020-12-26 22:14:57 -05:00
parent 07bc4803c0
commit cc2abadb3c

View File

@@ -215,9 +215,10 @@ async fn create_installed_flow_auth(
}
}
let mut builder = InstalledFlowAuthenticator::builder(app_secret, method).flow_delegate(
Box::new(FD(hyper::Client::builder().build(HttpsConnector::with_native_roots()))),
);
let mut builder =
InstalledFlowAuthenticator::builder(app_secret, method).flow_delegate(Box::new(FD(
hyper::Client::builder().build(HttpsConnector::with_native_roots()),
)));
builder = if let Some(filename) = filename {
builder.persist_tokens_to_disk(filename)