title: A good way to authenticate a javascript frontend in django-rest-framework
body: <p>What's an excellent method to implement token-based httpOnly cookie authentication for my drf API for a javascript frontend
  I looked into <code>django-rest-knox</code> for token-based authentication but its built-in <code>LoginView</code> required the user to be logged in already. Why is that?. I want a good method to authenticate the user from the javascript frontend.</p>
  <p>Thanks!</p>