Improve error message

This commit is contained in:
Carlos Monastyrski
2025-08-31 13:37:41 -03:00
parent e04e11f597
commit 41404148e1
@@ -457,11 +457,10 @@ export const authLoginServiceFactory = ({
if ( if (
selectedOrg.authEnforced && selectedOrg.authEnforced &&
!isAuthMethodSaml(decodedToken.authMethod) && !isAuthMethodSaml(decodedToken.authMethod) &&
decodedToken.authMethod !== AuthMethod.OIDC && decodedToken.authMethod !== AuthMethod.OIDC
decodedToken.authMethod !== AuthMethod.GOOGLE
) { ) {
throw new BadRequestError({ 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."
}); });
} }