Django - DRF Advanced Features
Given this Django REST Framework view snippet using JWTAuthentication, what will happen if the token is expired?
from rest_framework_simplejwt.authentication import JWTAuthentication
from rest_framework.views import APIView
from rest_framework.response import Response
class MyView(APIView):
authentication_classes = [JWTAuthentication()]
def get(self, request):
return Response({"user": str(request.user)})