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 invalid if machine get restarted #14

Open
garora opened this issue Jan 20, 2016 · 2 comments
Open

Token is invalid if machine get restarted #14

garora opened this issue Jan 20, 2016 · 2 comments

Comments

@garora
Copy link

garora commented Jan 20, 2016

@jamiekurtz - This is related to [https://github.com//issues/9](Authentication Failure).

I've re-written everything and token is working fine. Unfortunately, I met with another issue: I created a token for 30-days. Its strange but once client restart his/her machine then same token (which validated earlier) got invalid. Interestingly, I am able to validate the token using http://jwt.io.

Are Tokens depend upon client machines rather than Server?

@jamiekurtz
Copy link
Owner

That's odd. Can you provide some more detail? What's the client application calling your Web API? Is it another web site? Desktop or mobile application??

And where's the token being stored - i.e. before the machine is restarted?

Also, can you share with me the code you're using to create your JWT?

@garora
Copy link
Author

garora commented Jan 26, 2016

Thanks for reply. I re-wrote whole code and its working now. I have few
questions.

  1. Can I use same token from multiple machines eg. I generated a token from
    one windows machine now is this token valid if I use this from another
    windows machine.
  2. Are there any scenarios where token life is shorter as expected eg. I
    created a token for thirty days but actually it lives for twenty four hours.
    On 26/01/2016 7:21 AM, "Jamie Kurtz" [email protected] wrote:

That's odd. Can you provide some more detail? What's the client
application calling your Web API? Is it another web site? Desktop or mobile
application??

And where's the token being stored - i.e. before the machine is restarted?

Also, can you share with me the code you're using to create your JWT?


Reply to this email directly or view it on GitHub
#14 (comment)
.

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

No branches or pull requests

2 participants