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

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "apple-music-token-node",
"version": "1.0.0",
"version": "1.0.1",
"description": "generate developer tokens for the apple music api in node",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -5,13 +5,18 @@ ## apple music token generator for node

adapted from: https://github.com/pelauimagineering/apple-music-token-generator/blob/master/music_token.py
*adapted from: https://github.com/pelauimagineering/apple-music-token-generator/blob/master/music_token.py*
### usage
### install
```
npm install -S apple-music-token-node
```
-or-
clone, download, or copy-paste this script somewhere in your node project.
place the .p8 private key file you generated somewhere accessible.
### usage
include or require your `teamId` and `keyId` from apple.
make sure you've placed the .p8 private key file you generated somewhere accessible. also, include or require your `teamId` and `keyId` from apple.
then just:

@@ -28,2 +33,2 @@ ```

// tokenData == { token: 'generated_token', expiresAt: timeInSeconds }
```
```
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