close method
Cancels pending timeouts, clears runtime state, and closes all sources.
Implementation
Future<void> close() async {
for (final timeout in _authenticationTimeouts.values) {
timeout.cancel();
}
_authenticationTimeouts.clear();
_authenticationRequests.clear();
_authenticating.clear();
_authenticatedUsers.clear();
_connectionsPerUser.clear();
await authentication.close();
}