whaticket-community icon indicating copy to clipboard operation
whaticket-community copied to clipboard

Session

Open gazibastug opened this issue 4 years ago • 8 comments

1.I entered the program login 2.Copy link https://whaticket.economicros.com.br/tickets 3.Logout program 4.I'm pasting the address again to browser https://whaticket.economicros.com.br/tickets

It was supposed to lead to the login screen.

it was redirect to home screen

The session doesn't work

I'm looking Chrome dev console, it gives this error "error":"Token was not provided."}

gazibastug avatar Jan 09 '21 01:01 gazibastug

try this one on frontend/src/context/Auth/useAuth.js on line 30 if (error?.response?.status === 403 && !originalRequest._retry) { if(localStorage.getItem("token")){ originalRequest._retry = true; const { data } = await api.post("/auth/refresh_token"); if (data) { localStorage.setItem("token", JSON.stringify(data.token)); api.defaults.headers.Authorization = Bearer ${data.token}; } return api(originalRequest); } setIsAuth(false); }

gandol avatar Jan 13 '21 19:01 gandol

I've made some changes to address this issue on lasts commits. Can you please, test and report back here?

Thanks.

canove avatar Jan 14 '21 13:01 canove

this issue still happen

  • login normaly and you redirect to ticket page
  • go back until see the dashboard page
  • go to ticket page again, you will get blank screen
  • then go back to main you will see the ticket page again

gandol avatar Jan 15 '21 05:01 gandol

https://media2.giphy.com/media/0eMMUFAINUPMlfHUuD/giphy.gif

gandol avatar Jan 15 '21 05:01 gandol

yes I got same issue.

2021-01-15 12:30 GMT+07.00, Ahmad Gika [email protected]:

https://media2.giphy.com/media/0eMMUFAINUPMlfHUuD/giphy.gif

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/canove/whaticket/issues/106#issuecomment-760656156

sakidi-umv avatar Jan 15 '21 07:01 sakidi-umv

this issue still happen

  • login normaly and you redirect to ticket page
  • go back until see the dashboard page
  • go to ticket page again, you will get blank screen
  • then go back to main you will see the ticket page again

I've followed your steps but I could not reproduce it here. Did you cleaned up your browser cache?

canove avatar Jan 15 '21 10:01 canove

I did not clear cache browser yet sir

2021-01-15 17:16 GMT+07.00, Cassio Santos [email protected]:

this issue still happen

  • login normaly and you redirect to ticket page
  • go back until see the dashboard page
  • go to ticket page again, you will get blank screen
  • then go back to main you will see the ticket page again

I've followed your steps but I could not reproduce it here. Did you cleaned up your browser cache?

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/canove/whaticket/issues/106#issuecomment-760803633

sakidi-umv avatar Jan 15 '21 10:01 sakidi-umv

This should be fixed now. Could you guys please clear you browser cache and give it a try?

canove avatar Jan 15 '21 15:01 canove