Join meeting SDK - signature expired

Good morning,

We have a problem when trying to join meetings with Meeting SDK JWT.

The meeting was created using the “Server-to-Server OAuth” app as authentication.

This is the code:

ZoomMtg.join({
signature: signature_generate,
meetingNumber: meetConfig.meetingNumber,
userName: meetConfig.userName,
sdkKey: “Client ID from Meeting SDK”,
userEmail: meetConfig.userEmail,
passWord: meetConfig.password,
error(res) {
console.log(res)
}
})

signature_generate →

I used the app meeting sdk client id to value the sdkKey field.

To generate the signature I used the client id and the secret id of the app meeting sdk.

Did I use the correct data even though I created the meeting using the Server-to-Server OAuth app?

Thanks for the support!

Giulio

@giulio.cristiani , I’ve replied inline.

I used the app meeting sdk client id to value the sdkKey field. ← this is correct

To generate the signature I used the client id and the secret id of the app meeting sdk. ← this is correct

Did I use the correct data even though I created the meeting using the Server-to-Server OAuth app ← yes you have used the correct data

Did you regenerate the key with a new expiry date? It is not recommended to keep reusing the same JWT Token as it will eventually expire.

Good morning,

thanks for the suggestion, now the signature looks correct but I always get this message:
Timed out to join the meeting
Your connection has timed out and you cannot join the meeting. Check network connectivity and try again.

Can yuo help me?

Thanks for the support!

Giulio

@giulio.cristiani , what version of the SDK are you using right now? I’m assuming this is Meeting SDK for Web?

Good morning, we are using version 2.14.0 of the Meeting SDK for Web

@giulio.cristiani ,

Are you joining meeting which are external to your account?
Are there any specific error messages in the browser console F12?

please tag me in your response to get my attention.

@chunsiong.zoom ,

No, the meeting was created with the same account.
Attached is the screeshot with the browser console where there are no errors.

Until last week I was able to join


this meeting, the next day it started giving this error.

Thanks for the support.

Giulio

@giulio.cristiani

Did you generate a new JWT token everytime before joining / starting a meeting?

@chunsiong.zoom
yes, I generate a new token everytime before joining / starting the meeting

@giulio.cristiani ,

For the meeting which you are joining, is it hosted by another user in the same account, or is it by another user in another account?

@chunsiong.zoom
same user and same account.
I created the meeting with my user using OAuth Server-to-Server authentication credentials and started the meeting with the same user with Meeting SDK authentication credentials

i’ll pm you @giulio.cristiani

solved.

The signature was missing "typ" : "JWT" in header

image