mirror of
https://github.com/Dan6erbond/sk-auth.git
synced 2025-06-03 01:17:44 +02:00
29 lines
748 B
JavaScript
29 lines
748 B
JavaScript
'use strict';
|
|
|
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
|
var providers_oauth2 = require('./oauth2.js');
|
|
require('../helpers.js');
|
|
require('./oauth2.base.js');
|
|
require('./base.js');
|
|
|
|
const defaultConfig = {
|
|
id: "spotify",
|
|
scope: "user-read-email",
|
|
accessTokenUrl: "https://accounts.spotify.com/api/token",
|
|
authorizationUrl: "https://accounts.spotify.com/authorize",
|
|
profileUrl: "https://api.spotify.com/v1/me",
|
|
contentType: "application/x-www-form-urlencoded"
|
|
};
|
|
class SpotifyOAuth2Provider extends providers_oauth2.OAuth2Provider {
|
|
constructor(config) {
|
|
super({
|
|
...defaultConfig,
|
|
...config
|
|
});
|
|
}
|
|
}
|
|
|
|
exports.SpotifyOAuth2Provider = SpotifyOAuth2Provider;
|
|
//# sourceMappingURL=spotify.js.map
|