Skip to content

Instantly share code, notes, and snippets.

@danielcrisp
Created July 25, 2017 13:36
Show Gist options
  • Save danielcrisp/6608ca567543ccea8e6e61ba8a8e7a9e to your computer and use it in GitHub Desktop.
Save danielcrisp/6608ca567543ccea8e6e61ba8a8e7a9e to your computer and use it in GitHub Desktop.
AuthService.getUser - Async HTTP Interceptors with Angular 4
getUser (): Observable<User> {
return Observable.fromPromise(this.userManager.getUser());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment