diff --git a/src/OverteAuth.cpp b/src/OverteAuth.cpp index 9c35b98..0bb0943 100644 --- a/src/OverteAuth.cpp +++ b/src/OverteAuth.cpp @@ -329,9 +329,9 @@ bool OverteAuth::login(const std::string& username, const std::string& password, 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"; + // Overte uses /server/oauth/token endpoint + if (tokenUrl.find("/server") == std::string::npos) { + tokenUrl += "/server"; } tokenUrl += "/oauth/token";