siddharthvp/mwn

Authentication method for testing

Opened this issue · 0 comments

T272319 closed as resolved.

async function setup() {
// Switching to BotPassword authentication due to OAuth being unreliable in CI due to
// https://phabricator.wikimedia.org/T272319. Revert when that is resolved.
// if (!bot.usingOAuth) {
// return bot.getTokensAndSiteInfo.then(() => verifyTokenAndSiteInfo(bot));
// }
if (!bot.loggedIn) {
return bot.login().then(() => verifyTokenAndSiteInfo(bot));
}
}