fix: status code when token auth not found

This commit is contained in:
Piyush Gupta
2025-11-06 01:37:17 +05:30
parent 839b0ede83
commit 08cb45f9af

View File

@@ -244,8 +244,8 @@ export const identityTokenAuthServiceFactory = ({
}
if (!identityMembershipOrg.identity.authMethods.includes(IdentityAuthMethod.TOKEN_AUTH)) {
throw new BadRequestError({
message: "The identity does not have Token Auth attached"
throw new NotFoundError({
message: "Token Auth configuration not found for identity"
});
}