Hello,
I'm truing to use Maps Server API. I have:
Created Maps Identifier and a Private Key
Used token maker to create a JWT token. I also tried creating JWT token manually.
After generating a JWT token I used Maps Server API Playground with my JWT and I can successfully use Maps Server API.
The problem is that when I try to use my JWT in either JS code, Postman or curl request, I get "Invalid Token" error. Which is very strange, because I doubled checked everything dozen of times and JWT works in Apple's playground tool.
Here's a request example:
curl -si -H"Authorization: Bearer <jwt token>" "https://maps-api.apple.com/v1/geocode?q=Apple%20Park%2C%20Cupertino%2C%20CA"
My token is valid for 1 year
When generating JWT token I left "Domain restriction" field empty.