Create a Maps identifier and private key
To communicate with the MapKit JS, you’ll use a Maps private key to sign one or more developer tokens.
First register a Maps identifier to identify your app. Register a Maps identifier for each app that uses MapKit JS. Next create and download a private key with MapKit JS enabled and associate it with the Maps identifier. You can associate two keys with each Maps identifier.
Then get the key identifier (kid) to create a JSON Web Token (JWT) that you’ll use to communicate with the capabilities you enabled.
If you suspect a private key is compromised, first create a new private key associated with the Maps identifier. Then, after transitioning to the new key, revoke the old private key.
Register a Maps identifier
In Certificates, Identifiers & Profiles, click Identifiers in the sidebar.
On the top left, click the add button (+), select Maps IDs, then click Continue.
Enter the app name as the description.
Enter a reverse-domain name style string for the identifier, then click Continue.
Review the information, then click Register.