Skip to content

Commit

Permalink
Fix session invalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianjoel committed Oct 20, 2023
1 parent 66dfe23 commit cc7e33f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/app/worker/autoupdate/autoupdate-stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,16 +255,16 @@ export class AutoupdateStream {
}

// Hotfix wrong status codes
const content = next && this.parse(this.decode(next));
const content = next ? this.parse(this.decode(next)) : null;
const autoupdateSentUnmarkedError = content?.type !== ErrorType.UNKNOWN && content?.error;

if (!response.ok || autoupdateSentUnmarkedError) {
if (headers.authentication ?? null !== this.authToken ?? null) {
if ((headers.authentication ?? null) !== (this.authToken ?? null)) {
return await this.doRequest();
}

let errorContent = null;
if (next && (errorContent = content?.error)) {
if (content && (errorContent = content)?.error) {
errorContent = errorContent.error;
}

Expand Down

0 comments on commit cc7e33f

Please sign in to comment.