File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
agents-manage-api/src/routes Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @inkeep/agents-manage-api " : patch
3+ ---
4+
5+ fix oauth flow setting credential ids
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import {
1717 CredentialStoreType ,
1818 createCredentialReference ,
1919 dbResultToMcpTool ,
20+ generateIdFromName ,
2021 getCredentialReferenceWithTools ,
2122 getToolById ,
2223 type ServerConfig ,
@@ -277,7 +278,7 @@ app.openapi(
277278 try {
278279 await keychainStore . set ( credentialTokenKey , JSON . stringify ( tokens ) ) ;
279280 newCredentialData = {
280- id : mcpTool . name ,
281+ id : generateIdFromName ( mcpTool . name ) ,
281282 type : CredentialStoreType . keychain ,
282283 credentialStoreId : 'keychain-default' ,
283284 retrievalParams : {
@@ -293,7 +294,7 @@ app.openapi(
293294 const nangoStore = credentialStores . get ( 'nango-default' ) ;
294295 await nangoStore ?. set ( credentialTokenKey , JSON . stringify ( tokens ) ) ;
295296 newCredentialData = {
296- id : mcpTool . name ,
297+ id : generateIdFromName ( mcpTool . name ) ,
297298 type : CredentialStoreType . nango ,
298299 credentialStoreId : 'nango-default' ,
299300 retrievalParams : {
You can’t perform that action at this time.
0 commit comments