55a45c50cc
This PR is supposed to solve an issue with the syncrhonisation of messages, specifically with microsoft driver. Microsoft calls don't need access_Token so refreshing toekns was not implemented. However, microsoft rely on its client which calls its refresfh_token, and I might have missed some underlying dependency from microsoft impelemtation so I setup the access token process to refresh it Needs a talk before to be merged Fix : https://github.com/twentyhq/twenty/issues/10367 EDIT: it was a problem with microsoft making refreshtoken expire (contrarily to google) which needs to be handled.
12 lines
507 B
TypeScript
12 lines
507 B
TypeScript
import { Module } from '@nestjs/common';
|
|
|
|
import { GoogleAPIRefreshAccessTokenService } from 'src/modules/connected-account/refresh-tokens-manager/drivers/google/services/google-api-refresh-access-token.service';
|
|
import { MessagingCommonModule } from 'src/modules/messaging/common/messaging-common.module';
|
|
|
|
@Module({
|
|
imports: [MessagingCommonModule],
|
|
providers: [GoogleAPIRefreshAccessTokenService],
|
|
exports: [GoogleAPIRefreshAccessTokenService],
|
|
})
|
|
export class GoogleAPIRefreshAccessTokenModule {}
|