feat: removed redundant check made and error message fix

This commit is contained in:
=
2024-10-26 23:27:38 +04:00
committed by Daniel Hougaard
parent 726477e3d7
commit d32f69e052
2 changed files with 3 additions and 7 deletions
@@ -133,7 +133,7 @@ export const identityTokenAuthServiceFactory = ({
if (!identityMembershipOrg.identity.authMethods.includes(IdentityAuthMethod.TOKEN_AUTH)) {
throw new BadRequestError({
message: "Failed to update Token Auth"
message: "The identity does not have token auth"
});
}