mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 01:10:14 +01:00
🩹 fix: Wrap Attempt to Reconnect OAuth MCP Servers (#10172)
This commit is contained in:
parent
d41b07c0af
commit
589f119310
1 changed files with 9 additions and 5 deletions
|
|
@ -116,11 +116,15 @@ const refreshController = async (req, res) => {
|
||||||
const token = await setAuthTokens(userId, res, session);
|
const token = await setAuthTokens(userId, res, session);
|
||||||
|
|
||||||
// trigger OAuth MCP server reconnection asynchronously (best effort)
|
// trigger OAuth MCP server reconnection asynchronously (best effort)
|
||||||
void getOAuthReconnectionManager()
|
try {
|
||||||
.reconnectServers(userId)
|
void getOAuthReconnectionManager()
|
||||||
.catch((err) => {
|
.reconnectServers(userId)
|
||||||
logger.error('Error reconnecting OAuth MCP servers:', err);
|
.catch((err) => {
|
||||||
});
|
logger.error('[refreshController] Error reconnecting OAuth MCP servers:', err);
|
||||||
|
});
|
||||||
|
} catch (err) {
|
||||||
|
logger.warn(`[refreshController] Cannot attempt OAuth MCP servers reconnection:`, err);
|
||||||
|
}
|
||||||
|
|
||||||
res.status(200).send({ token, user });
|
res.status(200).send({ token, user });
|
||||||
} else if (req?.query?.retry) {
|
} else if (req?.query?.retry) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue