1. Type the roles first
Typescript
2. Gate routes by role, not just login state
Tsx
3. Mirror the roles in the UI
Tsx
4. Demo logins for portfolios and interviews
Tsx
5. Server-side: never trust the role from the client
Typescript
6. Keep sessions alive: auto-refresh before expiry
Tsx
7. Role-aware navigation
Tsx