spotify-now
Version:
spotify, rgb and bob.
33 lines • 1.17 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAuthUrl = void 0;
const tslib_1 = require("tslib");
const getSpotifyApi_1 = require("./getSpotifyApi");
const scopeList = [
// "ugc-image-upload",
// "playlist-modify-private",
// "playlist-read-private",
// "playlist-modify-public",
// "playlist-read-collaborative",
// "user-read-private",
// "user-read-email",
// "user-read-playback-state",
// "user-modify-playback-state",
"user-read-currently-playing",
// "user-library-modify",
// "user-library-read",
// "user-read-playback-position",
// "user-read-recently-played",
// "user-top-read",
// "app-remote-control",
// "user-follow-modify",
// "user-follow-read",
];
function getAuthUrl(clientId, clientSecret) {
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
const spotifyApi = yield (0, getSpotifyApi_1.getSpotifyApi)(clientId, clientSecret);
return spotifyApi.createAuthorizeURL(scopeList, "");
});
}
exports.getAuthUrl = getAuthUrl;
//# sourceMappingURL=getAuthUrl.js.map