Skip to content

Commit 059547b

Browse files
authored
fix(auth): removed the shareReplay from auth and addressed Zone.js issues (#2682)
* Only `keepUnstableUntilFirst` on `redirectResult`, `shareReplay` it * Remove shareReplay which causes issues when loading/checking auth lazily * Move guards over to `.user` so token changes will be evaluated * Upgrade the node modules in sample Closes #2681
1 parent 6817bcc commit 059547b

File tree

5 files changed

+890
-1211
lines changed

5 files changed

+890
-1211
lines changed

sample/src/app/auth/auth.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export class AuthComponent implements OnInit, OnDestroy {
2929
showLogoutButton = false;
3030

3131
constructor(public readonly auth: AngularFireAuth, @Inject(PLATFORM_ID) platformId: object) {
32+
3233
if (!isPlatformServer(platformId)) {
3334
this.userDisposable = this.auth.authState.pipe(
3435
trace('auth'),

0 commit comments

Comments
 (0)