title: Login and authentication functionality in Django REST API and React Native
body: <p>One of my projects I have developed backend API using <code>Django REST Framework</code> and mobile app using <code>React Native</code>. I have done the following things: </p>
  
  <ol>
  <li><p>When the users log in I store their username in local (mobile) database.</p></li>
  <li><p>When users <code>post</code> data I send the username to server reading from local database along with the <code>POST</code> data.</p></li>
  <li><p>I check whether the user is logged in or not using the username and then process the request.</p></li>
  </ol>
  
  <p>My question is: am I doing it in the right way? If no then what are the right procedures to do this kind of authentication checking?</p>