Skip to content
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

Token is lost when run multiple refreshs (in different tabs) #457

Open
betosalvador opened this issue Jul 13, 2018 · 5 comments
Open

Token is lost when run multiple refreshs (in different tabs) #457

betosalvador opened this issue Jul 13, 2018 · 5 comments
Labels

Comments

@betosalvador
Copy link

Hello

When I do multiple refreshs in different tabs, the token is lost and I receive a "unauthenticated" status from server.

This is a correct behavior?

I have a page that must be refeshed after 5 seconds in loop.

And this problem occurs when I have more than one tab in this same page.

THanks in advance!

@arjenbrandenburgh
Copy link
Collaborator

@betosalvador, which version are you using?

@betosalvador
Copy link
Author

@arjenbrandenburgh

I'm using "0.2.0-beta.14"

@arjenbrandenburgh
Copy link
Collaborator

arjenbrandenburgh commented Jul 17, 2018

Do you experience this issue with the 6.0.0-rc.2 version?
If possible, I would advise you to upgrade to this version if you also run Angular6

@betosalvador
Copy link
Author

Hi @arjenbrandenburgh

I will do this updates that you recomended and post a feedback
thanks

@jassok
Copy link

jassok commented Jul 25, 2018

I'm running to a similar issue running 6.0.0-rc.4 and angular 6.0.3.

Session is lost after a refresh and I need to run .validateToken() to require it. May be unrelated, but I'm also seeing that if a token expires, you can still pass the auth guards, even if validateToken() returns a 401.

My plan for now is to just run a validation check on init.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants