Index: Src/GoogleApis.Auth/OAuth2/Flows/IAuthorizationCodeFlow.cs =================================================================== --- a/Src/GoogleApis.Auth/OAuth2/Flows/IAuthorizationCodeFlow.cs +++ b/Src/GoogleApis.Auth/OAuth2/Flows/IAuthorizationCodeFlow.cs @@ -67,5 +67,18 @@ /// Token response which contains the access token and the input refresh token. Task RefreshTokenAsync(string userId, string refreshToken, CancellationToken taskCancellationToken); + + /// + /// Asynchronously revokes the specified token. This method disconnects the user's account from the OAuth 2.0 + /// application. It should be called upon removing the user account from the site. + /// + /// If revoking the token succeeds, the user's credential is removed from the data store and the user MUST + /// authorize the application again before the application can access the user's private resources. + /// + /// User identifier. + /// Access token to be revoked. + /// Cancellation token to cancel operation. + /// true if the token was revoked successfully. + Task RevokeTokenAsync(string userId, string token, CancellationToken taskCancellationToken); } }