File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ export class AngularFireAuthGuard implements CanActivate {
2424 const auth = of ( undefined ) . pipe (
2525 observeOn ( new ɵAngularFireSchedulers ( zone ) . outsideAngular ) ,
2626 switchMap ( ( ) => zone . runOutsideAngular ( ( ) => import ( 'firebase/auth' ) ) ) ,
27+ observeOn ( new ɵAngularFireSchedulers ( zone ) . insideAngular ) ,
2728 map ( ( ) => ɵfirebaseAppFactory ( options , zone , nameOrConfig ) ) ,
2829 map ( app => app . auth ( ) ) ,
2930 shareReplay ( { bufferSize : 1 , refCount : false } ) ,
@@ -56,4 +57,4 @@ export const emailVerified: AuthPipe = map(user => !!user && user.emailVerified)
5657export const customClaims = pipe ( idTokenResult , map ( idTokenResult => idTokenResult ? idTokenResult . claims : [ ] ) ) ;
5758export const hasCustomClaim = ( claim :string ) => pipe ( customClaims , map ( claims => claims . hasOwnProperty ( claim ) ) ) ;
5859export const redirectUnauthorizedTo = ( redirect : any [ ] ) => pipe ( loggedIn , map ( loggedIn => loggedIn || redirect ) ) ;
59- export const redirectLoggedInTo = ( redirect : any [ ] ) => pipe ( loggedIn , map ( loggedIn => loggedIn && redirect || true ) ) ;
60+ export const redirectLoggedInTo = ( redirect : any [ ] ) => pipe ( loggedIn , map ( loggedIn => loggedIn && redirect || true ) ) ;
You can’t perform that action at this time.
0 commit comments