xero-node icon indicating copy to clipboard operation
xero-node copied to clipboard

RPError: JWT not active yet, now 1691734526, nbf 1691734597

Open chandanray876 opened this issue 1 year ago • 3 comments

image

const xero = new XeroClient({ clientId: xeroConfig.clientId, clientSecret: xeroConfig.clientSecret, redirectUris: [xeroConfig.redirectUris], scopes: xeroConfig.scopes.split(' '), // clockTolerance: 10 });

const tokenSet = await xero.apiCallback(req.url);

chandanray876 avatar Aug 11 '23 06:08 chandanray876

PETOSS-331

github-actions[bot] avatar Aug 11 '23 06:08 github-actions[bot]

Thanks for raising an issue, a ticket has been created to track your request

github-actions[bot] avatar Aug 11 '23 06:08 github-actions[bot]

hey @chandanray876,

this can be happening to you due to your system might be setting a nbf (not before) timestamp while making the network call.

Please try running our sample app - https://github.com/XeroAPI/xero-node-oauth2-app with the latest xero-node veriosn v5.0.1

please go through this issue card once - https://github.com/XeroAPI/xero-node/issues/327 - this has some solution which had worked. it can be due to some time settings on your system.

if you are still facing issue please let us know with some more details.

sangeet-joy-tw avatar Feb 08 '24 10:02 sangeet-joy-tw