Creating a Maps token
Generate your token to access MapKit services with proper authorization.
Overview
MapKit JS uses tokens to authenticate map initializations and other API requests. You create a Maps token through your Apple Developer Account, and then use the token to access MapKit JS services for displaying maps and points of interest on them.
Create the Maps token
To create a Maps token, follow these steps:
Go to Apple Developer Account and log in with your Apple Developer credentials.
Under Certificates, Identifiers & Profiles, click Services in the sidebar.
Under the Maps section, click Configure.
Click Tokens at the top of the Usage Dashboard.
At the top of the list, click Tokens (+).
In the Create Maps Token overlay, select the type of token under Token Type: Embed API, MapKit JS, Server API, or Web Snapshots
Under Restriction Type, select the restriction type: Domain or None.
If you select Domain, select the duration under Domain Token Validation Duration: No Expiration, 30 Days, 90 Days, 180 Days, or Other. If you select Other, specify the expiration date. Provide a comma-delimited list of domains under Websites.
Provide an optional description under Token Description.
Click Create to create the token.
The token appears in the list under Website domains. Click the copy icon to copy the token to your clipboard, or click the name of the token to view its details. Use your new token to access MapKit JS services through mapkit.
If you need to revoke your token, click Revoke. This invalidates the token and you can no longer use it with MapKit JS.