diff --git a/src/collaboration/Portal.ts b/src/collaboration/Portal.ts index 039c584..02be2e2 100644 --- a/src/collaboration/Portal.ts +++ b/src/collaboration/Portal.ts @@ -47,7 +47,7 @@ export class Portal { }).connect() socket.on('connect_error', (error) => { - if (error && error.message && !error.message.includes('Unauthorized')) { + if (error && error.message && !error.message.includes('Authentication error')) { this.handleConnectionError() } }) @@ -76,7 +76,7 @@ export class Portal { this.socket = socket this.socket?.on('connect_error', async (error) => { - if (error && error.message && error.message.includes('Unauthorized')) { + if (error && error.message && error.message.includes('Authentication error')) { await this.handleTokenRefresh() } })