How to do like this without using setTimeout?
let res; this.auth.getUser().subscribe((response) => { res = response; }); setTimeout(() =&