diff --git a/bitwarden_license/src/Sso/Controllers/AccountController.cs b/bitwarden_license/src/Sso/Controllers/AccountController.cs index 3ad20fe043..e01bd436cb 100644 --- a/bitwarden_license/src/Sso/Controllers/AccountController.cs +++ b/bitwarden_license/src/Sso/Controllers/AccountController.cs @@ -374,8 +374,6 @@ namespace Bit.Sso.Controllers } else { - var bytes = System.Convert.FromBase64String(userIdentifier); - userIdentifier = System.Text.Encoding.UTF8.GetString(bytes); var split = userIdentifier.Split(","); if (split.Length < 2) { diff --git a/src/Api/Controllers/AccountsController.cs b/src/Api/Controllers/AccountsController.cs index 45a5dd762f..e14220f303 100644 --- a/src/Api/Controllers/AccountsController.cs +++ b/src/Api/Controllers/AccountsController.cs @@ -731,8 +731,7 @@ namespace Bit.Api.Controllers { var user = await _userService.GetUserByPrincipalAsync(User); var token = await _userService.GenerateSignInTokenAsync(user, TokenPurposes.LinkSso); - var bytes = Encoding.UTF8.GetBytes($"{user.Id},{token}"); - var userIdentifier = Convert.ToBase64String(bytes); + var userIdentifier = $"{user.Id},{token}"; return userIdentifier; } }