Skip to content

Commit fe9ff24

Browse files
authored
Fix chaining cycle detected for promise error in Auth plugin (#5374)
1 parent d815dfc commit fe9ff24

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)