Make Authenticator Clone

This commit is contained in:
Lewin Bormann
2021-03-04 19:32:04 +01:00
parent eafdaaa4be
commit 010668cc62
2 changed files with 18 additions and 11 deletions

View File

@@ -118,6 +118,7 @@ async fn test_device_no_code() {
}))),
);
let auth = create_device_flow_auth(&server).await;
let auth = auth.clone();
let res = auth.token(&["https://www.googleapis.com/scope/1"]).await;
assert!(res.is_err());
assert!(format!("{}", res.unwrap_err()).contains("invalid_client_id"));