Authentication Example
Demo of Django REST API authentication

Usage Instructions:

  • Fill in the form and click "Login" or "Sign Up"
  • Check console for response data on success
  • Token is automatically saved to localStorage
  • See code for how to use other auth hooks