Skip to content

Commit

Permalink
Merge pull request #221 from TogetherCrew/fix/401-error-session-expired
Browse files Browse the repository at this point in the history
remove community from localstorage
  • Loading branch information
mehdi-torabiv authored Dec 13, 2023
2 parents 9961bb0 + 9b840b8 commit eecb8f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/axiosInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ axiosInstance.interceptors.response.use(
error.config.url?.endsWith('/auth/refresh-tokens')
) {
StorageService.removeLocalStorage('user');
StorageService.removeLocalStorage('analysis_state');
StorageService.removeLocalStorage('community');
toast.error('Session expired. Please log in again.', {
position: 'bottom-left',
autoClose: 5000,
Expand Down

0 comments on commit eecb8f5

Please sign in to comment.