Save it in the local storage.
Netanel Basal
1

It (the token) is being saved in local storage. I ended up getting it to work by changing AuthService.isLoggedIn to return a BehaviorSubject<boolean> instead of an Observable<boolean>, i.e. this.isLoginSubject instead of this.isLoginSubject.asObservable(), though I’m not sure what side effects that will have.

Like what you read? Give Frank Sheiness a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.