mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-04 09:26:14 +00:00
fix: status code when token auth not found
This commit is contained in:
@@ -244,8 +244,8 @@ export const identityTokenAuthServiceFactory = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!identityMembershipOrg.identity.authMethods.includes(IdentityAuthMethod.TOKEN_AUTH)) {
|
if (!identityMembershipOrg.identity.authMethods.includes(IdentityAuthMethod.TOKEN_AUTH)) {
|
||||||
throw new BadRequestError({
|
throw new NotFoundError({
|
||||||
message: "The identity does not have Token Auth attached"
|
message: "Token Auth configuration not found for identity"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user