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 20
20
from supertokens_python .recipe .session .claim_base_classes .primitive_array_claim import (
21
21
PrimitiveArrayClaim ,
22
22
)
23
- from supertokens_python .recipe .session .interfaces import JSONObject
24
23
from supertokens_python .recipe_module import APIHandled , RecipeModule
25
- from supertokens_python .utils import get_timestamp_ms
26
24
27
25
from ...post_init_callbacks import PostSTInitCallbacks
28
26
@@ -274,26 +272,5 @@ async def fetch_value(
274
272
275
273
super ().__init__ ("st-t-dmns" , fetch_value , default_max_age_in_sec )
276
274
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
-
298
275
299
276
AllowedDomainsClaim = AllowedDomainsClaimClass ()
You can’t perform that action at this time.
0 commit comments