File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed
supertokens_python/recipe Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ async def sign_in_post(
170170 user = result .user
171171 session = await create_new_session (
172172 api_options .request ,
173- user . tenant_id ,
173+ "pass-tenant-id" , # TODO: change this to tenant_id
174174 user .user_id ,
175175 access_token_payload = {},
176176 session_data_in_database = {},
@@ -210,7 +210,7 @@ async def sign_up_post(
210210 user = result .user
211211 session = await create_new_session (
212212 api_options .request ,
213- user . tenant_id ,
213+ "pass-tenant-id" , # TODO: change this to tenant_id
214214 user .user_id ,
215215 access_token_payload = {},
216216 session_data_in_database = {},
Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ async def consume_code_post(
289289
290290 session = await create_new_session (
291291 api_options .request ,
292- user . tenant_id ,
292+ "pass-tenant-id" , # TODO: change this to tenant_id
293293 user .user_id ,
294294 {},
295295 {},
Original file line number Diff line number Diff line change @@ -315,6 +315,7 @@ async def refresh_session(
315315 user_data_in_access_token = payload ,
316316 req_res_info = None ,
317317 access_token_updated = True ,
318+ tenant_id = payload ["tId" ],
318319 )
319320
320321 return session
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ async def sign_in_up_post(
126126 user = signinup_response .user
127127 session = await create_new_session (
128128 api_options .request ,
129- user . tenant_id ,
129+ "pass-tenant-id" , # TODO: change this to tenant_id
130130 user .user_id ,
131131 user_context = user_context ,
132132 )
You can’t perform that action at this time.
0 commit comments