whaticket-community
whaticket-community copied to clipboard
Session
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."}
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); }
I've made some changes to address this issue on lasts commits. Can you please, test and report back here?
Thanks.
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
https://media2.giphy.com/media/0eMMUFAINUPMlfHUuD/giphy.gif
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
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?
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
This should be fixed now. Could you guys please clear you browser cache and give it a try?