@auth0/auth0-angular
    Preparing search index...

    Function authGuardFn

    • Functional AuthGuard to ensure routes can only be accessed when authenticated.

      Note: Should only be used as of Angular 15

      Parameters

      • route: ActivatedRouteSnapshot

        Contains the information about a route associated with a component loaded in an outlet at a particular moment in time.

      • state: RouterStateSnapshot

        Represents the state of the router at a moment in time.

      Returns Observable<boolean>

      An Observable, indicating if the route can be accessed or not