Files
PrismLauncher/launcher/minecraft/auth/AuthSession.h
Octol1ttle a9f3be9f45 refactor: LaunchController
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
2026-02-18 00:19:30 +05:00

31 lines
650 B
C++

#pragma once
#include <QString>
#include <memory>
#include "LaunchMode.h"
class MinecraftAccount;
struct AuthSession {
bool MakeOffline(QString offline_playername);
void MakeDemo(QString name, QString uuid);
QString serializeUserProperties();
// combined session ID
QString session;
// volatile auth token
QString access_token;
// profile name
QString player_name;
// profile ID
QString uuid;
// 'msa' or 'offline', depending on account type
QString user_type;
// the actual launch mode for this session
LaunchMode launchMode;
};
using AuthSessionPtr = std::shared_ptr<AuthSession>;