Skip to content

Commit

Permalink
fix: deezer.js accessing unexistant field
Browse files Browse the repository at this point in the history
This commit fixes the issue where "deezer.js" code would try to access `apiToken` field that doesn't exist.
  • Loading branch information
ThePedroo committed May 17, 2024
1 parent 9ecd477 commit 257a116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sources/deezer.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async function init() {

debugLog('deezer', 5, { type: 1, message: 'Fetching user data...' })

const res = await makeRequest(`https://www.deezer.com/ajax/gw-light.php?method=deezer.getUserData&input=3&api_version=1.0&api_token=${config.search.sources.deezer.apiToken}`, {
const res = await makeRequest(`https://www.deezer.com/ajax/gw-light.php?method=deezer.getUserData&input=3&api_version=1.0&api_token=${crypto.randomBytes(16).toString('hex')}`, {
method: 'GET',
getCookies: true
})
Expand Down

0 comments on commit 257a116

Please sign in to comment.