title: How to create admin user or super user in React-Redux application?
body: <p>I currently have a React-Redux Application.</p>
  
  <p><strong>I want to create an admin user in React-Redux</strong>.</p>
  
  <p>If I create a state with userAdmin true or false will users be able to access the state and change this value? That is to say, is this a secure method of creating such access?</p>
  
  <p>I am using webpack to create a bundle.js, and have a node.js server for serving data that is secured using JWTs. </p>
  
  <p>Furthermore, is there a standard or semi-standard pattern for creating an admin user in a react-redux application?</p>
  
  <p>My thoughts on this are:</p>
  
  <ol>
  <li><p>Create a separate app for admin user management. </p></li>
  <li><p>Create a state for the admin user and if that state is true then query the serverAPI for any admin action. But <strong>show</strong> the admin capability only if that state is true eg. delete other users, view details of users, but do not serve that data without an authorised API call. Then if the state is changed surreptitiously the user can only see the actions but is not able to access the API without the required authorisation. </p></li>
  </ol>