mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2026-02-13 21:18:15 +01:00
Revert mutable authenticator interface change
Instead, suggest using interior mutability (and RwLock in the example) to manage storage of token states. This makes it easier to share authenticators between threads.
This commit is contained in:
@@ -44,7 +44,7 @@ async fn main() {
|
||||
let sec = yup_oauth2::read_application_secret("client_secret.json")
|
||||
.await
|
||||
.expect("client secret couldn't be read.");
|
||||
let mut auth = yup_oauth2::InstalledFlowAuthenticator::builder(
|
||||
let auth = yup_oauth2::InstalledFlowAuthenticator::builder(
|
||||
sec,
|
||||
yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user