-
Notifications
You must be signed in to change notification settings - Fork 163
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
RPError: JWT not active yet, now 1579073794, nbf 1579073795 #327
Comments
Hey @hanselke - this should be fixed in If still dealing with this after updating - feel free to re-open if issue persists. |
Hey @SerKnight I am facing the same issue.
I am running https://github.com/XeroAPI/xero-node-oauth2-app while authenticating I am getting the below mentioned error |
I was getting the same issue on 4.10.3 but upgrading to 4.11.2 hasn't helped. Seems like there is still an issue. |
Here's updated url: https://github.com/XeroAPI/xero-node/blob/4.1.0/src/xeroClient.ts#L40 |
hello @devinrhode2 I'm just experiencing a similar issue while testing the oauth2-app (xero-node: 4.27.1). I don't quite understand the clock tolerance you're referring to on your solution above. May you shed more light on this? Thanks |
I think ultimately you should just go to time.gov and try to tune your clock |
SDK you're using (please complete the following information):
Describe the bug
When you try to authenticate, it fails after callback with error in title.
This is due to the system setting a nbf (not before) timestamp to accept the calling of
await xero.setAccessTokenFromRedirectUri(url);
To Reproduce
in xero-node-oauth2-app, just try to authenticate. it happens sometimes
Expected behavior
it should work all the time
Screenshots
Additional context
i've fixed it in my own app by adding a timeout before doing anything with the callback, but it seems like it's ALWAYS 1 ms lower then nbf whenever it causes an error. maybe make the nbf slightly earlier?
The text was updated successfully, but these errors were encountered: