feat: update token URL construction to use /server path instead of /api/v1
This commit is contained in:
@@ -399,9 +399,9 @@ bool OverteAuth::refreshAccessToken() {
|
|||||||
std::string tokenUrl = m_metaverseUrl;
|
std::string tokenUrl = m_metaverseUrl;
|
||||||
if (tokenUrl.back() == '/') tokenUrl.pop_back();
|
if (tokenUrl.back() == '/') tokenUrl.pop_back();
|
||||||
|
|
||||||
// Overte uses /api/v1/oauth/token endpoint
|
// Overte uses /server/oauth/token endpoint
|
||||||
if (tokenUrl.find("/api/v1") == std::string::npos) {
|
if (tokenUrl.find("/server") == std::string::npos) {
|
||||||
tokenUrl += "/api/v1";
|
tokenUrl += "/server";
|
||||||
}
|
}
|
||||||
tokenUrl += "/oauth/token";
|
tokenUrl += "/oauth/token";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user