Skip to content

Commit

Permalink
chores: Lint and format
Browse files Browse the repository at this point in the history
  • Loading branch information
KShivendu committed Aug 2, 2023
1 parent 5c483cb commit 06a2da3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ async def handle_sessions_get(
if user_id is None:
raise_bad_input_exception("Missing required parameter 'userId'")

session_handles = await get_all_session_handles_for_user(user_id, user_context)
# TODO: Pass tenant id here
session_handles = await get_all_session_handles_for_user(
user_id, "pass-tenant-id", user_context
)
sessions: List[Optional[SessionInfo]] = [None for _ in session_handles]

async def call_(i: int, session_handle: str):
Expand Down
4 changes: 3 additions & 1 deletion supertokens_python/recipe/session/asyncio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ async def create_new_session_without_request_response(
final_access_token_payload = {**access_token_payload, "iss": issuer}

for claim in claims_added_by_other_recipes:
update = await claim.build(user_id, tenant_id, user_context)
update = await claim.build(
user_id, tenant_id or DEFAULT_TENANT_ID, user_context
)
final_access_token_payload = {**final_access_token_payload, **update}

return await SessionRecipe.get_instance().recipe_implementation.create_new_session(
Expand Down
2 changes: 1 addition & 1 deletion supertokens_python/recipe/thirdparty/api/implementation.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ async def sign_in_up_post(
session = await create_new_session(
api_options.request,
user.user_id,
tenant_id,
tenant_id=tenant_id,
user_context=user_context,
)

Expand Down

0 comments on commit 06a2da3

Please sign in to comment.