diff --git a/package.json b/package.json index c067e53d7c..d49ffdb706 100644 --- a/package.json +++ b/package.json @@ -106,6 +106,7 @@ "memoize-one": "^5.0.2", "node-vibrant": "^3.1.5", "proxy-polyfill": "^0.3.1", + "punycode": "^2.1.1", "regenerator-runtime": "^0.13.2", "resize-observer-polyfill": "^1.5.1", "roboto-fontface": "^0.10.0", diff --git a/src/auth/ha-authorize.ts b/src/auth/ha-authorize.ts index 989525cb23..72404d153e 100644 --- a/src/auth/ha-authorize.ts +++ b/src/auth/ha-authorize.ts @@ -16,6 +16,7 @@ import { litLocalizeLiteMixin } from "../mixins/lit-localize-lite-mixin"; import { registerServiceWorker } from "../util/register-service-worker"; import "./ha-auth-flow"; import { extractSearchParamsObject } from "../common/url/search-params"; +import punycode from "punycode"; import(/* webpackChunkName: "pick-auth-provider" */ "./ha-pick-auth-provider"); @@ -75,7 +76,7 @@ class HaAuthorize extends litLocalizeLiteMixin(LitElement) { ${this.localize( "ui.panel.page-authorize.authorizing_client", "clientId", - this.clientId + this.clientId ? punycode.toASCII(this.clientId) : this.clientId )}

${loggingInWith} diff --git a/yarn.lock b/yarn.lock index c813bc0508..8a9ddcb099 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9887,7 +9887,7 @@ punycode@^1.2.4, punycode@^1.3.2: resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" integrity sha1-wNWmOycYgArY4esPpSachN1BhF4= -punycode@^2.1.0: +punycode@^2.1.0, punycode@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==