From e9bb86f1f788e87e57ab004fa69b28a5995d659a Mon Sep 17 00:00:00 2001 From: KShivendu Date: Thu, 10 Aug 2023 18:56:34 +0530 Subject: [PATCH] fix: allowed domain claim and some typos --- .../recipe/multitenancy/recipe.py | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/supertokens_python/recipe/multitenancy/recipe.py b/supertokens_python/recipe/multitenancy/recipe.py index 14b35f6fa..d5319e2c0 100644 --- a/supertokens_python/recipe/multitenancy/recipe.py +++ b/supertokens_python/recipe/multitenancy/recipe.py @@ -20,9 +20,7 @@ from supertokens_python.recipe.session.claim_base_classes.primitive_array_claim import ( PrimitiveArrayClaim, ) -from supertokens_python.recipe.session.interfaces import JSONObject from supertokens_python.recipe_module import APIHandled, RecipeModule -from supertokens_python.utils import get_timestamp_ms from ...post_init_callbacks import PostSTInitCallbacks @@ -274,26 +272,5 @@ async def fetch_value( super().__init__("st-t-dmns", fetch_value, default_max_age_in_sec) - def get_value_from_payload( - self, payload: JSONObject, user_context: Optional[Dict[str, Any]] = None - ) -> Optional[List[str]]: - _ = user_context - - res = payload.get(self.key, {}).get("v") - if res is None: - return [] - return res - - def get_last_refetch_time( - self, payload: JSONObject, user_context: Optional[Dict[str, Any]] = None - ) -> Optional[int]: - _ = user_context - - res = payload.get(self.key, {}).get("t") - if res is None: - return get_timestamp_ms() - - return res - AllowedDomainsClaim = AllowedDomainsClaimClass()