When using either dynamically created JWT tokens, or even hard-copying the one provided from the App Marketplace for my app, my API requests always fail due to an ‘invalid access token’

$this->headers = [
‘Authorization’ => "Bearer ".$this->jwt,
‘Content-Type’ => ‘application/json’,
‘Accept’ => ‘application/json’,
$payload = [
‘iss’ => $key,
‘exp’ => strtotime(‘+5 minutes’),
return \Firebase\JWT\JWT::encode($payload, $secret, ‘HS256’);

Am trying to connect from a project I am writing on localhost

Hi @souissisiwar11 , I cannot reproduce this. Please try generating through our Postman public workspace and making a request to one of the endpoints in the workspace and let me know if it works. If it does, there may be an issue with your code.