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
from rest_framework_simplejwt.tokens import UntypedToken | |
from django.conf import settings | |
from jwt import decode as jwt_decode | |
from urllib.parse import parse_qs | |
from django.contrib.auth.models import User | |
from channels.db import database_sync_to_async | |
@database_sync_to_async | |
def get_user(user_id): |