In this post we’ll add a route guard that only allows the user to navigate to the /beer
route if they’re authenticated. The new AuthRouteGuard
will determine if the user is authenticated via a NGRX store using a selector that checks for the existence of a JWT.
Viewing entries tagged
routing