1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 01:33:33 +00:00

[EC-178] Logout on Key Connector error (#816)

This commit is contained in:
Thomas Rittson
2022-05-26 06:18:14 +10:00
committed by GitHub
parent cc751e0287
commit a6fe5c7900
3 changed files with 18 additions and 7 deletions

View File

@@ -218,11 +218,13 @@ export class SsoComponent {
}
} catch (e) {
this.logService.error(e);
if (e.message === "Unable to reach key connector") {
// TODO: Key Connector Service should pass this error message to the logout callback instead of displaying here
if (e.message === "Key Connector error") {
this.platformUtilsService.showToast(
"error",
null,
this.i18nService.t("ssoKeyConnectorUnavailable")
this.i18nService.t("ssoKeyConnectorError")
);
}
}