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 cd95534 commit 99bfe58Copy full SHA for 99bfe58
src/utils/token-manager.ts
@@ -70,9 +70,12 @@ export namespace TokenManager {
70
})()
71
72
// reset when finished, so that the next call will trigger a new check
73
- pendingGetToken.finally(() => {
74
- pendingGetToken = undefined
75
- })
+ pendingGetToken
+ .finally(() => {
+ pendingGetToken = undefined
76
+ })
77
+ // we still need to catch the error here, otherwise it will be unhandled
78
+ .catch(noop)
79
80
return pendingGetToken
81
}
0 commit comments