This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs') | |
const jose = require('jose') | |
const jwt = require('jsonwebtoken') | |
let privateKey = fs.readFileSync('./AuthKey_949A39XT34.p8', 'utf8'); | |
let credentials = { | |
/* obtained by creating a key by linking existing music kit identifier | |
create this in developer.apple.com -> Account -> Program resources -> Keys, | |
you must first create identifier because you create a key with existing identifier. |