"Signature expired" error, signature is generated on server side

Description
I have generated a signature on the server-side and tried to use it inside ‘join’ method of a web SDK, but the response is always either a “The signature has expired.” or “The signature is invalid.”.

I am working in C# and provided example for C# isn’t valid. The change that I made is in calculating epoch time - DateTimeOffset.UtcNow.ToUnixTimeSeconds()

When I use provided example, I get “The signature is invalid.”, but with my change, it is expired.

Browser Console Error
type: ‘JOIN_MEETING_FAILED’, reason: ‘The signature has expired.’, errorCode: 3705

Which Web Meeting SDK version?
2.0.1

Hey @Serlok,

Thank you for reaching out to the Zoom Developer Forum. Please make sure that you are using the API Key and Secret from a JWT App on your account. If that doesn’t help, please submit a ticket through our Developer Support Center and include a link to this thread.

I’ll review the signature and advise from there.

Thanks,
Max