Add logs to debug user being disconnected randomly (#16037)
As per title, just adding logs to troubleshoot: https://github.com/twentyhq/twenty/issues/13103
This commit is contained in:
@@ -64,6 +64,8 @@ export const useApolloFactory = (options: Partial<Options<any>> = {}) => {
|
||||
setTokenPair(tokenPair);
|
||||
},
|
||||
onUnauthenticatedError: () => {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('onUnauthenticatedError, resetting state');
|
||||
setTokenPair(null);
|
||||
setCurrentUser(null);
|
||||
setCurrentWorkspaceMember(null);
|
||||
|
||||
Reference in New Issue
Block a user