How do I, in Python, decode the id_token that Apple sends during the signup process?
I have tried (from here https://stackoverflow.com/a/65909432/984003)
import jwt
decoded = jwt.decode(token, options={"verify_signature": False})
I get an error:
jwt.exceptions.InvalidAudienceError: Invalid audience
If I copy-paste the id_token into the jwt.io page https://jwt.io/ then it correctly decodes it into all its parts (header, payload with aud, sub, etc.) So the token itself is correct and I have all the info I need.