Skip to content

Commit

Permalink
fix: token expiry calculation (#27)
Browse files Browse the repository at this point in the history
fixes #26
  • Loading branch information
KlausVii authored Aug 16, 2023
1 parent 7e2addc commit 3846609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion credentials/credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export class Credentials {

if (response) {
this.accessToken = response.data.access_token;
this.accessTokenExpiryDate = new Date(Date.now() + response.data.expires_in);
this.accessTokenExpiryDate = new Date(Date.now() + response.data.expires_in * 1000);
}

return this.accessToken;
Expand Down

0 comments on commit 3846609

Please sign in to comment.