Improve error message

This commit is contained in:
Carlos Monastyrski
2025-08-31 13:37:41 -03:00
parent e04e11f597
commit 41404148e1

View File

@@ -457,11 +457,10 @@ export const authLoginServiceFactory = ({
if (
selectedOrg.authEnforced &&
!isAuthMethodSaml(decodedToken.authMethod) &&
decodedToken.authMethod !== AuthMethod.OIDC &&
decodedToken.authMethod !== AuthMethod.GOOGLE
decodedToken.authMethod !== AuthMethod.OIDC
) {
throw new BadRequestError({
message: "Authentication is required by your organization before you can log in."
message: "Login with the auth method required by your organization."
});
}