onRefreshFailed method

void onRefreshFailed()

Handles user logout and cleanup when token refresh fails.

Implementation

void onRefreshFailed() {
  final getIt = GetIt.instance;
  getIt.get<AuthenticationBloc>().add(UserLogoutEvent());
  getIt.get<CookieManager>().deleteAllCookies();
  getIt.get<PersistentStorage>().clear();
}