From c53ee3a680fb29b8c21173f7ada9cf176fbc2ab5 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Sun, 16 Nov 2025 19:33:24 -0500 Subject: [PATCH] Add method to set authentication and change auth pointer to non-owning --- src/OverteClient.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/OverteClient.hpp b/src/OverteClient.hpp index cc8811c..f0d651c 100644 --- a/src/OverteClient.hpp +++ b/src/OverteClient.hpp @@ -73,6 +73,7 @@ public: bool login(const std::string& username, const std::string& password, const std::string& metaverseUrl = "https://mv.overte.org"); bool isAuthenticated() const; + void setAuth(OverteAuth* auth); // Set metaverse authentication // High-level connect that brings up key mixers. bool connect(); @@ -131,8 +132,8 @@ private: std::uint32_t m_sequenceNumber{0}; // Packet sequence number for NLPacket protocol std::uint16_t m_localID{0}; // Local ID assigned by domain server - // Authentication - std::unique_ptr m_auth; + // Authentication (non-owning pointer to auth object from main) + OverteAuth* m_auth{nullptr}; // Very small in-process world state for testing std::unordered_map m_entities;