Skip to content

Commit

Permalink
fix(auth): fix incorrect call to get_scope (#668)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdjholder authored Nov 30, 2024
1 parent 54f9aa4 commit 990b2dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dj_rest_auth/registration/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 990b2dd

Please sign in to comment.