diff --git a/google-apis-common/src/auth.rs b/google-apis-common/src/auth.rs index 6b9321fb06..7576e56079 100644 --- a/google-apis-common/src/auth.rs +++ b/google-apis-common/src/auth.rs @@ -74,9 +74,8 @@ use std::pin::Pin; type TokenResult = Option; pub trait GetToken: GetTokenClone + Send + Sync { - /// Called whenever there is the need for an oauth token after - /// the official authenticator implementation didn't provide one, for some reason. - /// If this method returns None as well, the underlying operation will fail + /// Called whenever an API call require authentication via an oauth2 token. + /// Returns `None` if a token can not be generated for the provided scopes. fn get_token<'a>( &'a self, _scopes: &'a [&str],