force user to choose account instead of letting google decide if that's needed

This commit is contained in:
OMGeeky
2023-06-04 16:07:36 +02:00
parent 5fe34bf156
commit 20268b41d9

View File

@@ -155,6 +155,7 @@ pub(crate) async fn get_authenticator(
let auth = oauth2::InstalledFlowAuthenticator::builder(app_secret, method)
.flow_delegate(Box::new(CustomFlowDelegate { user }))
.persist_tokens_to_disk(persistent_path.to_path_buf())
.force_account_selection(true)
.build()
.await
//TODO: somehow get rid of this unwrap that is happening in the library