feat: ensure /api/v1 path is included in token URL for OAuth endpoint

This commit is contained in:
MayaTheShy
2025-11-09 19:04:34 -05:00
parent 46cfe943ed
commit b9f6e1f952

View File

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