Skip to content

Commit 990b2dd

Browse files
authored
fix(auth): fix incorrect call to get_scope (#668)
1 parent 54f9aa4 commit 990b2dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dj_rest_auth/registration/serializers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from allauth.account.adapter import get_adapter
1515
from allauth.account.utils import setup_user_email
1616
from allauth.socialaccount.helpers import complete_social_login
17-
from allauth.socialaccount.models import SocialAccount, EmailAddress
17+
from allauth.socialaccount.models import EmailAddress, SocialAccount
1818
from allauth.socialaccount.providers.base import AuthProcess
1919
from allauth.utils import get_username_max_length
2020
except ImportError:
@@ -119,7 +119,7 @@ def validate(self, attrs):
119119
)
120120

121121
provider = adapter.get_provider()
122-
scope = provider.get_scope(request)
122+
scope = provider.get_scope_from_request(request)
123123
client = self.client_class(
124124
request,
125125
app.client_id,

0 commit comments

Comments
 (0)