Vue js Django Rest Framework With JWT user authentication (getting anonymous user ) simplejwt
问题 I got the token.But it is not possible to get data this user. which URL to get data . token work. //simplejwt simplejwt class CustomerRetrieveView(generics.RetrieveAPIView): queryset = Customer.objects.all() permission_classes=(IsAuthenticated,) def get(self,request): ???here correct????? queryset=Customer.objects.get(id=request.user) serializer=CustomerSerializer(queryset) return Response(serializer.data) url ??here correct????? path('customers/????<int:id>???', views.CustomerRetrieveView.as