Hi @bezkoder,
I was trying this FE with BE (https://github.com/bezkoder/node-js-express-login-example). Register / login works fine only logout is getting canceled which caused to skip this call this.storageService.clean(); which is in Observable.subscribe() and user is stuck in logged state. After few repeats it works. Or when I switch:
return this.http.post(AUTH_API + 'signout', JSON.stringify({}), httpOptions)
to
const req = new HttpRequest('POST', AUTH_API + 'signout', {}, httpOptions);
return this.http.request(req);
this works always but I'm not sure if that's the proper solution.
I've tested the behavior on chrome + firefox, I'll appreciate any help!