Introduction
Guards help decide who can use parts of your app. They keep things safe by checking if someone is allowed before they get in.
When you want only logged-in users to see certain pages.
When you need to check if a user has special rights before doing an action.
When you want to block access to parts of your app for some users.
When you want to check a password or token before allowing access.
When you want to protect routes from unauthorized users.