1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-10 05:10:17 +00:00

Update getSpotifyKey.js

This commit is contained in:
MatteZ02 2020-06-08 14:09:52 +03:00
parent 5bf311de45
commit 72ff4cad56

View File

@ -1,8 +1,8 @@
module.exports = async function (client) { module.exports = async function (client) {
var request = require("request"); const request = require("request");
var refresh_token = client.config.spotify_refresh_token; const refresh_token = client.config.spotify_refresh_token;
var authOptions = { const authOptions = {
url: "https://accounts.spotify.com/api/token", url: "https://accounts.spotify.com/api/token",
headers: { headers: {
Authorization: "Basic " + Authorization: "Basic " +