I am trying to get the social authentication working wirh DRF

I am trying to use custom user model with dj_rest_auth.
here is the repo

Problem one:
The dj_rest_auth return the reponse as

{
    "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjIzNTY5MzM2LCJqdGkiOiI3YTk1ZjJhM2Y2ZTE0ZmVlOWQzMjEwMDZkMmJiZDk5MSIsInVzZXJfaWQiOjZ9.4yjIBxXhe5grxCe18huamgj1qP44A-zOkUHxZ61wXao",
    "refresh_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTYyMzU2OTMzNiwianRpIjoiODFlYzdkNjVjZjQzNDI4NjlhYjYzODI4MWUxNDQ4MjUiLCJ1c2VyX2lkIjo2fQ.1p3_Vw8OYoa64B93wHiEEiyKH3oT8M-3FGrivZmvWaA",
    "user": {
        "pk": 6,
        "email": "test@gmail.com"
    }
}

But I want to return all the necessary fields as the user object. How can I get that.

Problem two:

I can register the user by using the

path('api/auth/registration/', include('dj_rest_auth.registration.urls')),

but I can’t login with same credentials using

path('api/auth/', include('dj_rest_auth.urls')),

It gives me that


{
    "non_field_errors": [
        "Unable to log in with provided credentials."
    ]
}

*** Please also suggest me should I use dj_rest_auth or should I use other library to make it working with custom user model.