# iMerica/dj-rest-auth

Authentication for Django Rest Framework

Repository: https://github.com/iMerica/dj-rest-auth
Canonical: https://ross.abutalabs.com/products/dj-rest-auth
Homepage: https://dj-rest-auth.readthedocs.io/en/latest/index.html
Language: Python
License: MIT
License Family: permissive
Topics: django, django-rest-framework, rest-api, python, jwt, authentication
Last push: 2026-06-05T17:02:00+00:00

## Health v2 (maintenance only)
Score: 81/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 86, release rhythm 63, longevity 100
- inputs: {"age_days": 2378, "days_push": 89, "days_rel": 171, "gap_med": 37, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1868, forks 342 (observed 2026-08-28T04:05:46.406961+00:00)

## What it is
dj-rest-auth provides drop-in authentication and registration endpoints for Django REST Framework, including login, logout, password management, email verification, JWT with HTTP-only cookies, MFA, passkeys, and social auth via django-allauth. It is a Python library that integrates with Django's auth system and DRF to serve SPAs and mobile apps.

## Use cases
- add login and logout API endpoints to a Django REST Framework project
- implement JWT authentication with HTTP-only cookies for a React SPA
- add user registration with email verification to a REST API
- support social login with Google, GitHub, or Facebook in a Django backend
- enable passkey/WebAuthn passwordless login for a mobile app
- add MFA with TOTP and recovery codes to a DRF API
- implement password reset and password change endpoints

## When to choose
- you are building a Django REST Framework backend that needs authentication for SPAs or mobile clients
- you want ready-made, secure auth endpoints instead of writing them yourself
- you need JWT token auth with cookie handling or social login via django-allauth

## When to avoid
- your project does not use Django or Django REST Framework
- you need authentication for a non-Python backend stack
- you want a fully custom auth flow with no prebuilt endpoints

## Facets
- artifact type: library
- maturity: active
- function: auth, api-framework, middleware
- domain: web-development, backend, security, apis
- platform: python
- tags: django, django-rest-framework, jwt, authentication, registration, social-auth, passkeys, mfa, rest-api, web-server

## Member repositories
- iMerica/dj-rest-auth (main) score 81

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:46.406961+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:15:14.141609+00:00, confidence not recorded.
  - readme: https://github.com/iMerica/dj-rest-auth (fetched 2026-08-28T04:05:46.406961+00:00, sha 2a9fa1f1f3fc)
  - registry_pypi: https://pypi.org/pypi/dj-rest-auth/json (fetched 2026-08-29T10:54:52.294754+00:00, sha 07261078dd34)
- Data as of 2026-08-30T08:39:29.467469+00:00.
