diff options
Diffstat (limited to 'packages/merchant-backoffice-ui/src/context/backend.ts')
-rw-r--r-- | packages/merchant-backoffice-ui/src/context/backend.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/merchant-backoffice-ui/src/context/backend.ts b/packages/merchant-backoffice-ui/src/context/backend.ts index f8d1bc397..f7f8afea6 100644 --- a/packages/merchant-backoffice-ui/src/context/backend.ts +++ b/packages/merchant-backoffice-ui/src/context/backend.ts @@ -31,6 +31,7 @@ interface BackendContextType { clearAllTokens: () => void; addTokenCleaner: (c: () => void) => void; updateLoginStatus: (url: string, token?: string) => void; + updateToken: (token?: string) => void; } const BackendContext = createContext<BackendContextType>({ @@ -41,6 +42,7 @@ const BackendContext = createContext<BackendContextType>({ clearAllTokens: () => null, addTokenCleaner: () => null, updateLoginStatus: () => null, + updateToken: () => null, }); function useBackendContextState( @@ -87,6 +89,7 @@ function useBackendContextState( updateLoginStatus, resetBackend, clearAllTokens, + updateToken, addTokenCleaner: addTokenCleanerMemo, }; } |