diff options
author | Sebastian <sebasjm@gmail.com> | 2024-03-26 16:54:35 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-03-26 16:57:59 -0300 |
commit | dd5aa2145f06a4744cf8f4f3fe14525b613acf87 (patch) | |
tree | 4556037bb742370774a5400c61f2b6ac1345092e /packages/merchant-backoffice-ui/src/paths/instance/token/index.tsx | |
parent | af633723b3beae2588c55fd94630a42f27b3f2b1 (diff) | |
download | wallet-core-dd5aa2145f06a4744cf8f4f3fe14525b613acf87.tar.gz wallet-core-dd5aa2145f06a4744cf8f4f3fe14525b613acf87.tar.bz2 wallet-core-dd5aa2145f06a4744cf8f4f3fe14525b613acf87.zip |
fix #8660
Diffstat (limited to 'packages/merchant-backoffice-ui/src/paths/instance/token/index.tsx')
-rw-r--r-- | packages/merchant-backoffice-ui/src/paths/instance/token/index.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/instance/token/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/token/index.tsx index 889ef6f5d..13b5c45f1 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/token/index.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/token/index.tsx @@ -85,11 +85,11 @@ export default function Token({ }} onNewToken={async (currentToken, newToken): Promise<void> => { try { - await lib.management.updateInstanceAuthentication(currentToken, { + await lib.management.updateCurrentInstanceAuthentication(currentToken, { token: newToken, method: "token" }) - const resp = await lib.authenticate.createAccessTokenMerchant(newToken, { + const resp = await lib.authenticate.createAccessTokenBearer(newToken, { scope: "write", duration: { d_us: "forever" |