Pass authentication to OverteClient if authenticated with metaverse

This commit is contained in:
MayaTheShy
2025-11-16 19:34:07 -05:00
parent ccdafcf44e
commit 29381607b0

View File

@@ -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;