Skip to content

Commit 91dcf57

Browse files
committed
adds comments
1 parent 5d0c4d3 commit 91dcf57

File tree

1 file changed

+6
-0
lines changed
  • supertokens_python/recipe/multifactorauth

1 file changed

+6
-0
lines changed

supertokens_python/recipe/multifactorauth/utils.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
from .types import OverrideConfig, MultiFactorAuthConfig
3838

3939

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.
4042
def validate_and_normalise_user_input(
4143
first_factors: Optional[List[str]],
4244
override: Union[OverrideConfig, None] = None,
@@ -69,6 +71,8 @@ def __init__(
6971
)
7072

7173

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.
7276
async def update_and_get_mfa_related_info_in_session(
7377
user_context: Dict[str, Any],
7478
input_session_recipe_user_id: Optional[RecipeUserId] = None,
@@ -259,6 +263,8 @@ async def get_required_secondary_factors_for_tenant_helper() -> List[str]:
259263
)
260264

261265

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.
262268
async def is_valid_first_factor(
263269
tenant_id: str, factor_id: str, user_context: Dict[str, Any]
264270
) -> Literal["OK", "INVALID_FIRST_FACTOR_ERROR", "TENANT_NOT_FOUND_ERROR"]:

0 commit comments

Comments
 (0)