microsoft sync failed (#10381)
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.
This commit is contained in:
3
packages/twenty-shared/src/utils/assertUnreachable.ts
Normal file
3
packages/twenty-shared/src/utils/assertUnreachable.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export const assertUnreachable = (x: never, errorMessage?: string): never => {
|
||||
throw new Error(errorMessage ?? "Didn't expect to get here.");
|
||||
};
|
||||
@ -1,5 +1,7 @@
|
||||
export * from './assertUnreachable';
|
||||
export * from './fieldMetadata';
|
||||
export * from './image';
|
||||
export * from './strings';
|
||||
export * from './url';
|
||||
export * from './validation';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user