Skip to content

Commit

Permalink
Merge pull request #7306 from TheThingsNetwork/fix/encoding-gateway-a…
Browse files Browse the repository at this point in the history
…uthentication-code

Fix gateway claiming via qr code authentication code encoding - OS backport
  • Loading branch information
ryaplots authored Sep 16, 2024
2 parents 0279edf + 4d0ff54 commit 41e609a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ const GatewayClaimFormSection = () => {
encode={btoa}
decode={atob}
disabled={withQRdata}
sensitive
autoFocus
/>
<Form.Field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const GatewayQRScanSection = () => {
},
authenticated_identifiers: {
gateway_eui: gateway.gateway_eui,
authentication_code: gateway.owner_token ? gateway.owner_token : '',
authentication_code: gateway.owner_token ? btoa(gateway.owner_token) : '',
},
}))

Expand Down

0 comments on commit 41e609a

Please sign in to comment.