This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""General web socket middlewares | |
""" | |
from channels.auth import AuthMiddlewareStack | |
from channels.db import database_sync_to_async | |
from channels.middleware import BaseMiddleware | |
from django.contrib.auth.models import AnonymousUser | |
from rest_framework_simplejwt.authentication import JWTTokenUserAuthentication | |
from rest_framework_simplejwt.state import User |