Map kit js | JWT problem

I have some problem, when I try call mapkit.init() and pass my JWT I got 401 error.

I'm sure that I generate token right.
My token:
eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Im1hcHMubGlmdG1lLnBybyJ9.eyJpc3MiOiI1SzJNTFk4NDhIIiwiaWF0IjoxNjEwMjIzNzk3LCJleHAiOjE2NzcxODM3OTd9.KzEaQDXw6yH-b36BpG_3J8vyoxHhn9WGbjkqlKC1YbdZT6jdbyvoa5qZ0pou9Fl16147NWDRAwHzJNGOvBZTCg

What I should to do for fix it?

Error messages:

cdn.apple-mapkit.com/ma/bootstrap
apiVersion=2&mkjsVersion=5.54.0&poi=1 401

[MapKit] Initialization failed because the authorization token is invalid.

You can navigate to jwt.io which has a Debugger where you can paste & validate your token. Paste only test tokens as a security measure.

The kid in your token generation scheme should be the 10 character key identifier that matches your private key. For example, if your MapKit JS Private Key File is B22B2BBB22.p8, then your MapKit JS Key ID is B22B2BBB22. Use that as your kid.

From

A 10-character key identifier (kid) key, obtained from your Apple Developer account.

Response from jwt.io with your key that you pasted above.

{
  "alg": "ES256",
  "typ": "JWT",
  "kid": "maps.liftme.pro"
}
Map kit js | JWT problem
 
 
Q