Feature: Add pre-save validation for Action code
Description:
Provide a Validate capability in the Action editor that analyses the Action code before it is saved. Ideally, validation would detect JavaScript syntax errors, invalid Action API usage, and other issues that could cause the Action to fail at runtime.
Validation errors should point to the relevant line or section of code and provide enough information to correct the issue.
Use-case:
Our authentication flows rely on Actions for features such as MFA enforcement, SAML/OIDC claims, redirects, locale handling, and user metadata processing. Currently, an error may only become apparent later in the development or testing process. Pre-save validation would provide faster feedback to developers and reduce the risk of introducing invalid Actions into authentication flows.