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.
2 parents 296c9d0 + fded2ab commit e1e6982Copy full SHA for e1e6982
apps/tuk-web/src/shared/lib/api/auth/refreshManager.ts
@@ -13,6 +13,8 @@ const state: RefreshState = {
13
export function requestTokenRefresh(trigger: () => void, timeoutMs?: number) {
14
if (state.refreshing && state.promise) return state.promise;
15
16
+ sessionStorage.removeItem('accessToken');
17
+
18
state.refreshing = true;
19
trigger();
20
apps/tuk-web/src/shared/lib/api/rest/rest.ts
@@ -138,6 +138,8 @@ export class RestAPI implements RestAPIProtocol {
138
const res = await this.instance.request(fullUrl, reqInit);
139
if (!res.ok) {
140
if (res.status === 401) {
141
142
143
const bridge = this.instance.getBridgeSend();
144
if (bridge) {
145
try {
0 commit comments