From 29381607b01931f3857e10abedc5cfb8830e28cc Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Sun, 16 Nov 2025 19:34:07 -0500 Subject: [PATCH] Pass authentication to OverteClient if authenticated with metaverse --- src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index f91c2fa..471d65c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -180,6 +180,12 @@ int main(int argc, char** argv) { std::cout << "[main] Connecting to Overte domain: " << overteUrl << std::endl; OverteClient overte(overteUrl); + + // Pass authentication to OverteClient if we authenticated with metaverse + if (useAuth && auth.isAuthenticated()) { + overte.setAuth(&auth); + } + // Overte is optional; warn if unreachable but continue in offline mode. if (!overte.connect()) { std::cerr << "[main] Overte domain unreachable; running in offline mode." << std::endl;