Currently, after logging in, all users—whether they are admins or not—are redirected to the home page. However, admins should be taken to a separate Admin Dashboard, where they can edit all the posts or projects on the website.
To achieve this, use Firebase or Firestore to check whether a user has admin privileges. If the user is an admin, they should be redirected to the Admin Dashboard instead of the home page. If they are a regular user, they should proceed to the home page as usual.
Currently, after logging in, all users—whether they are admins or not—are redirected to the home page. However, admins should be taken to a separate Admin Dashboard, where they can edit all the posts or projects on the website.
To achieve this, use Firebase or Firestore to check whether a user has admin privileges. If the user is an admin, they should be redirected to the Admin Dashboard instead of the home page. If they are a regular user, they should proceed to the home page as usual.