fix: remove hardcoded api keys (ups)

This commit is contained in:
Mateusz Pstrucha committed 2021-09-29 00:38:57 +02:00
1 parent 353a88bc9c
commit bc5c9aa29a
1 file changed
+5 -2
+5 -2
View File
@@ -1,10 +1,13 @@
import dotenv from 'dotenv'
import SpotifyWebApi from 'spotify-web-api-node'
import Track from './Track.js'
dotenv.config()
const spotify = new SpotifyWebApi({
clientId: 'c9cd1ede71914999a75fbea35313c1a4',
clientSecret: '13858e98eb264cf78251072f2ea5e96d',
clientId: process.env.spotifyClientId,
clientSecret: process.env.spotifyClientSecret,
})
function grantToken() {