logout method
void
logout()
Implementation
void logout() async {
_forgetCredentials();
var c = await credential;
if (c == null) return;
var uri = c.generateLogoutUrl(
redirectUri: Uri.parse(window.location.href).removeFragment());
if (uri != null) {
window.location.href = uri.toString();
}
}