diff --git a/src/Api/Utilities/ExceptionHandlerFilterAttribute.cs b/src/Api/Utilities/ExceptionHandlerFilterAttribute.cs index 836719d804..e2b78b7d33 100644 --- a/src/Api/Utilities/ExceptionHandlerFilterAttribute.cs +++ b/src/Api/Utilities/ExceptionHandlerFilterAttribute.cs @@ -15,7 +15,7 @@ namespace Bit.Api.Utilities { public override void OnException(ExceptionContext context) { - var errorModel = new ErrorResponseModel("An error has occured."); + var errorModel = new ErrorResponseModel("An error has occurred."); var exception = context.Exception; if(exception == null) @@ -63,7 +63,7 @@ namespace Bit.Api.Utilities var logger = context.HttpContext.RequestServices.GetRequiredService>(); logger.LogError(0, exception, exception.Message); - errorModel.Message = "An unhandled server error has occured."; + errorModel.Message = "An unhandled server error has occurred."; context.HttpContext.Response.StatusCode = 500; } diff --git a/src/Api/Utilities/TokenRetrieval.cs b/src/Api/Utilities/TokenRetrieval.cs index 8539d8b52e..9eab9d3e8e 100644 --- a/src/Api/Utilities/TokenRetrieval.cs +++ b/src/Api/Utilities/TokenRetrieval.cs @@ -7,7 +7,7 @@ namespace Bit.Api.Utilities public static class TokenRetrieval { public static Func FromAuthorizationHeaderOrQueryString(string headerScheme = "Bearer", - string qsName = "account_token") + string qsName = "access_token") { return (request) => {