285188ea53
This makes the tokens not expire when such errors happen. Only applies to MSA, not the XBox and Mojang steps afterwards. Further testing and improvements are still needed.
23 lines
508 B
C++
23 lines
508 B
C++
#include "MSAInteractive.h"
|
|
|
|
MSAInteractive::MSAInteractive(
|
|
AccountData* data,
|
|
QObject* parent
|
|
) : AuthContext(data, parent) {}
|
|
|
|
void MSAInteractive::executeTask() {
|
|
m_requestsDone = 0;
|
|
m_xboxProfileSucceeded = false;
|
|
m_mcAuthSucceeded = false;
|
|
|
|
initMSA();
|
|
|
|
QVariantMap extraOpts;
|
|
extraOpts["prompt"] = "select_account";
|
|
m_oauth2->setExtraRequestParams(extraOpts);
|
|
|
|
beginActivity(Katabasis::Activity::LoggingIn);
|
|
*m_data = AccountData();
|
|
m_oauth2->login();
|
|
}
|