Annual upgrade 3.8.5 to 4.0.7 and now invalid signature

I upgrade Meeting-SDK Web Client view once a year and today began the upgrade from 3.8.5 to 4.0.7.

I have some programming knowledge but only a limited amount. For each annual update we would get our host to run $ git clone GitHub - zoom/meetingsdk-web-sample: Zoom Meeting SDK web sample and then amend index.js so that it included the ID and Secret (initially it was API_KEY, then SDK_KEY and last year CLIENT_ID)

index.js then contained:

  var signature = ZoomMtg.generateSDKSignature({
    meetingNumber: meetingConfig.mn,
    sdkKey: CLIENT_ID,
    sdkSecret: CLIENT_SECRET,
    role: meetingConfig.role,
    success: function (res) {
      console.log(res);
      meetingConfig.signature = res;
      meetingConfig.sdkKey = CLIENT_ID;
      var joinUrl = "/meeting.html?" + testTool.serialize(meetingConfig);
      console.log(joinUrl);
      window.open(joinUrl, "_blank");
    },
  });

but since version 3.12.0 generateSDKSignature has been removed/deprecated.

Is there some alternative code I can use in index.js to generate the signature?

As a quick update, I have now found GitHub - zoom/meetingsdk-auth-endpoint-sample: Generate a Meeting SDK JWT to join Zoom meetings and webinars with the Meeting SDK. and I am hoping that, once it is installed and .env edited I will be able to replace the above code with the something else although not sure what it will look like yet. Fingers crossed.