Skip to content

Commit

Permalink
fix: exit handler error on login (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
milaninfy authored Sep 20, 2024
1 parent 1fdff2e commit 4ea3f70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const webAuthCheckLogin = async (doneUrl, opts, { signal } = {}) => {
if (res.status === 202) {
const retry = +res.headers.get('retry-after') * 1000
if (retry > 0) {
await timers.setTimeout(retry, null, { ref: false, signal })
await timers.setTimeout(retry, null, { signal })
}
return webAuthCheckLogin(doneUrl, opts, { signal })
}
Expand Down

0 comments on commit 4ea3f70

Please sign in to comment.