MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / invalidateClientToken

Method invalidateClientToken

launcher/minecraft/auth/AccountData.cpp:459–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457}
458
459void AccountData::invalidateClientToken() {
460 if(type != AccountType::Mojang && type != AccountType::AuthlibInjector) {
461 return;
462 }
463 yggdrasilToken.extra["clientToken"] = QUuid::createUuid().toString().remove(QRegularExpression("[{-}]"));
464}
465
466QString AccountData::profileId() const {
467 return minecraftProfile.id;

Callers

nothing calls this directly

Calls 2

removeMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected