Skip to content

Commit d6dd603

Browse files
committed
adding dev-v0.16.6 tag to this commit to ensure building
1 parent 00314bf commit d6dd603

File tree

3 files changed

+43
-34
lines changed

3 files changed

+43
-34
lines changed

html/supertokens_python/constants.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ <h1 class="title">Module <code>supertokens_python.constants</code></h1>
4242
from __future__ import annotations
4343

4444
SUPPORTED_CDI_VERSIONS = [&#34;3.0&#34;]
45-
VERSION = &#34;0.16.5&#34;
45+
VERSION = &#34;0.16.6&#34;
4646
TELEMETRY = &#34;/telemetry&#34;
4747
USER_COUNT = &#34;/users/count&#34;
4848
USER_DELETE = &#34;/user/remove&#34;

html/supertokens_python/recipe/thirdparty/api/index.html

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -185,16 +185,16 @@ <h2 class="section-title" id="header-functions">Functions</h2>
185185
if third_party_id is None or not isinstance(third_party_id, str):
186186
raise_bad_input_exception(&#34;Please provide the thirdPartyId in request body&#34;)
187187

188-
redirect_uri_info = body.get(&#34;redirectURIInfo&#34;)
189-
oauth_tokens = body.get(&#34;oAuthTokens&#34;)
190-
191-
if redirect_uri_info is not None:
192-
if redirect_uri_info.get(&#34;redirectURIOnProviderDashboard&#34;) is None:
188+
oauth_tokens = None
189+
redirect_uri_info = None
190+
if body.get(&#34;redirectURIInfo&#34;) is not None:
191+
if body.get(&#34;redirectURIInfo&#34;).get(&#34;redirectURIOnProviderDashboard&#34;) is None:
193192
raise_bad_input_exception(
194193
&#34;Please provide the redirectURIOnProviderDashboard in request body&#34;
195194
)
196-
elif oauth_tokens is not None:
197-
pass # Nothing to do here
195+
redirect_uri_info = body.get(&#34;redirectURIInfo&#34;)
196+
elif body.get(&#34;oAuthTokens&#34;) is not None:
197+
oauth_tokens = body.get(&#34;oAuthTokens&#34;)
198198
else:
199199
raise_bad_input_exception(
200200
&#34;Please provide one of redirectURIInfo or oAuthTokens in the request body&#34;
@@ -214,15 +214,18 @@ <h2 class="section-title" id="header-functions">Functions</h2>
214214

215215
provider = provider_response
216216

217-
result = await api_implementation.sign_in_up_post(
218-
provider=provider,
219-
redirect_uri_info=RedirectUriInfo(
217+
if redirect_uri_info is not None:
218+
redirect_uri_info = RedirectUriInfo(
220219
redirect_uri_on_provider_dashboard=redirect_uri_info.get(
221220
&#34;redirectURIOnProviderDashboard&#34;
222221
),
223222
redirect_uri_query_params=redirect_uri_info.get(&#34;redirectURIQueryParams&#34;),
224223
pkce_code_verifier=redirect_uri_info.get(&#34;pkceCodeVerifier&#34;),
225-
),
224+
)
225+
226+
result = await api_implementation.sign_in_up_post(
227+
provider=provider,
228+
redirect_uri_info=redirect_uri_info,
226229
oauth_tokens=oauth_tokens,
227230
tenant_id=tenant_id,
228231
api_options=api_options,

html/supertokens_python/recipe/thirdparty/api/signinup.html

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,16 @@ <h1 class="title">Module <code>supertokens_python.recipe.thirdparty.api.signinup
7070
if third_party_id is None or not isinstance(third_party_id, str):
7171
raise_bad_input_exception(&#34;Please provide the thirdPartyId in request body&#34;)
7272

73-
redirect_uri_info = body.get(&#34;redirectURIInfo&#34;)
74-
oauth_tokens = body.get(&#34;oAuthTokens&#34;)
75-
76-
if redirect_uri_info is not None:
77-
if redirect_uri_info.get(&#34;redirectURIOnProviderDashboard&#34;) is None:
73+
oauth_tokens = None
74+
redirect_uri_info = None
75+
if body.get(&#34;redirectURIInfo&#34;) is not None:
76+
if body.get(&#34;redirectURIInfo&#34;).get(&#34;redirectURIOnProviderDashboard&#34;) is None:
7877
raise_bad_input_exception(
7978
&#34;Please provide the redirectURIOnProviderDashboard in request body&#34;
8079
)
81-
elif oauth_tokens is not None:
82-
pass # Nothing to do here
80+
redirect_uri_info = body.get(&#34;redirectURIInfo&#34;)
81+
elif body.get(&#34;oAuthTokens&#34;) is not None:
82+
oauth_tokens = body.get(&#34;oAuthTokens&#34;)
8383
else:
8484
raise_bad_input_exception(
8585
&#34;Please provide one of redirectURIInfo or oAuthTokens in the request body&#34;
@@ -99,15 +99,18 @@ <h1 class="title">Module <code>supertokens_python.recipe.thirdparty.api.signinup
9999

100100
provider = provider_response
101101

102-
result = await api_implementation.sign_in_up_post(
103-
provider=provider,
104-
redirect_uri_info=RedirectUriInfo(
102+
if redirect_uri_info is not None:
103+
redirect_uri_info = RedirectUriInfo(
105104
redirect_uri_on_provider_dashboard=redirect_uri_info.get(
106105
&#34;redirectURIOnProviderDashboard&#34;
107106
),
108107
redirect_uri_query_params=redirect_uri_info.get(&#34;redirectURIQueryParams&#34;),
109108
pkce_code_verifier=redirect_uri_info.get(&#34;pkceCodeVerifier&#34;),
110-
),
109+
)
110+
111+
result = await api_implementation.sign_in_up_post(
112+
provider=provider,
113+
redirect_uri_info=redirect_uri_info,
111114
oauth_tokens=oauth_tokens,
112115
tenant_id=tenant_id,
113116
api_options=api_options,
@@ -151,16 +154,16 @@ <h2 class="section-title" id="header-functions">Functions</h2>
151154
if third_party_id is None or not isinstance(third_party_id, str):
152155
raise_bad_input_exception(&#34;Please provide the thirdPartyId in request body&#34;)
153156

154-
redirect_uri_info = body.get(&#34;redirectURIInfo&#34;)
155-
oauth_tokens = body.get(&#34;oAuthTokens&#34;)
156-
157-
if redirect_uri_info is not None:
158-
if redirect_uri_info.get(&#34;redirectURIOnProviderDashboard&#34;) is None:
157+
oauth_tokens = None
158+
redirect_uri_info = None
159+
if body.get(&#34;redirectURIInfo&#34;) is not None:
160+
if body.get(&#34;redirectURIInfo&#34;).get(&#34;redirectURIOnProviderDashboard&#34;) is None:
159161
raise_bad_input_exception(
160162
&#34;Please provide the redirectURIOnProviderDashboard in request body&#34;
161163
)
162-
elif oauth_tokens is not None:
163-
pass # Nothing to do here
164+
redirect_uri_info = body.get(&#34;redirectURIInfo&#34;)
165+
elif body.get(&#34;oAuthTokens&#34;) is not None:
166+
oauth_tokens = body.get(&#34;oAuthTokens&#34;)
164167
else:
165168
raise_bad_input_exception(
166169
&#34;Please provide one of redirectURIInfo or oAuthTokens in the request body&#34;
@@ -180,15 +183,18 @@ <h2 class="section-title" id="header-functions">Functions</h2>
180183

181184
provider = provider_response
182185

183-
result = await api_implementation.sign_in_up_post(
184-
provider=provider,
185-
redirect_uri_info=RedirectUriInfo(
186+
if redirect_uri_info is not None:
187+
redirect_uri_info = RedirectUriInfo(
186188
redirect_uri_on_provider_dashboard=redirect_uri_info.get(
187189
&#34;redirectURIOnProviderDashboard&#34;
188190
),
189191
redirect_uri_query_params=redirect_uri_info.get(&#34;redirectURIQueryParams&#34;),
190192
pkce_code_verifier=redirect_uri_info.get(&#34;pkceCodeVerifier&#34;),
191-
),
193+
)
194+
195+
result = await api_implementation.sign_in_up_post(
196+
provider=provider,
197+
redirect_uri_info=redirect_uri_info,
192198
oauth_tokens=oauth_tokens,
193199
tenant_id=tenant_id,
194200
api_options=api_options,

0 commit comments

Comments
 (0)