You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm a rustacean newbie, and I'm trying to authenticate using DiskTokenStorage.
let auth = Authenticator::new(&secret, MyDelegate,
hyper::Client::new(),
DiskTokenStorage::default(),
Some(oauth2::FlowType::InstalledInteractive));
However, I get the error: "No such file or directory". I looked at the source code, and couldn't locate where the default location is being set. Let's say if I want to create a new DiskTokenStorage passing a custom location, I would have to implement the TokenStorage trait again, which it feels unnecessary.
I'm probably doing some trivial mistake, but I cannot find it where.
Many thanks!
The text was updated successfully, but these errors were encountered:
Hello,
I'm a rustacean newbie, and I'm trying to authenticate using
DiskTokenStorage
.However, I get the error:
"No such file or directory"
. I looked at the source code, and couldn't locate where the default location is being set. Let's say if I want to create a newDiskTokenStorage
passing a custom location, I would have to implement theTokenStorage
trait again, which it feels unnecessary.I'm probably doing some trivial mistake, but I cannot find it where.
Many thanks!
The text was updated successfully, but these errors were encountered: