๐ Django Trusted Device¶
Welcome to the official documentation for the Django Trusted Device library.
This package provides JWT-based trusted device tracking with per-device session control and security.
๐ Features¶
- ๐ JWT tokens include a unique
device_uid
- ๐ Auto-detect IP, region, and city via ipapi.co
- ๐ก๏ธ Per-device session tracking with update/delete restrictions
- ๐ Custom
TokenObtainPair
,TokenRefresh
, andTokenVerify
views - ๐ช Logout unwanted sessions from the device list
- ๐งผ Automatic cleanup, optional global control rules
- ๐งฉ API-ready โ supports DRF out of the box
- โ๏ธ Fully customizable via
TRUSTED_DEVICE
Django settings - ๐ซ Rejects refresh/verify from unknown or expired devices
Check the Usage page for integration details.