summaryrefslogtreecommitdiff
path: root/packages/merchant-backoffice-ui/src/paths/instance/token/DetailPage.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/merchant-backoffice-ui/src/paths/instance/token/DetailPage.tsx')
-rw-r--r--packages/merchant-backoffice-ui/src/paths/instance/token/DetailPage.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/instance/token/DetailPage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/token/DetailPage.tsx
index f75ee89b8..d718ffb69 100644
--- a/packages/merchant-backoffice-ui/src/paths/instance/token/DetailPage.tsx
+++ b/packages/merchant-backoffice-ui/src/paths/instance/token/DetailPage.tsx
@@ -27,7 +27,7 @@ import { FormProvider } from "../../../components/form/FormProvider.js";
import { Input } from "../../../components/form/Input.js";
import { NotificationCard } from "../../../components/menu/index.js";
import { useSessionContext } from "../../../context/session.js";
-import { AccessToken, createAccessToken } from "@gnu-taler/taler-util";
+import { AccessToken, createRFC8959AccessTokenPlain } from "@gnu-taler/taler-util";
interface Props {
hasToken: boolean | undefined;
@@ -78,9 +78,9 @@ export function DetailPage({
if (hasErrors) return;
const oldToken =
form.old_token !== undefined && hasToken
- ? createAccessToken(form.old_token)
+ ? createRFC8959AccessTokenPlain(form.old_token)
: undefined;
- const newToken = createAccessToken(form.new_token!);
+ const newToken = createRFC8959AccessTokenPlain(form.new_token!);
onNewToken(oldToken, newToken);
}
@@ -134,7 +134,7 @@ export function DetailPage({
class="button"
onClick={() => {
if (hasToken) {
- onClearToken(form.old_token ? createAccessToken(form.old_token) : undefined);
+ onClearToken(form.old_token ? createRFC8959AccessTokenPlain(form.old_token) : undefined);
} else {
onClearToken(undefined);
}