Skip to content

DarrylBayliss/mapkit-jwt-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

MapkitJS Jwt Generator

Use this script to generate a JWT for MapkitJS.

Written using node.js.

Usage

  1. Create a Maps ID and private key as described here. Make sure to download the private key and store it in a safe place.

  2. Edit the options object in mapkitjs-jwt-generator.js so it contains the following information specific to your team and expiry date:

    • keyid
    • issuer
    • expiresIn
  3. From the terminal. Run this script, passing in the path to the private key.

node jwt-generator.js path/to/your/key.here
  1. The terminal will output the JWT. Copy it and use in your projects.

Acknowledgements

Adapted from a blog post by Jamie Tanna.

About

A simple script to generate jwt's for mapkitjs

Topics

Resources

Stars

Watchers

Forks