logout method
Implementation
Future<void> logout() async {
if (_autoRenewTimer != null) _autoRenewTimer = null;
if (_identity == null) return;
try {
//Make sure we have the discovery information
await _verifyDiscoveryDocument();
await OpenIdConnect.logout(
request: LogoutRequest(
configuration: configuration!,
idToken: _identity!.idToken,
state: _identity!.state,
),
);
} on Exception {}
_raiseEvent(AuthEvent(AuthEventTypes.NotLoggedIn));
}