Open lukeburden opened 5 years ago
Hi, as a user of rest-auth, thanks for the contribution! This repo is not maintained anymore, so the development moved to dj-rest-auth. (reference: https://github.com/Tivix/django-rest-auth/issues/568) It may be best, if you move this PR there. (and upgrade to using dj_rest_auth)
new repo link: https://github.com/jazzband/dj-rest-auth (I'm not the upkeeper of that repo, it just makes sense for me to help you merge your PR)
Many Thanks, Barney
I needed to customize
SocialConnectView
, such that in its response it renders theSocialAccount
newly created or updated. Since this library persists the newSocialAccount
instance in the call toSocialLoginSerializer.validate
, this meant returning the social login in the validated attributes, such that a custom connect view could then render the new account usingSocialAccountSerializer
.This is a small change allowing that kind of flexibility.