Django Rest Framework – invalid credentials – can not Login via Postman
Django Rest Framework – invalid credentials – can not Login via Postman Question: I’m working on web app where you can register and login via Postman. Register is working fine. Here is serializer.py from rest_framework import serializers from django.contrib.auth.models import User from rest_framework_simplejwt.tokens import RefreshToken from django.contrib.auth import authenticate class RegisterSerializer(serializers.Serializer): first_name = serializers.CharField() last_name …