Skip to content

Commit

Permalink
adds comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Sep 30, 2024
1 parent 5d0c4d3 commit 91dcf57
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions supertokens_python/recipe/multifactorauth/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
from .types import OverrideConfig, MultiFactorAuthConfig


# IMPORTANT: If this function signature is modified, please update all tha places where this function is called.
# There will be no type errors cause we use importLib to dynamically import if to prevent cyclic import issues.
def validate_and_normalise_user_input(
first_factors: Optional[List[str]],
override: Union[OverrideConfig, None] = None,
Expand Down Expand Up @@ -69,6 +71,8 @@ def __init__(
)


# IMPORTANT: If this function signature is modified, please update all tha places where this function is called.
# There will be no type errors cause we use importLib to dynamically import if to prevent cyclic import issues.
async def update_and_get_mfa_related_info_in_session(
user_context: Dict[str, Any],
input_session_recipe_user_id: Optional[RecipeUserId] = None,
Expand Down Expand Up @@ -259,6 +263,8 @@ async def get_required_secondary_factors_for_tenant_helper() -> List[str]:
)


# IMPORTANT: If this function signature is modified, please update all tha places where this function is called.
# There will be no type errors cause we use importLib to dynamically import if to prevent cyclic import issues.
async def is_valid_first_factor(
tenant_id: str, factor_id: str, user_context: Dict[str, Any]
) -> Literal["OK", "INVALID_FIRST_FACTOR_ERROR", "TENANT_NOT_FOUND_ERROR"]:
Expand Down

0 comments on commit 91dcf57

Please sign in to comment.