The signature has expired. Only happening from inside app, not in stand alone demo

Description/Error
I’m getting “The signature has expired” error when trying to join or start a meeting from inside of my app. I have the exact same code inside of the sample-web-app, and everything is working as it should there, but for some reason it’s not working in my actual app. The really weird thing is that it WAS working just fine until this morning. Any help would be greatly appreciated.

    (function() {
  ZoomMtg.preLoadWasm();

  ZoomMtg.prepareJssdk();

  var API_KEY = <My_Key>

  var API_SECRET = <My_Secret>;

  document.getElementById("submit_form").addEventListener("click", function(e) {
    e.preventDefault();

    if (!this.form.checkValidity()) {
      return false;
    }

    const meetConfig = {
      apiKey: API_KEY,
      apiSecret: API_SECRET,
      meetingNumber: parseInt(document.getElementById("meeting_number").value),
      userName: document.getElementById("display_name").value,
      passWord: document.getElementById("password").value,
      leaveUrl: "my_website",
      role: startOrJoin
    };

    ZoomMtg.generateSignature({
      meetingNumber: meetConfig.meetingNumber,
      apiKey: meetConfig.apiKey,
      apiSecret: meetConfig.apiSecret,
      role: meetConfig.role,
      success(res) {
        console.log("signature", res.result);
        ZoomMtg.init({
          leaveUrl: "my_website",
          isSupportAV: true,
          success() {
            ZoomMtg.join({
              meetingNumber: meetConfig.meetingNumber,
              userName: meetConfig.userName,
              signature: res.result,
              apiKey: meetConfig.apiKey,
              userEmail: "email@gmail.com",
              passWord: meetConfig.passWord,
              success() {
                $("#nav-tool").hide();
                console.log("join meeting success");
              },
              error(res) {
                console.log(res);
              }
            });
          },
          error(res) {
            console.log(res);
          }
        });
      }
    });
  });
})();

Hey @alex.lloyd,

Can you try generating your signature via this method (server side method):

Possbile duplicate post:

Let me know if that fixes it!

Thanks,
Tommy

Hey Tommy,

Posting this more for visibility in case anyone else runs into this same issue. The issue was related to the time on one of the computers I was testing on. It was running two minutes fast. After correcting the PC time, the error went away.

1 Like

Thanks for sharing the solution @alex.lloyd!

I’m happy it is working now! :slight_smile:

-Tommy