Socket
Socket
Sign inDemoInstall

apple-music-jwt

Package Overview
Dependencies
73
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    apple-music-jwt

A library for creating JWTs for accessing the Apple Music API.


Version published
Weekly downloads
19
increased by90%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

0.2.0

Breaking

  • Update JSONWebToken and Yargs.

Improvements

  • None

Fixes

  • None

Readme

Source

apple-music-jwt

A µ-library and command line tool for generating Apple Music API developer tokens.

version status coverage dependencies devDependencies

Installation

npm install apple-music-jwt

Usage

Library

var jwt = require('apple-music-jwt');

var keyID = '<music-key-id>';
var teamID = '<dev_team_id>';
var secret = '<base64_encoded_secret>'; // can also be a `Buffer` loaded from a file

var token = jwt.generate(keyID, teamID, secret);

CLI

Your key ID, team ID, and secret can be provided via CLI arguments. Any missing information will be prompted for. Your private key can be provided either by a path to a file (-f or --file) or by base 64 encoded string (-s or --secret).

apple-music-jwt -k '<key-id>' -t '<team-id>' -f '<path-to-private-key>'

Tests

npm test

License

MIT

Keywords

FAQs

Last updated on 06 Dec 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc