Hi again - thought i'll post an update here based on my debugging.
the initial issue was that I was getting an error: "TypeError: must be _socket.socket, not socket"
I was trying some workarounds mentioned on some forums/blogs, and ended up with the certificate error..
I tried a different workaround now (seems similar to the earlier one) - this one monkey-patches an additional platform.platform() method..
59 def verify_token(id_token, request, audience=None,
60 certs_url=_GOOGLE_OAUTH2_CERTS_URL):
61 """Verifies an ID token and returns the decoded token.
62
63 Args:
64 id_token (Union[str, bytes]): The encoded token.
65 request (google.auth.transport.Request): The object used to make
66 HTTP requests.
67 audience (str): The audience that this token is intended for. If None
68 then the audience is not verified.
69 certs_url (str): The URL that specifies the certificates to use to
70 verify the token. This URL should return JSON in the format of
71 ``{'key id': 'x509 certificate'}``.
72
73 Returns:
74 Mapping[str, Any]: The decoded token.
75 """
76 certs = _fetch_certs(request, certs_url)
77
78 return jwt.decode(id_token, certs=certs, audience=audience)
do you know why the set of certs could be missing the one extracted from my firebase token?
thanks
Amit