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

SYNC Time #265

Closed
illegal-instruction-co opened this issue Oct 22, 2022 · 3 comments
Closed

SYNC Time #265

illegal-instruction-co opened this issue Oct 22, 2022 · 3 comments
Labels

Comments

@illegal-instruction-co
Copy link

What's your question?

Sync time

Additional Context

If i want to use two ways jwt
server -> client
client -> server
how can i sync times between them to use exp verification ?
All clients can be use another time settings on windows.

@prince-chrismc
Copy link
Collaborator

This is a touch off topic since it's related to you application and deployment... the default answer is NTP. There's a lot of options https://en.m.wikipedia.org/wiki/Clock_synchronization though.

This library by default uses the system clock.

Some past related questions:

#236
#179 (comment)

@Thalhammer
Copy link
Owner

All clients can be use another time settings on windows.

Assuming by "time settings" you mean the timezone, then it should be fine. The library converts local time to global (gmt) time which is identical regardless of the timezone a computer is in. Windows has a builtin network time feature that should be accurate enough for the tokens to be valid.

If by "time settings" you mean actually different times, than I wonder shortly, why and then agree with chris. NTP or the Windows builtin (which AFAIK uses ntp as well under the hood) are your best options.

@prince-chrismc
Copy link
Collaborator

I am going to close, if you have anything else don't hesitate to open an issue 🙂

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

3 participants