Inspired by https://github.com/nongdenchet/RxLogin RxLogin Rx way to handle login After logging in the last task will continue to run Diagram: