UNPKG

@kkbox/kkbox-javascript-developer-sdk

Version:

KKBOX Open API developer SDK for JavaScript. Use it to easily access KKBOX open API to get various metadata about KKBOX's tracks, albums, artists, playlists and stations.

1 lines 677 B
'use strict';Object.defineProperty(exports,'__esModule',{value:!0});var _ClientCredentialsFlow=require('./ClientCredentialsFlow'),_ClientCredentialsFlow2=_interopRequireDefault(_ClientCredentialsFlow),_TokenFetcher=require('./TokenFetcher'),_TokenFetcher2=_interopRequireDefault(_TokenFetcher);function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}var Auth=function a(b,c){_classCallCheck(this,a),this.tokenFetcher=new _TokenFetcher2.default(b,c),this.clientCredentialsFlow=new _ClientCredentialsFlow2.default(this.tokenFetcher)};exports.default=Auth;