Skip to content

Commit e9bb86f

Browse files
committed
fix: allowed domain claim and some typos
1 parent 3c78c0f commit e9bb86f

File tree

1 file changed

+0
-23
lines changed
  • supertokens_python/recipe/multitenancy

1 file changed

+0
-23
lines changed

supertokens_python/recipe/multitenancy/recipe.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
from supertokens_python.recipe.session.claim_base_classes.primitive_array_claim import (
2121
PrimitiveArrayClaim,
2222
)
23-
from supertokens_python.recipe.session.interfaces import JSONObject
2423
from supertokens_python.recipe_module import APIHandled, RecipeModule
25-
from supertokens_python.utils import get_timestamp_ms
2624

2725
from ...post_init_callbacks import PostSTInitCallbacks
2826

@@ -274,26 +272,5 @@ async def fetch_value(
274272

275273
super().__init__("st-t-dmns", fetch_value, default_max_age_in_sec)
276274

277-
def get_value_from_payload(
278-
self, payload: JSONObject, user_context: Optional[Dict[str, Any]] = None
279-
) -> Optional[List[str]]:
280-
_ = user_context
281-
282-
res = payload.get(self.key, {}).get("v")
283-
if res is None:
284-
return []
285-
return res
286-
287-
def get_last_refetch_time(
288-
self, payload: JSONObject, user_context: Optional[Dict[str, Any]] = None
289-
) -> Optional[int]:
290-
_ = user_context
291-
292-
res = payload.get(self.key, {}).get("t")
293-
if res is None:
294-
return get_timestamp_ms()
295-
296-
return res
297-
298275

299276
AllowedDomainsClaim = AllowedDomainsClaimClass()

0 commit comments

Comments
 (0)