From b9f6e1f9529fced42f6015c0bf9af820e3243842 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Sun, 9 Nov 2025 19:04:34 -0500 Subject: [PATCH] feat: ensure /api/v1 path is included in token URL for OAuth endpoint --- src/OverteAuth.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/OverteAuth.cpp b/src/OverteAuth.cpp index feb5558..a4d6e9f 100644 --- a/src/OverteAuth.cpp +++ b/src/OverteAuth.cpp @@ -398,6 +398,11 @@ bool OverteAuth::refreshAccessToken() { std::string tokenUrl = m_metaverseUrl; if (tokenUrl.back() == '/') tokenUrl.pop_back(); + + // Overte uses /api/v1/oauth/token endpoint + if (tokenUrl.find("/api/v1") == std::string::npos) { + tokenUrl += "/api/v1"; + } tokenUrl += "/oauth/token"; std::ostringstream postData;