Registry /
security / djangorestframework-simplejwt
Install & Compatibility
Where this runs
tested against v5.5.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 71.6MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.8s · import 0.000s · 72MB
71MB installed
● package 71MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
JWTAuthentication
✓ from rest_framework_simplejwt.authentication import JWTAuthentication
✗ from rest_framework_simplejwt.authentication import JWTAuthentication
TokenObtainPairView
✓ from rest_framework_simplejwt.views import TokenObtainPairView
TokenRefreshView
✓ from rest_framework_simplejwt.views import TokenRefreshView
Add JWT token obtain and refresh endpoints to your Django URL configuration.
from django.urls import path
from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView
urlpatterns = [
path('api/token/', TokenObtainPairView.as_view(), name='token_obtain_pair'),
path('api/token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
]
Upgrade
Version history
5.5.1latest on PyPI · released Jul 21, 2025
Audit
Dependencies
djangorequiredRequired: Django framework.
djangorestframeworkrequiredRequired: Django REST Framework.
PyJWToptionalRequired: JWT encoding/decoding library.
cryptographyoptionalOptional: Required for RS256/RS512 algorithms.