mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-04-07 00:15:23 +02:00
fix: guard findToken with deleteTokens check in blocking OAuth path
Match the returnOnOAuth path's defense-in-depth: only enable client registration reuse when deleteTokens is also available, ensuring cleanup is possible if the reused client turns out to be stale.
This commit is contained in:
parent
2b09879faf
commit
b5231547bb
1 changed files with 1 additions and 1 deletions
|
|
@ -664,7 +664,7 @@ export class MCPConnectionFactory {
|
|||
this.serverConfig.oauth_headers ?? {},
|
||||
this.serverConfig.oauth,
|
||||
this.allowedDomains,
|
||||
this.tokenMethods?.findToken,
|
||||
this.tokenMethods?.deleteTokens ? this.tokenMethods.findToken : undefined,
|
||||
);
|
||||
|
||||
reusedStoredClient = flowMetadata.reusedStoredClient === true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue