Signature Is InValid v2.7.0

I was working with SDK with JWT APP Credits and it was working well,
When I Installed the latest version and Put SDK APP Credits
it gives me Signature is invalid…

I’m working on Laravel 9

that’s my signature generator code Which I get from Documentaion

public function generate_signature ( Request $request ){
//Set the timezone to UTC
date_default_timezone_set(“UTC”);
$time = time() * 1000 - 30000;//time in milliseconds (or close enough)
$data = base64_encode($request->api_key . $request->meeting_number . $time . $request->role);
$hash = hash_hmac(‘sha256’, $data, $request->sdk_secret, true);
$_sig = $request->sdk_key . “.” . $request->meeting_number . “.” . $time . “.” . $request->role . “.” . base64_encode($hash);
//return signature, url safe base64 encoded
return rtrim(strtr(base64_encode($sig), ‘+/’, '-'), ‘=’);
}

u should generate sdk jwt signature, i use php-jwt firebase/php-jwt: PHP package for JWT (github.com) for generating signature, may this help