File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
supertokens_python/recipe
dashboard/api/userdetails Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,10 @@ async def handle_sessions_get(
23
23
if user_id is None :
24
24
raise_bad_input_exception ("Missing required parameter 'userId'" )
25
25
26
- session_handles = await get_all_session_handles_for_user (user_id , user_context )
26
+ # TODO: Pass tenant id here
27
+ session_handles = await get_all_session_handles_for_user (
28
+ user_id , "pass-tenant-id" , user_context
29
+ )
27
30
sessions : List [Optional [SessionInfo ]] = [None for _ in session_handles ]
28
31
29
32
async def call_ (i : int , session_handle : str ):
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 (
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ async def sign_in_up_post(
132
132
session = await create_new_session (
133
133
api_options .request ,
134
134
user .user_id ,
135
- tenant_id ,
135
+ tenant_id = tenant_id ,
136
136
user_context = user_context ,
137
137
)
138
138
You can’t perform that action at this time.
0 commit comments