diff --git a/src/Core/Services/ApiService.cs b/src/Core/Services/ApiService.cs index 25603e762..d8c0ed7d4 100644 --- a/src/Core/Services/ApiService.cs +++ b/src/Core/Services/ApiService.cs @@ -593,7 +593,7 @@ namespace Bit.Core.Services public Task PostCreateRequestAsync(PasswordlessCreateLoginRequest passwordlessCreateLoginRequest, AuthRequestType authRequestType) { - return SendAsync(HttpMethod.Post, authRequestType == AuthRequestType.AdminApproval ? $"/auth-requests/admin-request" : $"/auth-requests", passwordlessCreateLoginRequest, authRequestType == AuthRequestType.AdminApproval, true); + return SendAsync(HttpMethod.Post, authRequestType == AuthRequestType.AdminApproval ? "/auth-requests/admin-request" : "/auth-requests", passwordlessCreateLoginRequest, authRequestType == AuthRequestType.AdminApproval, true); } public Task PutAuthRequestAsync(string id, string encKey, string encMasterPasswordHash, string deviceIdentifier, bool requestApproved) diff --git a/src/Core/Services/AuthService.cs b/src/Core/Services/AuthService.cs index e2b353416..0082027dc 100644 --- a/src/Core/Services/AuthService.cs +++ b/src/Core/Services/AuthService.cs @@ -202,7 +202,7 @@ namespace Bit.Core.Services { AuthResult response = null; // On SSO flow user is already AuthN - if (await this._stateService.IsAuthenticatedAsync()) + if (await _stateService.IsAuthenticatedAsync()) { var decryptedKey = await _cryptoService.RsaDecryptAsync(masterKey, decryptionKey); if (string.IsNullOrEmpty(masterKeyHash))