Skip to content

Authentication Module (Developer Documentation)

This module handles the registration, login, logout, and role assignment for users of the Smart City Citizen Dashboard.


✅ Features

  • User registration (email or mobile)
  • Secure login with password
  • Forgot/reset password flow
  • session-based authentication
  • Role assignment: citizen, solver, admin
  • Token validation and refresh
  • Basic profile data fetch

🛠️ Technology Stack

  • Backend: Django + Django REST Framework (DRF)
  • Auth: django-allauth
  • Database Tables: User, Profile