From 6d24a0175cb6e93448bbb752e88c71e8aecf6ade Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Thu, 23 Oct 2025 11:58:18 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(cli):=20add=20token=20and=20au?= =?UTF-8?q?th=20uri=20config=20options?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - allow users to configure token_uri and auth_uri in config file - add default values for token_uri and auth_uri --- src/cli/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cli/main.rs b/src/cli/main.rs index 7e9e9e0..6fd60b1 100644 --- a/src/cli/main.rs +++ b/src/cli/main.rs @@ -433,6 +433,8 @@ fn get_config() -> Result<(Config, ClientConfig)> { .set_default("config_root", "h:.cull-gmail")? .set_default("rules", "rules.toml")? .set_default("execute", true)? + .set_default("token_uri", "https://oauth2.googleapis.com/token")? + .set_default("auth_uri", "https://accounts.google.com/o/oauth2/auth")? .set_default("token_cache_env", "CULL_GMAIL_TOKEN_CACHE")?; if path.exists() {