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.
4 lines
147 B
TypeScript
4 lines
147 B
TypeScript
export const assertUnreachable = (x: never, errorMessage?: string): never => {
|
|
throw new Error(errorMessage ?? "Didn't expect to get here.");
|
|
};
|