I just installed this yesterday and it worked fine. But today it starts throw error "Provide a properly configured and signed bearer token, and make sure that it has not expired. Learn more about Generating Tokens for API Requests https://developer.apple.com/go/?id=api-generating-tokens".
At the end I found out it maybe caused by the expiration time. When I changed it from 20 to 15, it works again:
exp = int(time.mktime((self.token_gen_date + timedelta(minutes=15)).timetuple()))
On documentation here: https://developer.apple.com/documentation/appstoreconnectapi/generating_tokens_for_api_requests it says Tokens that expire more than 20 minutes into the future are not valid so I guess when do the calculation with 20 mins it may round up to exceed 20 mins?
Updated: after I sync the time on my PC, it works again with 20mins.