Continue refactoring remaining middleware to be compatible with multiple clients

This commit is contained in:
Tuan Dang
2023-04-11 23:58:29 +03:00
parent 5032450b1c
commit 9df8e8926d
22 changed files with 438 additions and 141 deletions
+2 -2
View File
@@ -86,7 +86,7 @@ const validateClientForOrganization = async ({
if (authData.authMode === AUTH_MODE_SERVICE_TOKEN && authData.authPayload instanceof ServiceTokenData) {
throw UnauthorizedRequestError({
message: 'Failed service token authorization for organization resource'
message: 'Failed service token authorization for organization'
});
}
@@ -102,7 +102,7 @@ const validateClientForOrganization = async ({
}
throw UnauthorizedRequestError({
message: 'Failed client authorization for organization resource'
message: 'Failed client authorization for organization'
});
}