The profile completion wizard was blocking admin users from accessing the admin dashboard. I've updated the code so that admin users can bypass profile completion and go directly to /admin/dashboard.
- Log out of your account
- Clear browser cache (or open an incognito/private window)
- Go to: https://rretoriq25.web.app
- Log in with: agrahariprakhar086@gmail.com
- Your session will now have the
admin: trueclaim
Go directly to: https://rretoriq25.web.app/admin/dashboard
You should now see:
- Either the Institution Setup page (if no institution exists)
- Or the Admin Dashboard (if institution already created)
The admin dashboard UI will load, but API calls will fail until you set these:
Add these 3 variables (exact values in VERCEL_ENV_VARS.md):
| Variable Name | Value |
|---|---|
FIREBASE_PROJECT_ID |
rretoriq25 |
FIREBASE_CLIENT_EMAIL |
firebase-adminsdk-fbsvc@rretoriq25.iam.gserviceaccount.com |
FIREBASE_PRIVATE_KEY |
(See VERCEL_ENV_VARS.md) |
- Log out → Log back in
- Go to: https://rretoriq25.web.app/admin/dashboard
- You should see the admin interface
- Try creating an institution
- If API calls fail, check Vercel env vars
File: src/components/ProtectedRoute.tsx
Change: Added admin bypass logic
// Allow admin users to bypass profile completion to access admin dashboard
if (user?.admin && location.pathname.startsWith('/admin')) {
return <>{children}</>
}This means:
- ✅ Regular users still need to complete profile
- ✅ Admin users can skip profile completion
- ✅ Admin users can go directly to
/admin/dashboard
- Log out and log back in (to refresh your auth token)
- Go to /admin/dashboard directly
- Set Vercel environment variables (for API to work)
- Create your institution and start adding students!
Frontend deployed: https://rretoriq25.web.app
Last deployed: Just now (October 11, 2025)