mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2026-02-23 15:50:00 +01:00
Make helpers that read from disk async
This commit is contained in:
@@ -6,6 +6,7 @@ use tokio;
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
let app_secret = yup_oauth2::read_application_secret(path::Path::new("clientsecret.json"))
|
||||
.await
|
||||
.expect("clientsecret");
|
||||
let auth = DeviceFlowAuthenticator::builder(app_secret)
|
||||
.persist_tokens_to_disk("tokenstorage.json")
|
||||
|
||||
Reference in New Issue
Block a user