Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(auth): make sure onAuth runs in Angular zone
There is one place in auth that takes a promise from Firebase, the promise from getRedirectResult(), and creates an observable from it. Since Firebase is using their own Promise implementation, the Promise and its derived observable were running in the root zone instead of the Angular zone, causing onAuth changes to not immediately be propagated to the view. By casting the firebase Promise to a zone-patched Promise, the observable now runs in the Angular zone. Fixes angular#231
- Loading branch information