fix: invalidate app connections upon reconnecting a connection

This commit is contained in:
Rıdvan Akca
2024-04-12 13:43:51 +02:00
parent f482c2422c
commit bece5c6488
2 changed files with 14 additions and 4 deletions

View File

@@ -17,13 +17,13 @@ export const APP_ADD_CONNECTION = (appKey, shared = false) =>
`/app/${appKey}/connections/add?shared=${shared}`;
export const APP_ADD_CONNECTION_WITH_AUTH_CLIENT_ID = (
appKey,
appAuthClientId
appAuthClientId,
) => `/app/${appKey}/connections/add?appAuthClientId=${appAuthClientId}`;
export const APP_ADD_CONNECTION_PATTERN = '/app/:appKey/connections/add';
export const APP_RECONNECT_CONNECTION = (
appKey,
connectionId,
appAuthClientId
appAuthClientId,
) => {
const path = `/app/${appKey}/connections/${connectionId}/reconnect`;
if (appAuthClientId) {