from django.shortcuts import renderfrom rest_framework import statusfrom rest_framework_simplejwt.tokens import RefreshTokenfrom rest_framework.decorators import api_view, permission_classesfrom rest_framework.response import Responsefrom django.contrib.auth import authenticatefrom.serializers import UserSerializer, UserprofileSerializerfrom rest_framework.permissions import IsAuthenticatedfrom ..