Skip to content

Commit

Permalink
adding dev-v0.25.1 tag to this commit to ensure building
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Nov 11, 2024
1 parent 2209fe0 commit bf14122
Showing 1 changed file with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.multitena
for existing_client in providers_from_core[0].clients:
existing_client.additional_config = {
**(existing_client.additional_config or {}),
**additional_config
**additional_config,
}

# filter out other providers from static
Expand Down Expand Up @@ -225,7 +225,10 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.multitena

for merged_provider in merged_providers_from_core_and_static:
if merged_provider.config.third_party_id == third_party_id:
if merged_provider.config.clients is None or len(merged_provider.config.clients) == 0:
if (
merged_provider.config.clients is None
or len(merged_provider.config.clients) == 0
):
merged_provider.config.clients = [
ProviderClientConfig(
client_id=&#34;nonguessable-temporary-client-id&#34;,
Expand All @@ -245,7 +248,7 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.multitena
if provider.config.third_party_id == third_party_id:
found_correct_config = False

for client in (provider.config.clients or []):
for client in provider.config.clients or []:
try:
provider_instance = await find_and_create_provider_instance(
merged_providers_from_core_and_static,
Expand Down Expand Up @@ -482,7 +485,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
for existing_client in providers_from_core[0].clients:
existing_client.additional_config = {
**(existing_client.additional_config or {}),
**additional_config
**additional_config,
}

# filter out other providers from static
Expand Down Expand Up @@ -536,7 +539,10 @@ <h2 class="section-title" id="header-functions">Functions</h2>

for merged_provider in merged_providers_from_core_and_static:
if merged_provider.config.third_party_id == third_party_id:
if merged_provider.config.clients is None or len(merged_provider.config.clients) == 0:
if (
merged_provider.config.clients is None
or len(merged_provider.config.clients) == 0
):
merged_provider.config.clients = [
ProviderClientConfig(
client_id=&#34;nonguessable-temporary-client-id&#34;,
Expand All @@ -556,7 +562,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
if provider.config.third_party_id == third_party_id:
found_correct_config = False

for client in (provider.config.clients or []):
for client in provider.config.clients or []:
try:
provider_instance = await find_and_create_provider_instance(
merged_providers_from_core_and_static,
Expand Down

0 comments on commit bf14122

Please sign in to comment.