response = urllib.request.urlopen(certificate_url)
certs = response.read()
certs = json.loads(certs)
user = jwt.decode(idtoken, certs, algorithms='RS256', audience=target_audience)
print(user)
How to decode Firebase JWT token in Python