Quickly and easily generate a token to use with MusicKit JS for the web.
- Your Apple Developer Team ID
- An Apple Music Key
- A Key Id
If you need help finding these check out this article https://help.apple.com/developer-account/#/devce5522674
- Download or clone the repo.
- In your terminal cd to
apple-token-generator/
- Run
bundle install
(if this fails you may need to rungem install bundler
first) - Run the generator
format:
./bin/apple-token-generator music PATH_TO_PRIVATE_KEY KEY_ID TEAM_ID
example:
./bin/apple-token-generator music ./AuthKey.p8 78938VHWKM 4R3M6JUFMD