Skip to content

Commit 41da84d

Browse files
committed
adding dev-v0.24.1 tag to this commit to ensure building
1 parent 23cc332 commit 41da84d

File tree

11 files changed

+24
-24
lines changed

11 files changed

+24
-24
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.24.0&#34;
45+
VERSION = &#34;0.24.1&#34;
4646
TELEMETRY = &#34;/telemetry&#34;
4747
USER_COUNT = &#34;/users/count&#34;
4848
USER_DELETE = &#34;/user/remove&#34;

html/supertokens_python/querier.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ <h1 class="title">Module <code>supertokens_python.querier</code></h1>
134134
raise Exception(&#34;Retry request failed&#34;)
135135

136136
try:
137-
async with AsyncClient() as client:
137+
async with AsyncClient(timeout=30.0) as client:
138138
if method == &#34;GET&#34;:
139139
return await client.get(url, *args, **kwargs) # type: ignore
140140
if method == &#34;POST&#34;:
@@ -658,7 +658,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
658658
raise Exception(&#34;Retry request failed&#34;)
659659

660660
try:
661-
async with AsyncClient() as client:
661+
async with AsyncClient(timeout=30.0) as client:
662662
if method == &#34;GET&#34;:
663663
return await client.get(url, *args, **kwargs) # type: ignore
664664
if method == &#34;POST&#34;:
@@ -1234,7 +1234,7 @@ <h3>Methods</h3>
12341234
raise Exception(&#34;Retry request failed&#34;)
12351235

12361236
try:
1237-
async with AsyncClient() as client:
1237+
async with AsyncClient(timeout=30.0) as client:
12381238
if method == &#34;GET&#34;:
12391239
return await client.get(url, *args, **kwargs) # type: ignore
12401240
if method == &#34;POST&#34;:

html/supertokens_python/recipe/dashboard/api/analytics.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.analytics
121121
data[&#34;telemetryId&#34;] = telemetry_id
122122

123123
try:
124-
async with AsyncClient() as client:
124+
async with AsyncClient(timeout=30.0) as client:
125125
await client.post( # type: ignore
126126
url=TELEMETRY_SUPERTOKENS_API_URL,
127127
json=data,
@@ -209,7 +209,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
209209
data[&#34;telemetryId&#34;] = telemetry_id
210210

211211
try:
212-
async with AsyncClient() as client:
212+
async with AsyncClient(timeout=30.0) as client:
213213
await client.post( # type: ignore
214214
url=TELEMETRY_SUPERTOKENS_API_URL,
215215
json=data,

html/supertokens_python/recipe/dashboard/api/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
252252
data[&#34;telemetryId&#34;] = telemetry_id
253253

254254
try:
255-
async with AsyncClient() as client:
255+
async with AsyncClient(timeout=30.0) as client:
256256
await client.post( # type: ignore
257257
url=TELEMETRY_SUPERTOKENS_API_URL,
258258
json=data,

html/supertokens_python/recipe/emailpassword/emaildelivery/services/backward_compatibility/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ <h1 class="title">Module <code>supertokens_python.recipe.emailpassword.emaildeli
6969
&#34;passwordResetURL&#34;: password_reset_url_with_token,
7070
}
7171
try:
72-
async with AsyncClient() as client:
72+
async with AsyncClient(timeout=30.0) as client:
7373
resp = await client.post(&#34;https://api.supertokens.io/0/st/auth/password/reset&#34;, json=data, headers={&#34;api-version&#34;: &#34;0&#34;}) # type: ignore
7474
resp.raise_for_status()
7575
log_debug_message(&#34;Password reset email sent to %s&#34;, user.email)
@@ -140,7 +140,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
140140
&#34;passwordResetURL&#34;: password_reset_url_with_token,
141141
}
142142
try:
143-
async with AsyncClient() as client:
143+
async with AsyncClient(timeout=30.0) as client:
144144
resp = await client.post(&#34;https://api.supertokens.io/0/st/auth/password/reset&#34;, json=data, headers={&#34;api-version&#34;: &#34;0&#34;}) # type: ignore
145145
resp.raise_for_status()
146146
log_debug_message(&#34;Password reset email sent to %s&#34;, user.email)

html/supertokens_python/recipe/emailverification/emaildelivery/services/backward_compatibility/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ <h1 class="title">Module <code>supertokens_python.recipe.emailverification.email
6666
&#34;emailVerifyURL&#34;: email_verification_url,
6767
}
6868
try:
69-
async with AsyncClient() as client:
69+
async with AsyncClient(timeout=30.0) as client:
7070
resp = await client.post(&#34;https://api.supertokens.io/0/st/auth/email/verify&#34;, json=data, headers={&#34;api-version&#34;: &#34;0&#34;}) # type: ignore
7171
resp.raise_for_status()
7272
log_debug_message(&#34;Email verification email sent to %s&#34;, user.email)
@@ -126,7 +126,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
126126
&#34;emailVerifyURL&#34;: email_verification_url,
127127
}
128128
try:
129-
async with AsyncClient() as client:
129+
async with AsyncClient(timeout=30.0) as client:
130130
resp = await client.post(&#34;https://api.supertokens.io/0/st/auth/email/verify&#34;, json=data, headers={&#34;api-version&#34;: &#34;0&#34;}) # type: ignore
131131
resp.raise_for_status()
132132
log_debug_message(&#34;Email verification email sent to %s&#34;, user.email)

html/supertokens_python/recipe/passwordless/emaildelivery/services/backward_compatibility/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ <h1 class="title">Module <code>supertokens_python.recipe.passwordless.emaildeliv
7373
data[&#34;userInputCode&#34;] = input_.user_input_code
7474

7575
try:
76-
async with AsyncClient() as client:
76+
async with AsyncClient(timeout=30.0) as client:
7777
resp = await client.post(&#34;https://api.supertokens.io/0/st/auth/passwordless/login&#34;, json=data, headers={&#34;api-version&#34;: &#34;0&#34;}) # type: ignore
7878
resp.raise_for_status()
7979
log_debug_message(&#34;Passwordless login email sent to %s&#34;, input_.email)
@@ -145,7 +145,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
145145
data[&#34;userInputCode&#34;] = input_.user_input_code
146146

147147
try:
148-
async with AsyncClient() as client:
148+
async with AsyncClient(timeout=30.0) as client:
149149
resp = await client.post(&#34;https://api.supertokens.io/0/st/auth/passwordless/login&#34;, json=data, headers={&#34;api-version&#34;: &#34;0&#34;}) # type: ignore
150150
resp.raise_for_status()
151151
log_debug_message(&#34;Passwordless login email sent to %s&#34;, input_.email)

html/supertokens_python/recipe/passwordless/smsdelivery/services/backward_compatibility/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ <h1 class="title">Module <code>supertokens_python.recipe.passwordless.smsdeliver
7474
sms_input_json[&#34;urlWithLinkCode&#34;] = input_.url_with_link_code
7575

7676
try:
77-
async with AsyncClient() as client:
77+
async with AsyncClient(timeout=30.0) as client:
7878
res = await client.post( # type: ignore
7979
SUPERTOKENS_SMS_SERVICE_URL,
8080
json={
@@ -165,7 +165,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
165165
sms_input_json[&#34;urlWithLinkCode&#34;] = input_.url_with_link_code
166166

167167
try:
168-
async with AsyncClient() as client:
168+
async with AsyncClient(timeout=30.0) as client:
169169
res = await client.post( # type: ignore
170170
SUPERTOKENS_SMS_SERVICE_URL,
171171
json={

html/supertokens_python/recipe/passwordless/smsdelivery/services/supertokens/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ <h1 class="title">Module <code>supertokens_python.recipe.passwordless.smsdeliver
7878
if template_vars.user_input_code:
7979
sms_input[&#34;userInputCode&#34;] = template_vars.user_input_code
8080
try:
81-
async with AsyncClient() as client:
81+
async with AsyncClient(timeout=30.0) as client:
8282
await client.post( # type: ignore
8383
SUPERTOKENS_SMS_SERVICE_URL,
8484
json={
@@ -136,7 +136,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
136136
if template_vars.user_input_code:
137137
sms_input[&#34;userInputCode&#34;] = template_vars.user_input_code
138138
try:
139-
async with AsyncClient() as client:
139+
async with AsyncClient(timeout=30.0) as client:
140140
await client.post( # type: ignore
141141
SUPERTOKENS_SMS_SERVICE_URL,
142142
json={
@@ -186,7 +186,7 @@ <h3>Methods</h3>
186186
if template_vars.user_input_code:
187187
sms_input[&#34;userInputCode&#34;] = template_vars.user_input_code
188188
try:
189-
async with AsyncClient() as client:
189+
async with AsyncClient(timeout=30.0) as client:
190190
await client.post( # type: ignore
191191
SUPERTOKENS_SMS_SERVICE_URL,
192192
json={

html/supertokens_python/recipe/thirdparty/providers/custom.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ <h1 class="title">Module <code>supertokens_python.recipe.thirdparty.providers.cu
184184
id_token: str, jwks_uri: str, audience: str
185185
):
186186
public_keys: List[RSAAlgorithm] = []
187-
async with AsyncClient() as client:
187+
async with AsyncClient(timeout=30.0) as client:
188188
response = await client.get(jwks_uri) # type:ignore
189189
key_payload = response.json()
190190
for key in key_payload[&#34;keys&#34;]:
@@ -695,7 +695,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
695695
id_token: str, jwks_uri: str, audience: str
696696
):
697697
public_keys: List[RSAAlgorithm] = []
698-
async with AsyncClient() as client:
698+
async with AsyncClient(timeout=30.0) as client:
699699
response = await client.get(jwks_uri) # type:ignore
700700
key_payload = response.json()
701701
for key in key_payload[&#34;keys&#34;]:

html/supertokens_python/recipe/thirdparty/providers/utils.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ <h1 class="title">Module <code>supertokens_python.recipe.thirdparty.providers.ut
6464
if headers is None:
6565
headers = {}
6666

67-
async with AsyncClient() as client:
67+
async with AsyncClient(timeout=30.0) as client:
6868
res = await client.get(url, params=query_params, headers=headers) # type:ignore
6969

7070
log_debug_message(
@@ -87,7 +87,7 @@ <h1 class="title">Module <code>supertokens_python.recipe.thirdparty.providers.ut
8787
headers[&#34;content-type&#34;] = &#34;application/x-www-form-urlencoded&#34;
8888
headers[&#34;accept&#34;] = &#34;application/json&#34;
8989

90-
async with AsyncClient() as client:
90+
async with AsyncClient(timeout=30.0) as client:
9191
res = await client.post(url, data=body_params, headers=headers) # type:ignore
9292
log_debug_message(
9393
&#34;Received response with status %s and body %s&#34;, res.status_code, res.text
@@ -143,7 +143,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
143143
if headers is None:
144144
headers = {}
145145

146-
async with AsyncClient() as client:
146+
async with AsyncClient(timeout=30.0) as client:
147147
res = await client.get(url, params=query_params, headers=headers) # type:ignore
148148

149149
log_debug_message(
@@ -175,7 +175,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
175175
headers[&#34;content-type&#34;] = &#34;application/x-www-form-urlencoded&#34;
176176
headers[&#34;accept&#34;] = &#34;application/json&#34;
177177

178-
async with AsyncClient() as client:
178+
async with AsyncClient(timeout=30.0) as client:
179179
res = await client.post(url, data=body_params, headers=headers) # type:ignore
180180
log_debug_message(
181181
&#34;Received response with status %s and body %s&#34;, res.status_code, res.text

0 commit comments

Comments
 (0)