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
import logging | |
from typing import Awaitable, Final, List, TYPE_CHECKING, TypedDict | |
from channels.auth import AuthMiddlewareStack | |
from channels.db import database_sync_to_async | |
from django.contrib.auth.models import AnonymousUser | |
from rest_framework.exceptions import AuthenticationFailed | |
from rest_framework_jwt.authentication import JSONWebTokenAuthentication | |
from rest_framework_jwt.blacklist.exceptions import MissingToken |