Skip to content

๐Ÿ” 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, and TokenVerify 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.