summaryrefslogtreecommitdiff
path: root/packages/merchant-backoffice-ui/src/paths/admin/create/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/merchant-backoffice-ui/src/paths/admin/create/index.tsx')
-rw-r--r--packages/merchant-backoffice-ui/src/paths/admin/create/index.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/admin/create/index.tsx b/packages/merchant-backoffice-ui/src/paths/admin/create/index.tsx
index 3db38acc3..0e8ea1f5b 100644
--- a/packages/merchant-backoffice-ui/src/paths/admin/create/index.tsx
+++ b/packages/merchant-backoffice-ui/src/paths/admin/create/index.tsx
@@ -57,7 +57,7 @@ export default function Create({ onBack, onConfirm, forceId }: Props): VNode {
try {
await createInstance(d);
if (d.auth.token) {
- const result = await lib.authenticate.createAccessToken(
+ const result = await lib.authenticate.createAccessTokenBearer(
d.auth.token,
{
scope: "write",
@@ -68,8 +68,8 @@ export default function Create({ onBack, onConfirm, forceId }: Props): VNode {
},
);
if (result.type === "ok") {
- const { access_token } = result.body;
- logIn({ token: access_token });
+ const { token } = result.body;
+ logIn({ token });
}
}
onConfirm();