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:
@@ -3,7 +3,9 @@ use yup_oauth2::ServiceAccountAuthenticator;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
let creds = yup_oauth2::read_service_account_key("serviceaccount.json").unwrap();
|
||||
let creds = yup_oauth2::read_service_account_key("serviceaccount.json")
|
||||
.await
|
||||
.unwrap();
|
||||
let sa = ServiceAccountAuthenticator::builder(creds)
|
||||
.build()
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user