code: def oidc_to_user_data(payload):
      
      payload = payload.copy()
  
      field_map = {
          'given_name': 'first_name',
          'family_name': 'last_name',
          'email': 'email',
      }
      ret = {}
      for token_attr, user_attr in field_map.items():
          if token_attr not in payload:
              continue
          ret[user_attr] = payload.pop(token_attr)
      ret.update(payload)
  
      return ret
docs: Map OIDC claims to Django user fields.