Open edyrkaj opened 2 years ago
Just found that token needs to set value from place where we store last time connected with QB and when token is created
https://github.com/intuit/oauth-jsclient/blob/master/src/access-token/Token.js
_checkExpiry
@edyrkaj Can you please assign this issue to me and also add a hacktoberfest tag
Description:
Version: "intuit-oauth": "^4.0.0",
Node 10.24
When I use existing tokens from the storage and validate the token before accessing other methods of QB method:
OAuthClient.isAccessTokenValid()
returns always true.On this response I see that
createdAt
timestamp is always time when I call the methodOAuthClient.token.getToken()
which I think is wrong because it shouldbe the time when token is created
in order to make the validation for expired token.OAuthClient.token.getToken()
this method is broken.