value of 'kid' has invalid format

We’re also interested in this thread as we’re getting the ‘value of ‘kid’ has invalid format’ error too when trying to integrate our realm with AWS Cognito JWT tokens. It looks like people have done this before (though online doco and examples are limited) but we can’t get past this error. The rest of our settings look okay and the key ID in the token matches the JWKS exactly. One thing we did notice reading the spec is that the Cognito JWT headers don’t include the “typ=JWT” field which is listed as required by Mongo for auth. I’m not sure if that’s related though again there seems to be a precedent for this working.

This is a big factor on whether we shift our backend to MongoDB as we want to stay serverless as much as possible and identity integration is important to us. If anyone has any thoughts or example Cognito configuration they could share that would be much appreciated.