aboutsummaryrefslogtreecommitdiff
path: root/packages/merchant-backoffice-ui/src/context/session.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/merchant-backoffice-ui/src/context/session.ts')
-rw-r--r--packages/merchant-backoffice-ui/src/context/session.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/merchant-backoffice-ui/src/context/session.ts b/packages/merchant-backoffice-ui/src/context/session.ts
index 9d63d8e33..98cb27400 100644
--- a/packages/merchant-backoffice-ui/src/context/session.ts
+++ b/packages/merchant-backoffice-ui/src/context/session.ts
@@ -55,6 +55,7 @@ interface Expired {
backendUrl: string;
isAdmin: boolean;
instance: string;
+ token?: undefined;
impersonate: Impersonate | undefined;
}
interface LoggedOut {
@@ -62,6 +63,7 @@ interface LoggedOut {
backendUrl: string;
instance: string;
isAdmin: boolean;
+ token?: undefined;
}
export const codecForSessionStateLoggedIn = (): Codec<LoggedIn> =>
@@ -231,6 +233,7 @@ export function useSessionContext(): SessionStateHandler {
const nextState: SessionState = {
...state,
status: "expired",
+ token: undefined,
};
update(nextState);
},