diff --git a/src/asymmetric_jwt_auth/middleware.py b/src/asymmetric_jwt_auth/middleware.py
index <HASH>..<HASH> 100644
--- a/src/asymmetric_jwt_auth/middleware.py
+++ b/src/asymmetric_jwt_auth/middleware.py
@@ -1,5 +1,6 @@
 from django.contrib.auth import get_user_model
 from django.core.cache import cache
+from django.utils.deprecation import MiddlewareMixin
 from asymmetric_jwt_auth import AUTH_METHOD
 import asymmetric_jwt_auth.token as token
 import logging
@@ -7,7 +8,7 @@ import logging
 logger = logging.getLogger(__name__)
 
 
-class JWTAuthMiddleware(object):
+class JWTAuthMiddleware(MiddlewareMixin):
     """Django middleware class for authenticating users using JWT Authentication headers"""
 
     def create_nonce_key(self, username, iat):
Fix middleware in Django <I>