diff --git a/dj_rest_auth/registration/serializers.py b/dj_rest_auth/registration/serializers.py index db095cf..ea9abab 100644 --- a/dj_rest_auth/registration/serializers.py +++ b/dj_rest_auth/registration/serializers.py @@ -14,7 +14,7 @@ from allauth.account.adapter import get_adapter from allauth.account.utils import setup_user_email from allauth.socialaccount.helpers import complete_social_login - from allauth.socialaccount.models import SocialAccount, EmailAddress + from allauth.socialaccount.models import EmailAddress, SocialAccount from allauth.socialaccount.providers.base import AuthProcess from allauth.utils import get_username_max_length except ImportError: @@ -119,7 +119,7 @@ def validate(self, attrs): ) provider = adapter.get_provider() - scope = provider.get_scope(request) + scope = provider.get_scope_from_request(request) client = self.client_class( request, app.client_id,