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(
26
26
if user_id is None :
27
27
raise_bad_input_exception ("Missing required parameter 'userId'" )
28
28
29
+ # TODO: Pass tenant id here
29
30
session_handles = await get_all_session_handles_for_user (
30
- user_id , None , user_context
31
+ user_id , "pass-tenant-id" , user_context
31
32
)
32
33
sessions : List [Optional [SessionInfo ]] = [None for _ in session_handles ]
33
34
Original file line number Diff line number Diff line change @@ -107,7 +107,9 @@ async def create_new_session_without_request_response(
107
107
final_access_token_payload = {** access_token_payload , "iss" : issuer }
108
108
109
109
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
+ )
111
113
final_access_token_payload = {** final_access_token_payload , ** update }
112
114
113
115
return await SessionRecipe .get_instance ().recipe_implementation .create_new_session (
You can’t perform that action at this time.
0 commit comments