DeviceCheck 401 Unable to verify authorization token

I have built a server app to generate a JWT using apple KEYID, TEAMID and P8 private key file. I am submitting the JWT with required payload to https://api.development.devicecheck.apple.com/v1/query_two_bits. However Apple's development devicecheck server always returns http response 401 - Unable to verify authorization token.

Is there some other request I can send to Apple's development devicecheck server that could give me more detail why error 401 was being returned?

Replies

I am getting the same response. Did you fix it?