File tree Expand file tree Collapse file tree 4 files changed +9
-8
lines changed
supertokens_python/recipe
dashboard/api/userdetails Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,10 @@ async def handle_sessions_get(
2323 if user_id is None :
2424 raise_bad_input_exception ("Missing required parameter 'userId'" )
2525
26- # TODO: Pass tenant id here
26+ # Not passing tenant_id because we want to get all the sessions
27+ # across all the tenants for this user.
2728 session_handles = await get_all_session_handles_for_user (
28- user_id , "pass-tenant-id" , user_context
29+ user_id , None , user_context
2930 )
3031 sessions : List [Optional [SessionInfo ]] = [None for _ in session_handles ]
3132
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ async def revoke_all_sessions_for_user(
219219 self ,
220220 user_id : str ,
221221 tenant_id : str ,
222- revoke_across_all_tenants : Optional [ bool ] ,
222+ revoke_across_all_tenants : bool ,
223223 user_context : Dict [str , Any ],
224224 ) -> List [str ]:
225225 pass
@@ -229,7 +229,7 @@ async def get_all_session_handles_for_user(
229229 self ,
230230 user_id : str ,
231231 tenant_id : str ,
232- fetch_across_all_tenants : Optional [ bool ] ,
232+ fetch_across_all_tenants : bool ,
233233 user_context : Dict [str , Any ],
234234 ) -> List [str ]:
235235 pass
Original file line number Diff line number Diff line change @@ -330,7 +330,7 @@ async def revoke_all_sessions_for_user(
330330 self ,
331331 user_id : str ,
332332 tenant_id : Optional [str ],
333- revoke_across_all_tenants : Optional [ bool ] ,
333+ revoke_across_all_tenants : bool ,
334334 user_context : Dict [str , Any ],
335335 ) -> List [str ]:
336336 return await session_functions .revoke_all_sessions_for_user (
@@ -341,7 +341,7 @@ async def get_all_session_handles_for_user(
341341 self ,
342342 user_id : str ,
343343 tenant_id : Optional [str ],
344- fetch_across_all_tenants : Optional [ bool ] ,
344+ fetch_across_all_tenants : bool ,
345345 user_context : Dict [str , Any ],
346346 ) -> List [str ]:
347347 return await session_functions .get_all_session_handles_for_user (
Original file line number Diff line number Diff line change @@ -392,7 +392,7 @@ async def revoke_all_sessions_for_user(
392392 recipe_implementation : RecipeImplementation ,
393393 user_id : str ,
394394 tenant_id : Optional [str ],
395- revoke_across_all_tenants : Optional [ bool ] ,
395+ revoke_across_all_tenants : bool ,
396396) -> List [str ]:
397397 if tenant_id is None :
398398 tenant_id = DEFAULT_TENANT_ID
@@ -408,7 +408,7 @@ async def get_all_session_handles_for_user(
408408 recipe_implementation : RecipeImplementation ,
409409 user_id : str ,
410410 tenant_id : Optional [str ],
411- fetch_across_all_tenants : Optional [ bool ] ,
411+ fetch_across_all_tenants : bool ,
412412) -> List [str ]:
413413 if tenant_id is None :
414414 tenant_id = DEFAULT_TENANT_ID
You can’t perform that action at this time.
0 commit comments