Just starting out with angular 13 and angular fire 7 for a new app.
Ran into a nullInjector error when using AngularFireAuthGuard.
import { AngularFireAuthGuard } from '@angular/fire/compat/auth-guard';
Switched to AuthGuard and now everything is working smoothly.
import { AuthGuard } from '@angular/fire/auth-guard';
Is this the correct and recommended approach? Or should I be providing any additional configurations to use AngularFireAuthGuard?
Working imports include:
import {redirectLoggedInTo, redirectUnauthorizedTo} from '@angular/fire/compat/auth-guard';
import { AuthGuard } from '@angular/fire/auth-guard';