|
37 | 37 | from .types import OverrideConfig, MultiFactorAuthConfig
|
38 | 38 |
|
39 | 39 |
|
| 40 | +# IMPORTANT: If this function signature is modified, please update all tha places where this function is called. |
| 41 | +# There will be no type errors cause we use importLib to dynamically import if to prevent cyclic import issues. |
40 | 42 | def validate_and_normalise_user_input(
|
41 | 43 | first_factors: Optional[List[str]],
|
42 | 44 | override: Union[OverrideConfig, None] = None,
|
@@ -69,6 +71,8 @@ def __init__(
|
69 | 71 | )
|
70 | 72 |
|
71 | 73 |
|
| 74 | +# IMPORTANT: If this function signature is modified, please update all tha places where this function is called. |
| 75 | +# There will be no type errors cause we use importLib to dynamically import if to prevent cyclic import issues. |
72 | 76 | async def update_and_get_mfa_related_info_in_session(
|
73 | 77 | user_context: Dict[str, Any],
|
74 | 78 | input_session_recipe_user_id: Optional[RecipeUserId] = None,
|
@@ -259,6 +263,8 @@ async def get_required_secondary_factors_for_tenant_helper() -> List[str]:
|
259 | 263 | )
|
260 | 264 |
|
261 | 265 |
|
| 266 | +# IMPORTANT: If this function signature is modified, please update all tha places where this function is called. |
| 267 | +# There will be no type errors cause we use importLib to dynamically import if to prevent cyclic import issues. |
262 | 268 | async def is_valid_first_factor(
|
263 | 269 | tenant_id: str, factor_id: str, user_context: Dict[str, Any]
|
264 | 270 | ) -> Literal["OK", "INVALID_FIRST_FACTOR_ERROR", "TENANT_NOT_FOUND_ERROR"]:
|
|
0 commit comments