From 73e9eed539594e4a4562e16f42af195c7f315529 Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Thu, 16 Oct 2025 15:29:37 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(gmail):=20fix=20token=20pers?= =?UTF-8?q?istence=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Use the persist_path from the config instead of a hardcoded path to ensure tokens are persisted to the correct location --- src/gmail_client.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gmail_client.rs b/src/gmail_client.rs index 408a4a1..563ff3a 100644 --- a/src/gmail_client.rs +++ b/src/gmail_client.rs @@ -72,13 +72,14 @@ impl GmailClient { .build(); let client = Client::builder(executor.clone()).build(connector.clone()); + log::trace!("file to persist tokens to `{}`", config.persist_path()); let auth = InstalledFlowAuthenticator::with_client( config.secret().clone(), InstalledFlowReturnMethod::HTTPRedirect, Client::builder(executor).build(connector), ) - .persist_tokens_to_disk(format!("{}/gmail1", config.config_root())) + .persist_tokens_to_disk(config.persist_path()) .build() .await .unwrap();