code: def get_payload_data(self, token, key):
          
          if self.get_settings('OIDC_ALLOW_UNSECURED_JWT', False):
              header, payload_data, signature = token.split(b'.')
              header = json.loads(smart_text(b64decode(header)))
  
              # If config allows unsecured JWTs check the header and return the decoded payload
              if 'alg' in header and header['alg'] == 'none':
                  return b64decode(payload_data)
  
          # By default fallback to verify JWT signatures
          return self._verify_jws(token, key)
docs: Helper method to get the payload of the JWT token.