I am not sure how to verify ID token from Metamask.
When I log in with Metamask and I call web3auth.authenticateUser() to obtain the ID token. The metamask window pops up and after signing it I get the ID token. Unfortunaly the JWT token is encoded using the different JKWS, i.e. the kid is different then the one provided at https://api.openlogin.com/jwks.
The JWT from metamask account has the following header:
I was already at this page several times yesterday but didn’t notice that the JWKS URL is different. I started with the implementation of the social login and I was just adapting it so I wasn’t copy-pasting the code provided there. I was just looking what are the differences, but missed that one.
Please consider adding some highlight or warning to emphasize that the URL is different in this use case.