diff options
author | Sebastian <sebasjm@gmail.com> | 2024-03-26 16:54:35 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-03-26 16:54:35 -0300 |
commit | b674422840041f8cdba0ad52be17bd0c527ffecb (patch) | |
tree | ed58e348933af7429685e3aaff648c926418d1eb /packages/merchant-backoffice-ui/src/paths/login/index.tsx | |
parent | aa33015b1e83885d07beb1220207f0cecd0dd9dc (diff) | |
download | wallet-core-b674422840041f8cdba0ad52be17bd0c527ffecb.tar.gz wallet-core-b674422840041f8cdba0ad52be17bd0c527ffecb.tar.bz2 wallet-core-b674422840041f8cdba0ad52be17bd0c527ffecb.zip |
fix #8660dev/sebasjm/refactor-merchant
Diffstat (limited to 'packages/merchant-backoffice-ui/src/paths/login/index.tsx')
-rw-r--r-- | packages/merchant-backoffice-ui/src/paths/login/index.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/login/index.tsx b/packages/merchant-backoffice-ui/src/paths/login/index.tsx index 14322f079..6a698186a 100644 --- a/packages/merchant-backoffice-ui/src/paths/login/index.tsx +++ b/packages/merchant-backoffice-ui/src/paths/login/index.tsx @@ -34,7 +34,7 @@ import { } from "../../context/session.js"; import { Notification } from "../../utils/types.js"; -interface Props {} +interface Props { } const tokenRequest = { scope: "write", @@ -55,7 +55,7 @@ export function LoginPage(_p: Props): VNode { async function doImpersonateImpl(instanceId: string) { const result = await lib .impersonate(instanceId) - .createAccessTokenMerchant(token, tokenRequest); + .createAccessTokenBearer(token, tokenRequest); if (result.type === "ok") { const { token } = result.body; logIn({ token }); @@ -80,7 +80,7 @@ export function LoginPage(_p: Props): VNode { } } async function doLoginImpl() { - const result = await lib.authenticate.createAccessTokenMerchant( + const result = await lib.authenticate.createAccessTokenBearer( token, tokenRequest, ); |