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.

Accepted Reply

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

Replies

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