feat(integrations): pass integrationId and workspaceId to provider.onConnected

This commit is contained in:
Philipinho
2026-05-23 04:17:19 +01:00
parent 677b5f95e0
commit 05bd04d87b
2 changed files with 4 additions and 0 deletions
@@ -161,6 +161,8 @@ export class OAuthService {
if (provider.onConnected) {
await provider.onConnected({
integrationId,
workspaceId,
accessToken: tokenResponse.access_token,
refreshToken: tokenResponse.refresh_token,
providerUserId: '',
@@ -35,6 +35,8 @@ export type IntegrationDefinition = {
};
export type ConnectedEvent = {
integrationId: string;
workspaceId: string;
accessToken: string;
refreshToken?: string;
providerUserId: string;