Skip to content

Commit 6ff5dff

Browse files
committed
fix: increase default token timeouts
1 parent 2f48c76 commit 6ff5dff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/Auth/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ class Auth {
108108
headers: { 'content-type': 'application/x-www-form-urlencoded' },
109109
payload,
110110
isPublic: true,
111-
timeout: 2000,
112-
deadline: 4000
111+
response: 10000,
112+
deadline: 15000
113113
}
114114
).catch(error => {
115115
if (error.status === 400 && grantType === 'refresh_token') {
@@ -166,7 +166,7 @@ class Auth {
166166
headers: {},
167167
isPublic: false,
168168
cache: false,
169-
timeout: 60000,
169+
response: 60000,
170170
deadline: 90000,
171171
error: {}
172172
},
@@ -208,7 +208,7 @@ class Auth {
208208
({ status, body } = await superagent(method, url)
209209
.set(opts.headers)
210210
.timeout({
211-
response: opts.timeout,
211+
response: opts.response,
212212
deadline: opts.deadline
213213
})
214214
.query(opts.query)

0 commit comments

Comments
 (0)