aboutsummaryrefslogtreecommitdiff
path: root/packages/merchant-backoffice-ui/src/context/session.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-03-29 16:52:25 -0300
committerSebastian <sebasjm@gmail.com>2024-03-29 16:52:40 -0300
commitc3cba95a9fd88eb77fd18263287d3a63a9f757e2 (patch)
tree5d05bc48742c0984d8d0aff3a4c2a94c54332803 /packages/merchant-backoffice-ui/src/context/session.ts
parent81f87ede72ada7e7f313b9a4212e0c75c5f54ac9 (diff)
downloadwallet-core-c3cba95a9fd88eb77fd18263287d3a63a9f757e2.tar.xz
wip #8655
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);
},