handle more unauthorized errors in creator app
This commit is contained in:
1 parent
c9538d4193
commit
90a506f2d1
1 file changed
+6
-1
@@ -357,7 +357,12 @@ export class TabManager {
|
||||
tab.relay = proc;
|
||||
let sawAuthFailure = false;
|
||||
this.attachProcessOutput(proc, tabId, (msg) => {
|
||||
if (msg.includes('status 401') || msg.includes('"UnauthorizedError"')) {
|
||||
if (
|
||||
msg.includes('status 401') ||
|
||||
msg.includes('"UnauthorizedError"') ||
|
||||
msg.includes('"error":"unauthorized') ||
|
||||
msg.includes('empty access_token')
|
||||
) {
|
||||
sawAuthFailure = true;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user