diff --git a/social_core/backends/base.py b/social_core/backends/base.py index ba924e42e..8d3bd2b96 100644 --- a/social_core/backends/base.py +++ b/social_core/backends/base.py @@ -146,7 +146,7 @@ def extra_data(self, user, uid, response, details=None, *args, **kwargs): elif size == 1: name = alias = entry[0] discard = False - value = response.get(name) or details.get(name) or details.get(alias) + value = response.get(name, details.get(name, details.get(alias))) if discard and not value: continue data[alias] = value