mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +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)) {
|
||||
throw new BadRequestError({
|
||||
message: "The identity does not have Token Auth attached"
|
||||
throw new NotFoundError({
|
||||
message: "Token Auth configuration not found for identity"
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user