from rest_framework.views import APIView
from rest_framework_jwt.serializers import jwt_payload_handler
from rest_framework_jwt.serializers import jwt_encode_handler
from django.contrib import auth
class LoginAPIView(APIView):
def post(self,request,*args,**kwargs):
username = request.data.get('username')
password = request.data.get('password'
自定义jwt登录(手动签发jwt)
最新推荐文章于 2023-09-08 23:42:50 发布