Skip to content

Commit 3caad92

Browse files
committed
adding dev-v0.12.0 tag to this commit to ensure building
1 parent b642f5b commit 3caad92

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

html/supertokens_python/recipe/session/with_jwt/recipe_implementation.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.session.with_jwt.recipe
184184
jwt=existing_jwt, options={&#34;verify_signature&#34;: False, &#34;verify_exp&#34;: False}
185185
)
186186

187-
if decoded_payload is None:
187+
if decoded_payload is None or decoded_payload.get(&#34;exp&#34;) is None:
188188
raise Exception(&#34;Error reading JWT from session&#34;)
189189

190190
jwt_expiry = 1
@@ -402,7 +402,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
402402
jwt=existing_jwt, options={&#34;verify_signature&#34;: False, &#34;verify_exp&#34;: False}
403403
)
404404

405-
if decoded_payload is None:
405+
if decoded_payload is None or decoded_payload.get(&#34;exp&#34;) is None:
406406
raise Exception(&#34;Error reading JWT from session&#34;)
407407

408408
jwt_expiry = 1

html/supertokens_python/recipe/session/with_jwt/session_class.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ <h1 class="title">Module <code>supertokens_python.recipe.session.with_jwt.sessio
9595
jwt=existing_jwt, options={&#34;verify_signature&#34;: False, &#34;verify_exp&#34;: False}
9696
)
9797

98-
if decoded_payload is None:
98+
if decoded_payload is None or decoded_payload.get(&#34;exp&#34;) is None:
9999
raise Exception(&#34;Error reading JWT from session&#34;)
100100

101101
jwt_expiry = 1
@@ -176,7 +176,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
176176
jwt=existing_jwt, options={&#34;verify_signature&#34;: False, &#34;verify_exp&#34;: False}
177177
)
178178

179-
if decoded_payload is None:
179+
if decoded_payload is None or decoded_payload.get(&#34;exp&#34;) is None:
180180
raise Exception(&#34;Error reading JWT from session&#34;)
181181

182182
jwt_expiry = 1

0 commit comments

Comments
 (0)