Skip to content

Commit

Permalink
scripts/dev-server: add fix for oauth per upstream wikimedia-gadgets#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mdaniels5757 committed Dec 17, 2024
1 parent df642d9 commit 0d27179
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/dev-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ server.listen(port, hostname, async () => {
}
try {
user = await mwn.init({
"apiUrl": "https://en.wikipedia.org/w/api.php",
"apiUrl": "https://commons.wikimedia.org/w/api.php",
"username": process.env.MW_USERNAME,
"password": process.env.MW_PASSWORD,
"oauth2Token": process.env.MW_OAUTH2_TOKEN,
"OAuth2AccessToken": process.env.MW_OAUTH2_TOKEN,
"silent": true
});
initTime = Date.now();
Expand Down

0 comments on commit 0d27179

Please sign in to comment.