diff options
author | Sebastian <sebasjm@gmail.com> | 2023-09-14 12:14:21 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-09-14 12:14:21 -0300 |
commit | 1653130de893a0a1bdbdef785244aa6ae34ca4e7 (patch) | |
tree | 80e19e89e0ced0738ae182786250004ee3f53618 /packages/merchant-backoffice-ui/src/hooks/backend.ts | |
parent | dd25740c914ed76afcb1206166033626f4469fa8 (diff) | |
download | wallet-core-1653130de893a0a1bdbdef785244aa6ae34ca4e7.tar.gz wallet-core-1653130de893a0a1bdbdef785244aa6ae34ca4e7.tar.bz2 wallet-core-1653130de893a0a1bdbdef785244aa6ae34ca4e7.zip |
update how access token management is handled
Diffstat (limited to 'packages/merchant-backoffice-ui/src/hooks/backend.ts')
-rw-r--r-- | packages/merchant-backoffice-ui/src/hooks/backend.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/merchant-backoffice-ui/src/hooks/backend.ts b/packages/merchant-backoffice-ui/src/hooks/backend.ts index fe4155788..eaeede103 100644 --- a/packages/merchant-backoffice-ui/src/hooks/backend.ts +++ b/packages/merchant-backoffice-ui/src/hooks/backend.ts @@ -266,7 +266,7 @@ export function useBackendBaseRequest(): useBackendBaseRequestType { endpoint: string, options: RequestOptions = {}, ): Promise<HttpResponseOk<T>> { - return requestHandler<T>(backend, endpoint, { token, ...options }).then(res => { + return requestHandler<T>(backend, endpoint, { ...options, token }).then(res => { return res }).catch(err => { throw err |