From 05b1bc5ae021baaefdaff5613b5197e0a1bd9060 Mon Sep 17 00:00:00 2001 From: Artem Chepurnoy Date: Thu, 17 Oct 2024 15:06:30 +0300 Subject: [PATCH] fix: Use //identity.* endpoint similarly to their desktop app #643 --- .../keyguard/provider/bitwarden/api/builder/UrlBuilder.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/commonMain/kotlin/com/artemchep/keyguard/provider/bitwarden/api/builder/UrlBuilder.kt b/common/src/commonMain/kotlin/com/artemchep/keyguard/provider/bitwarden/api/builder/UrlBuilder.kt index 38209086..910f955f 100644 --- a/common/src/commonMain/kotlin/com/artemchep/keyguard/provider/bitwarden/api/builder/UrlBuilder.kt +++ b/common/src/commonMain/kotlin/com/artemchep/keyguard/provider/bitwarden/api/builder/UrlBuilder.kt @@ -32,8 +32,8 @@ fun ServerEnv.buildIdentityUrl() = buildUrl( url = identityUrl, suffix = "identity/", default = when (region) { - ServerEnv.Region.US -> "https://vault.$BITWARDEN_DOMAIN_US/identity/" - ServerEnv.Region.EU -> "https://vault.$BITWARDEN_DOMAIN_EU/identity/" + ServerEnv.Region.US -> "https://identity.$BITWARDEN_DOMAIN_US/" + ServerEnv.Region.EU -> "https://identity.$BITWARDEN_DOMAIN_EU/" }, )