diff options
author | Sebastian <sebasjm@gmail.com> | 2024-04-26 14:31:08 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-04-26 14:31:08 -0300 |
commit | ce251b9bd38eccaca9dd43efdcf7ecf9a6a66b29 (patch) | |
tree | 7897c066937f314e9221404dc83c4178dd80bb0c /packages/merchant-backoffice-ui/src/context | |
parent | dbe5a5e5ee646b0d6824bc461c95f3c8c1572ced (diff) | |
download | wallet-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.ts | 9 |
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, |