Skip to content

Wrong createdAt date on OAuthClient.token.getToken() response #119

Open
@edyrkaj

Description

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.

{ token_type: 'bearer',
      access_token: xxx',
      expires_in: 3600,
      refresh_token: 'xxx',
      x_refresh_token_expires_in: 0,
      realmId: 'yy',
      id_token: '',
      createdAt: 1631695486623 }

On this response I see that createdAt timestamp is always time when I call the method OAuthClient.token.getToken()
which I think is wrong because it should be the time when token is created in order to make the validation for expired token.

OAuthClient.token.getToken() this method is broken.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions