'DRF SocialLoginVeiw Custom? or Create New View?
class KAKAOLogin(SocialLoginView):
adapter_class = KakaoOAuth2Adapter
client_class = OAuth2Client
serializer_class = SocialLoginSerializer
def get_serializer(self, *args, **kwargs):
serializer_class = self.get_serializer_class()
kwargs['context'] = self.get_serializer_context()
return serializer_class(*args, **kwargs)
now i using Django allauth SocialLoginView.
when Signin my app, i used Username (not email). but when i using SocialLoginView, enter username as "real name" or "user" to DB.
in this case, there is a way to modify the SocialLoginView described above and a way to create a new View.
Which is the better way? and if the way to fix the SocialLoginView is correct, which part should i fix it?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
