We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d578f7b commit bc1949eCopy full SHA for bc1949e
lib/methods/api-request.js
@@ -159,7 +159,7 @@ const apiRequest = client => {
159
running[storeId] = delayFactor = 0
160
if (auth.row && auth.row.expires) {
161
const tokenTimestamp = new Date(auth.row.expires).getTime()
162
- if (tokenTimestamp <= Date.now() + 1000 * 60 * 10) {
+ if (tokenTimestamp <= Date.now() + 1000 * 60 * 30) {
163
// send token update request in advance
164
askRefreshToken()
165
if (tokenTimestamp <= Date.now() + 1000 * 5) {
0 commit comments