revoke method

Future<void> revoke()

Log out of Google. You must have set googleClientId before calling this.

This revokes the access token and refresh token. It may take a second or so to take effect.

Implementation

Future<void> revoke() async {
  await client.post(
    Uri.parse(
      'https://oauth2.googleapis.com/revoke',
    ),
    body: {
      'token': _accessCredentials.accessToken.data,
    },
  );
}