{"repo":"kchung/mapkitjs-token","free":true,"listed":false,"github":"https://github.com/kchung/mapkitjs-token","clone":"git clone https://github.com/kchung/mapkitjs-token.git","description":"Command-line MapKit JS token generator","language":"TypeScript","stars":10,"topics":["mapkit-js","mapkit","apple","token","jwt"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"MapKit JS Token Generator Generate long-lived tokens from the CLI that can be used with the MapKit JS's authorizationCallback . Setting authorizationCallback to a function that returns a token as a string is useful for local development, or if you want to use a long-lived token with MapKit JS. Sign a token locally on your development machine with an expiration, then use the token directly in your code. Features - Verifies if the token works against MapKit servers Usage Since we're dealing with private keys, you may feel safer compiling this tool yourself and running it locally (see Compiling). Options See the MapKit JS documentation for the full explanation of these options. Examples Generate a token with the default expiration (1 year) and verify the token works: Generate a token to stdout , verify, and copy directly to clipboard (macOS via pbcopy ): Generate a token with a 8 year expiration, add an origin, and skip verification: Compiling","default_branch":null,"files":null,"tree":[],"storefront":"/r/kchung","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kchung/mapkitjs-token/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}