Socket
Socket
Sign inDemoInstall

apple-music-token-node

Package Overview
Dependencies
16
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    apple-music-token-node

generate developer tokens for the apple music api in node


Version published
Maintainers
1
Created

Readme

Source

apple music token generator for node

use javascript to generate your developer tokens for use with the apple music api.

adapted from: https://github.com/pelauimagineering/apple-music-token-generator/blob/master/music_token.py

install

npm install -S apple-music-token-node

-or-

clone, download, or copy-paste this script somewhere in your node project.

usage

make sure you've placed the .p8 private key file you generated somewhere accessible. also, include or require your teamId and keyId from apple.

const path = require('path');

const getToken = require('./path-to-this-script');
const { teamId, keyId } = require('./path-to-your-config');

const certPath = path.resolve(__dirname, './path-to-your-p8-file');
const tokenData = getToken(certPath, teamId, keyId);

// tokenData == { token: 'generated_token', expiresAt: timeInSeconds }

Keywords

FAQs

Last updated on 03 Mar 2018

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