--- id: djoser version: "2.3.4" license: MIT license_treatment: permissive maintenance: active --- # djoser — REST implementation of Django authentication system. License: permissive · Maintenance: active · Downloads: 404.3K/mo ## What it is and what it does Djoser is a Django REST Framework library that reimplements Django's built-in authentication system as REST API endpoints, designed specifically for single-page applications and modern frontend architectures. Instead of server-side form rendering, it provides JSON-based endpoints for user registration, login, logout, password reset, and account activation—eliminating the need to reuse Django's traditional form-based authentication code. It supports multiple authentication strategies: token-based authentication, JWT (via djangorestframework-simplejwt), social authentication (via social-auth-app-django), and WebAuthn. The library works with Django's custom user models and is actively maintained across Django versions 3.2 through 5.2 and Python 3.9 through 3.13. Its four runtime dependencies are all widely-used, stable packages in the Django ecosystem. Use it for: - Building a single-page application (React, Vue, Angular) that needs user registration and login endpoints instead of server-rendered forms. - Adding JWT-based authentication to a Django REST API without writing custom views. - Integrating social login (Google, GitHub, etc.) into a REST API using social-auth-app-django. - Implementing password reset workflows that return JSON responses instead of HTML emails. - Supporting WebAuthn/passkey authentication for modern security-first applications. - Migrating a traditional Django app to a decoupled frontend architecture while keeping the same authentication logic. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides Django REST Framework views for user registration, login, logout, password reset, and account activation with support for token, JWT, social, and WebAuthn authentication. Yes. Djoser is a production-stable library (Development Status 5) with active maintenance, no known vulnerabilities, permissive MIT licensing, and low install friction. Use it if you're building a REST API with Django and need standard authentication endpoints; skip it only if you require highly custom authentication flows that the library's configuration cannot accommodate. ## Install pip install djoser uv add djoser poetry add djoser ## Installing djoser Before you install: Low friction: pure Python wheel with four runtime dependencies (django, djangorestframework, djangorestframework-simplejwt, social-auth-app-django). Actively maintained with a recent release 13 days ago and 2683 repository stars. License in practice: MIT license (permissive) allows commercial and private use with minimal restrictions—you may use, modify, and distribute djoser freely provided you include the license notice. Quickstart: pip install djoser # In Django settings.py, add to INSTALLED_APPS: # 'djoser' # 'rest_framework' # 'rest_framework_simplejwt' # In urls.py: from django.urls import path, include urlpatterns = [path('auth/', include('djoser.urls'))] # Then use endpoints like POST /auth/users/ for registration Requires Django 3.2+, Django REST Framework 3.14+, and Python 3.9+; social authentication and WebAuthn features require their respective optional dependencies. Verify before relying: - Whether WebAuthn support requires additional system libraries or browser-side code beyond what djoser provides. - Performance characteristics when handling high volumes of authentication requests. - Extent of customization available for email templates and authentication workflows. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 404.3K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags django rest authentication, user registration api, jwt login endpoint, django password reset rest, social auth integration, rest api user management, webauthn django, django-rest-framework, user-authentication, jwt-auth [View on SkillFed](https://skillfed.io/packages/djoser) · [View on PyPI](https://pypi.org/project/djoser/)