feat(cli): add token and auth uri config options

- allow users to configure token_uri and auth_uri in config file
- add default values for token_uri and auth_uri
This commit is contained in:
Jeremiah Russell
2025-10-23 11:58:18 +01:00
committed by Jeremiah Russell
parent 15599e2258
commit 6d24a0175c

View File

@@ -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() {