diff --git a/src/service/auth-service.js b/src/service/auth-service.js index 49a0a65ee1..05c6c3093e 100644 --- a/src/service/auth-service.js +++ b/src/service/auth-service.js @@ -62,10 +62,15 @@ class AuthService { return false; } - return ( - this._authConfig.publicOperations.includes(`v0/${operationName}`) || - this._authConfig.publicOperations.includes(operationName) - ); + const lowerCaseOperationName = operationName.toLowerCase(); + + return this._authConfig.publicOperations.some((publicOperation) => { + const lowerCasePublicOperation = publicOperation.toLowerCase(); + return ( + lowerCasePublicOperation === `v0/${lowerCaseOperationName}` || + lowerCasePublicOperation === lowerCaseOperationName + ); + }); } /**