1654 Views
Generally, when building SPAs there's a need to protect certain routes. For example, let's say we have a dashboard route that can only be accessed by authenticated users, we can make use of an auth middleware to ensure that only authenticated users have access to the dashboard route.
0 comments