Role-based authorization in React | Hacker News Reader