mirror of
https://github.com/20kaushik02/spotify-manager.git
synced 2025-12-06 05:34:06 +00:00
- moved to typescript - axios rate limitmodule is busted, removed for now, do something else for that - sequelize-typescript - dotenv, not dotenv-flow - removed playlist details route types for API ton of minor fixes and improvements
17 lines
562 B
TypeScript
17 lines
562 B
TypeScript
const accountsAPIURL = "https://accounts.spotify.com";
|
|
const baseAPIURL = "https://api.spotify.com/v1";
|
|
const sessionName = "spotify-manager";
|
|
const stateKey = "spotify_auth_state";
|
|
|
|
const requiredScopes = {
|
|
// Playlists
|
|
GetCollaborativePlaylists: "playlist-read-collaborative",
|
|
GetPrivatePlaylists: "playlist-read-private",
|
|
ModifyPrivatePlaylists: "playlist-modify-private",
|
|
ModifyPublicPlaylists: "playlist-modify-public",
|
|
// User
|
|
AccessUser: "user-read-private",
|
|
};
|
|
|
|
export { accountsAPIURL, baseAPIURL, sessionName, stateKey, requiredScopes };
|