revokeToken method
Implementation
Future<void> revokeToken() async {
if (_autoRenewTimer != null) _autoRenewTimer = null;
if (_identity == null) return;
try {
//Make sure we have the discovery information
await _verifyDiscoveryDocument();
await OpenIdConnect.revokeToken(
request: RevokeTokenRequest(
clientId: clientId,
clientSecret: clientSecret,
configuration: configuration!,
token: _identity!.accessToken,
tokenType: TokenType.accessToken,
),
);
} on Exception catch (e) {
_raiseEvent(AuthEvent(AuthEventTypes.Error, message: e.toString()));
}
}