Skip to content

Commit ca414be

Browse files
committed
frontend/sw: stop responding to jwt_refresh with cached data when user logs out.
1 parent 497e8f1 commit ca414be

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

frontend/src/sw.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ self.addEventListener("fetch", (event: FetchEvent) => {
9292
});
9393
event.respondWith(promise);
9494
}
95+
} else if (event.request.url.indexOf("/logout") !== -1) {
96+
lastAccessTokenRefresh = 0;
97+
responseCache = undefined;
9598
}
9699
});
97100

0 commit comments

Comments
 (0)