File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
supertokens_python/recipe/multitenancy Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change 2020from supertokens_python .recipe .session .claim_base_classes .primitive_array_claim import (
2121 PrimitiveArrayClaim ,
2222)
23- from supertokens_python .recipe .session .interfaces import JSONObject
2423from supertokens_python .recipe_module import APIHandled , RecipeModule
25- from supertokens_python .utils import get_timestamp_ms
2624
2725from ...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
299276AllowedDomainsClaim = AllowedDomainsClaimClass ()
You can’t perform that action at this time.
0 commit comments