Description
Hi, i have an error with the signature.
I use this function to generate it, but the error persist.
function generate_signature($api_key, $api_secret, $meeting_number, $role) {
$time = time() * 1000 - 30000;
$data = base64_encode($api_key . $meeting_number . $time . $role);
$hash = hash_hmac('sha256', $data, $api_secret, true);
$_sig = $api_key . "." . $meeting_number . "." . $time . "." . $role . "." . base64_encode($hash);
return rtrim(strtr(base64_encode($_sig), '+/', '-_'), '=');
}
If i change the time, for example 30000
with 100000
i have the same error, but if i change time() * 1000 + 30000
return me ‘The signature has expired.’, and its correct, with an error code 3705, how can i solve this problem?
Which Web Client SDK version?
I am using the 1.9.5
Screenshot