Signature is invalid, zoom webSDK v2.11.0, using SDK APP

Description
I’m using WebMeetingSDK v2.11.0 and generating signature and passing SDK ClientId and Client Secret to generate signature getting issue - ''Signature is invalid.

Error?
errorCode:3712
errorMessage:“Signature is invalid.”
method: “join”
result:“Invalid signature.”
status: false.

I’m haveing - zoomus/websdk": “^2.11.0”

image

can you share your generated JWT token?

  1. Below signature is crated by using method “generateSDKSignature”, but getting error, Signature is invalid.

“eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZGtLZXkiOiJTUWF5MjBUaGVjOUJUMWZKaDN4USIsImlhdCI6MTY4NDQ4MTU4MCwiZXhwIjoxNjg0NDg4NzgwLCJtbiI6IjM0MDk1NDM5NDgiLCJyb2xlIjoiMSJ9.unsf1JA0T6zu1g6eTLRP_DMvE8LWBiIi2I5cZ321Smo”

  1. Below signature is crated by using method “.Net C# method”, but getting error, The signature has expired., Reference URL: Referred Link: https://developers.zoom.us/docs/meeting-sdk/auth/

“eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZGtLZXkiOiJTUWF5MjBUaGVjOUJUMWZKaDN4USIsImFwcEtleSI6IlNRYXkyMFRoZWM5QlQxZkpoM3hRIiwibW4iOiIzNDA5NTQzOTQ4Iiwicm9sZSI6MSwiaWF0IjoxNjg0NDgyMjA2LCJleHAiOjE2ODQ2NTUwMDYsInRva2VuRXhwIjoxNjg0NjU1MDA2fQ.BIr5OsZWaYGiOqeLuRunsy96H4s4U2ttnosIScpBpA8”

Hi @vishwajeetbhosale ,

Important: make sure your role is entered as integer instead of string
“role”: “1”
“role”: 1 ← do this instead

Another thing which might be good practice, but might not affect the validity of the JWT token
include tokenExp as well.

Let me know if it works (using integer for role instead of string)

@chunsiong.tan

Role is in string format for ZoomMtg.generateSDKSignature(), so not able to add as number/integer.

@chunsiong.zoom

Below image is for second signature, using the integer value as role

image

Did it work for you?

@chunsiong.tan
Not at all worked, Can you check this ASAP deprecation is also there

perhaps the similar problem - error “3712” can also mean “signature not yet valid”

and the same solution

  • “iat” should be 30 seconds in the past