aboutsummaryrefslogtreecommitdiff
path: root/packages/merchant-backoffice-ui/src/context
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-04-26 14:31:08 -0300
committerSebastian <sebasjm@gmail.com>2024-04-26 14:31:08 -0300
commitce251b9bd38eccaca9dd43efdcf7ecf9a6a66b29 (patch)
tree7897c066937f314e9221404dc83c4178dd80bb0c /packages/merchant-backoffice-ui/src/context
parentdbe5a5e5ee646b0d6824bc461c95f3c8c1572ced (diff)
downloadwallet-core-ce251b9bd38eccaca9dd43efdcf7ecf9a6a66b29.tar.xz
show error like bank
Diffstat (limited to 'packages/merchant-backoffice-ui/src/context')
-rw-r--r--packages/merchant-backoffice-ui/src/context/session.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/merchant-backoffice-ui/src/context/session.ts b/packages/merchant-backoffice-ui/src/context/session.ts
index dbd188ccd..fa5e14ab3 100644
--- a/packages/merchant-backoffice-ui/src/context/session.ts
+++ b/packages/merchant-backoffice-ui/src/context/session.ts
@@ -139,6 +139,15 @@ const Context = createContext<SessionStateHandler>(undefined!);
export const useSessionContext = (): SessionStateHandler => useContext(Context);
+/**
+ * Creates the session in loggedIn state.
+ * Infer the instance name based on the URL.
+ * Create the instance of the merchant api http rest.
+ * Returns API that handle impersonation.
+ *
+ * @param param0
+ * @returns
+ */
export const SessionContextProvider = ({
children,
// value,