Post

Replies

Boosts

Views

Activity

Reply to Apple Music API Developer Token JWT how-to
here's the node js script i use!bin $ cat generate_jwt.js "use strict"; const fs = require("fs"); const jwt = require("jsonwebtoken"); const privateKey = fs.readFileSync("AuthKey.p8").toString(); const teamId = "<teamid>"; const keyId = "<keyid>"; const jwtToken = jwt.sign({}, privateKey, { algorithm: "ES256", expiresIn: "180d", issuer: teamId, header: { alg: "ES256", kid: keyId } }); console.log(jwtToken);
Apr ’20