File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
supertokens_python/recipe
dashboard/api/userdetails Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,9 @@ async def handle_sessions_get(
2626 if user_id is None :
2727 raise_bad_input_exception ("Missing required parameter 'userId'" )
2828
29+ # TODO: Pass tenant id here
2930 session_handles = await get_all_session_handles_for_user (
30- user_id , None , user_context
31+ user_id , "pass-tenant-id" , user_context
3132 )
3233 sessions : List [Optional [SessionInfo ]] = [None for _ in session_handles ]
3334
Original file line number Diff line number Diff line change @@ -107,7 +107,9 @@ async def create_new_session_without_request_response(
107107 final_access_token_payload = {** access_token_payload , "iss" : issuer }
108108
109109 for claim in claims_added_by_other_recipes :
110- update = await claim .build (user_id , tenant_id , user_context )
110+ update = await claim .build (
111+ user_id , tenant_id or DEFAULT_TENANT_ID , user_context
112+ )
111113 final_access_token_payload = {** final_access_token_payload , ** update }
112114
113115 return await SessionRecipe .get_instance ().recipe_implementation .create_new_session (
You can’t perform that action at this time.
0 commit comments