I am having some issues generating a valid JWT using PyJWT and following the steps outlined on the following pages:
https://developer.apple.com/documentation/appstoreconnectapi/creating_api_keys_for_app_store_connect_api
https://developer.apple.com/documentation/appstoreconnectapi/generating_tokens_for_api_requests
I have created an api key with a role I want to target for use, I set up the payload and headers as outlined in the second link to generate tokens for the requests, and then I sign that using the key I created from the first link. But on attempting to validate using jwt.io, I get the error "invalid signature". PyJWT gives me no errors decoding the generated token using the same key for verification. On also trying to run a test curl request I get back a 401 directing me to the second link I posted above.