code: def pre_social_login(self, request, sociallogin):
          
  
          user = sociallogin.user
          # If the user hasn't been saved yet, it will be updated
          # later on in the sign-up flow.
          if not user.pk:
              return
  
          data = sociallogin.account.extra_data
          oidc = sociallogin.account.provider == 'helsinki_oidc'
          update_user(user, data, oidc)
docs: Update user based on token information.