[Answered ]-Django Rest Framework Simple JWT getting anonymous user

1👍

use permission classes in your views

from rest_framework.permissions import IsAuthenticated
class TestView(ListAPIView):
    permission_classes = [IsAuthenticated]

Leave a comment