From 4d0ff542e6f10daeb7c3f1757bfa02cdaff7c1a5 Mon Sep 17 00:00:00 2001 From: Darya Plotnytska Date: Mon, 16 Sep 2024 12:20:37 +0200 Subject: [PATCH] console: Fix qr code authentication code encoding --- .../gateway-claim-form-section/index.js | 1 + .../containers/gateway-onboarding-form/qr-scan-section/index.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/webui/console/containers/gateway-onboarding-form/gateway-provisioning-form/gateway-claim-form-section/index.js b/pkg/webui/console/containers/gateway-onboarding-form/gateway-provisioning-form/gateway-claim-form-section/index.js index fd1782b251..7b2d92d891 100644 --- a/pkg/webui/console/containers/gateway-onboarding-form/gateway-provisioning-form/gateway-claim-form-section/index.js +++ b/pkg/webui/console/containers/gateway-onboarding-form/gateway-provisioning-form/gateway-claim-form-section/index.js @@ -85,6 +85,7 @@ const GatewayClaimFormSection = () => { encode={btoa} decode={atob} disabled={withQRdata} + sensitive autoFocus /> { }, authenticated_identifiers: { gateway_eui: gateway.gateway_eui, - authentication_code: gateway.owner_token ? gateway.owner_token : '', + authentication_code: gateway.owner_token ? btoa(gateway.owner_token) : '', }, }))