Fix invalid token after credentials change (#4717)
- If sync fails we set authFailedAt - This information is displayed in the frontend in accounts with a `Sync Failed` pill - The user can reconnect his account in the dropdown menu - A new OAuth flow is triggered - The account is synced
This commit is contained in:
@ -11,5 +11,6 @@ export type ConnectedAccount = {
|
||||
refreshToken: string;
|
||||
accountOwnerId: string;
|
||||
lastSyncHistoryId: string;
|
||||
authFailedAt: Date | null;
|
||||
messageChannels: MessageChannelConnection;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user