We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db3c1fa commit da4e3a2Copy full SHA for da4e3a2
1 file changed
src/index.ts
@@ -115,7 +115,7 @@ class OpenApi {
115
}
116
117
async renewToken(token: string) {
118
- return await axios.patch(this.getOauthUrl() + '/token/' + token, { expire: 86400 + 365 }, {
+ return await axios.patch(this.getOauthUrl() + '/token/' + token, { expire: 31536000 + Math.round(Date.now() / 1000) }, {
119
auth: { username: this.username, password: this.apiKey }
120
});
121
0 commit comments