Skip to content

Commit d41f9f2

Browse files
committed
Fix chaining cycle detected for promise error in Auth plugin
1 parent 20c0e8f commit d41f9f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/plugin/auth.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,8 @@ export default function (config) {
350350
recorder.session.restore('auto login')
351351
recorder.session.restore('check login')
352352
section.end()
353-
recorder.throw(err)
353+
// Use regular throw instead of recorder.throw to avoid promise chaining cycle
354+
throw err
354355
})
355356
})
356357
recorder.add(() => {

0 commit comments

Comments
 (0)