mirror of
https://github.com/docmost/docmost.git
synced 2026-08-19 17:11:36 +10:00
feat(integrations): pass integrationId and workspaceId to provider.onConnected
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user