CloudKit Console: JSON Web Token Validator shows Unrecognizable claims found (Token Generated with Python)

Hello guys I am getting this error Unrecognizable claims found when trying to validate my JWT Token for push notifications.

I don't understand what it means. Can someone tell me how to resolve this issue?

I am using python, and using the time module to generate the epoch. I guess, this is where the issue is coming from, but I am not sure.

import time
epoch = time.time()

Thanks in advance.

Answered by theRealGoat in 758646022

The problem was because of "typ" header in JWT token. If you remove it, the error disappears.

Accepted Answer

The problem was because of "typ" header in JWT token. If you remove it, the error disappears.

CloudKit Console: JSON Web Token Validator shows Unrecognizable claims found (Token Generated with Python)
 
 
Q