aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 9bd94bb..709591f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -16,7 +16,13 @@ async fn main() {
let auth = oauth2::InstalledFlowAuthenticator::builder(
secret,
oauth2::InstalledFlowReturnMethod::HTTPRedirect,
- ).build().await.unwrap();
+ )
+ .persist_tokens_to_disk(
+ home::home_dir()
+ .unwrap()
+ .join(".google-service-cli/google-calendar-rsvp")
+ )
+ .build().await.unwrap();
let hub = CalendarHub::new(
hyper::Client::builder()