Skip to content

Commit 24c31be

Browse files
committed
fix: Add todo for passing tenant id later on
1 parent 32d342f commit 24c31be

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

supertokens_python/recipe/emailpassword/api/implementation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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={},

supertokens_python/recipe/passwordless/api/implementation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
{},

supertokens_python/recipe/session/recipe_implementation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

supertokens_python/recipe/thirdparty/api/implementation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
)

0 commit comments

Comments
 (0)