From 1132b542d2590e0bccf588691d95e47148bc059d Mon Sep 17 00:00:00 2001 From: philippeitis <33013301+philippeitis@users.noreply.github.com> Date: Sun, 16 Oct 2022 17:28:29 -0700 Subject: [PATCH] More correct GetToken docs --- google-apis-common/src/auth.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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],