aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/auth/flows/MSASilent.cpp
blob: 8ce43c1f796e4ee0392e7afa05489c59df039a64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "MSASilent.h"

MSASilent::MSASilent(AccountData* data, QObject* parent) : AuthContext(data, parent) {}

void MSASilent::executeTask() {
    m_requestsDone = 0;
    m_xboxProfileSucceeded = false;
    m_mcAuthSucceeded = false;

    initMSA();

    beginActivity(Katabasis::Activity::Refreshing);
    if(!m_oauth2->refresh()) {
        finishActivity();
    }
}