I modified errors format in serializer authentication process.
from using serializers exception (serializers.ValidationError(msg)) to using rest_framework exception (exceptions.AuthenticationFailed(msg))
{"detail": "msg error"}
it will give an error message that more readable than
{"non_field_errros":["msg error"]}
I modified errors format in serializer authentication process. from using serializers exception (
serializers.ValidationError(msg)
) to using rest_framework exception (exceptions.AuthenticationFailed(msg)
){"detail": "msg error"}
it will give an error message that more readable than{"non_field_errros":["msg error"]}