Skip to content

Commit 06a2da3

Browse files
committed
chores: Lint and format
1 parent 5c483cb commit 06a2da3

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

supertokens_python/recipe/dashboard/api/userdetails/user_sessions_get.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ async def handle_sessions_get(
2323
if user_id is None:
2424
raise_bad_input_exception("Missing required parameter 'userId'")
2525

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+
)
2730
sessions: List[Optional[SessionInfo]] = [None for _ in session_handles]
2831

2932
async def call_(i: int, session_handle: str):

supertokens_python/recipe/session/asyncio/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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(

supertokens_python/recipe/thirdparty/api/implementation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ async def sign_in_up_post(
132132
session = await create_new_session(
133133
api_options.request,
134134
user.user_id,
135-
tenant_id,
135+
tenant_id=tenant_id,
136136
user_context=user_context,
137137
)
138138

0 commit comments

Comments
 (0)