From 20268b41d908d8b4539b9829c0dd8ed00aa0d827 Mon Sep 17 00:00:00 2001 From: OMGeeky Date: Sun, 4 Jun 2023 16:07:36 +0200 Subject: [PATCH] force user to choose account instead of letting google decide if that's needed --- src/auth.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/auth.rs b/src/auth.rs index ed2b571..c4d87b4 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -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