diff options
Diffstat (limited to 'logic/minecraft/auth/AuthSession.h')
-rw-r--r-- | logic/minecraft/auth/AuthSession.h | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/logic/minecraft/auth/AuthSession.h b/logic/minecraft/auth/AuthSession.h deleted file mode 100644 index dede90a9..00000000 --- a/logic/minecraft/auth/AuthSession.h +++ /dev/null @@ -1,51 +0,0 @@ -#pragma once - -#include <QString> -#include <QMultiMap> -#include <memory> - -#include "multimc_logic_export.h" - -struct User -{ - QString id; - QMultiMap<QString, QString> properties; -}; - -struct MULTIMC_LOGIC_EXPORT AuthSession -{ - bool MakeOffline(QString offline_playername); - - QString serializeUserProperties(); - - enum Status - { - Undetermined, - RequiresPassword, - PlayableOffline, - PlayableOnline - } status = Undetermined; - - User u; - - // client token - QString client_token; - // account user name - QString username; - // combined session ID - QString session; - // volatile auth token - QString access_token; - // profile name - QString player_name; - // profile ID - QString uuid; - // 'legacy' or 'mojang', depending on account type - QString user_type; - // Did the auth server reply? - bool auth_server_online = false; - // Did the user request online mode? - bool wants_online = true; -}; - -typedef std::shared_ptr<AuthSession> AuthSessionPtr; |