UNPKG

spotify-now

Version:
15 lines 708 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.login = void 0; const tslib_1 = require("tslib"); const chalk_1 = (0, tslib_1.__importDefault)(require("chalk")); const authGrant_1 = require("../libs/spotifyApi/authGrant"); function login(clientId, clientSecret) { return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () { const url = yield (0, authGrant_1.getAuthUrl)(clientId, clientSecret); console.log(chalk_1.default.yellow("Follow the link below and login to your Spotify account:\n"), url); yield (0, authGrant_1.getToken)(clientId, clientSecret); }); } exports.login = login; //# sourceMappingURL=login.js.map