Skip to content

Commit 3807168

Browse files
committed
feat: Pass tenant id
1 parent b583650 commit 3807168

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
async def handle_sessions_get(
1919
_api_interface: APIInterface,
20-
_tenant_id: str,
20+
tenant_id: str,
2121
api_options: APIOptions,
2222
user_context: Dict[str, Any],
2323
) -> UserSessionsGetAPIResponse:
@@ -26,9 +26,8 @@ async def handle_sessions_get(
2626
if user_id is None:
2727
raise_bad_input_exception("Missing required parameter 'userId'")
2828

29-
# TODO: Pass tenant id here
3029
session_handles = await get_all_session_handles_for_user(
31-
user_id, "pass-tenant-id", user_context
30+
user_id, tenant_id, user_context
3231
)
3332
sessions: List[Optional[SessionInfo]] = [None for _ in session_handles]
3433

0 commit comments

Comments
 (0)