Hello Django community,
I want to send back the email and the id of the user alongside the token when the user authenticate. I guess I must change the UserLoginApiView class but I don't know how to override the ObtainAuthToken class to do that.
Does anybody have suggestions it would be very helpful?
class UserLoginApiView(ObtainAuthToken):
"""Handle creating user authentication tokens"""
renderer_classes = api_settings.DEFAULT_RENDERER_CLASSES
This is my entire code on Github: https://github.com/KrestouferT/profiles-rest-api