Skip to content

Session #106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gazibastug opened this issue Jan 9, 2021 · 8 comments
Open

Session #106

gazibastug opened this issue Jan 9, 2021 · 8 comments
Labels
bug Something isn't working

Comments

@gazibastug
Copy link

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."}

@canove canove added the bug Something isn't working label Jan 12, 2021
@gandol
Copy link

gandol commented Jan 13, 2021

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); }

@canove
Copy link
Owner

canove commented Jan 14, 2021

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

Thanks.

@gandol
Copy link

gandol commented Jan 15, 2021

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
Copy link

gandol commented Jan 15, 2021

@sakidi-umv
Copy link

sakidi-umv commented Jan 15, 2021 via email

@canove
Copy link
Owner

canove commented Jan 15, 2021

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?

@sakidi-umv
Copy link

sakidi-umv commented Jan 15, 2021 via email

@canove canove closed this as completed in 74e17a9 Jan 15, 2021
@canove canove reopened this Jan 15, 2021
@canove
Copy link
Owner

canove commented Jan 15, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants