Shitbox2,
<script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/5.5.3/Rx.min.js"></script>
<script>
const bs = new Rx.BehaviorSubject(null);
bs.subscribe(user => console.log(user))
const currentUser = new Rx.Observable.of({login: 'test'})
currentUser.subscribe(bs);
</script>