xero-node
xero-node copied to clipboard
RPError: JWT not active yet, now 1691734526, nbf 1691734597
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);
PETOSS-331
Thanks for raising an issue, a ticket has been created to track your request
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.