logoutNoContext method

Future<void> logoutNoContext()

Log out of this CarpService, by clearing the current user.

Use this if you used authenticateWithUsernamePassword to authenticate, or when you want to log out without opening a web browser

Implementation

Future<void> logoutNoContext() async {
  await manager?.forgetUser();
  _authEventController.add(AuthEvent.unauthenticated);
  _currentUser = null;
}