Skip to content

Commit 81d4661

Browse files
committed
adds missing check_database boolean in verify_session
1 parent 1fd5acb commit 81d4661

File tree

10 files changed

+18
-2
lines changed

10 files changed

+18
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
## [unreleased]
1010

11+
## [0.14.0] - 2023-05-18
12+
- Adds missing `check_database` boolean in `verify_session`
13+
1114
## [0.13.1] - 2023-05-15
1215
### Changes
1316
- Made the access token string optional in the overrideable `get_session` function

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070

7171
setup(
7272
name="supertokens_python",
73-
version="0.13.1",
73+
version="0.14.0",
7474
author="SuperTokens",
7575
license="Apache 2.0",
7676
author_email="[email protected]",

supertokens_python/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from __future__ import annotations
1515

1616
SUPPORTED_CDI_VERSIONS = ["2.21"]
17-
VERSION = "0.13.1"
17+
VERSION = "0.14.0"
1818
TELEMETRY = "/telemetry"
1919
USER_COUNT = "/users/count"
2020
USER_DELETE = "/user/remove"

supertokens_python/recipe/session/api/implementation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ async def verify_session(
6262
api_options: APIOptions,
6363
anti_csrf_check: Union[bool, None],
6464
session_required: bool,
65+
check_database: bool,
6566
override_global_claim_validators: Optional[
6667
Callable[
6768
[List[SessionClaimValidator], SessionContainer, Dict[str, Any]],
@@ -90,6 +91,7 @@ async def verify_session(
9091
api_options.recipe_implementation,
9192
session_required=session_required,
9293
anti_csrf_check=anti_csrf_check,
94+
check_database=check_database,
9395
override_global_claim_validators=override_global_claim_validators,
9496
user_context=user_context,
9597
)

supertokens_python/recipe/session/framework/django/asyncio/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
def verify_session(
2929
anti_csrf_check: Union[bool, None] = None,
3030
session_required: bool = True,
31+
check_database: bool = False,
3132
override_global_claim_validators: Optional[
3233
Callable[
3334
[List[SessionClaimValidator], SessionContainer, Dict[str, Any]],
@@ -53,6 +54,7 @@ async def wrapped_function(request: HttpRequest, *args: Any, **kwargs: Any):
5354
baseRequest,
5455
anti_csrf_check,
5556
session_required,
57+
check_database,
5658
override_global_claim_validators,
5759
user_context,
5860
)

supertokens_python/recipe/session/framework/django/syncio/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
def verify_session(
3030
anti_csrf_check: Union[bool, None] = None,
3131
session_required: bool = True,
32+
check_database: bool = False,
3233
override_global_claim_validators: Optional[
3334
Callable[
3435
[List[SessionClaimValidator], SessionContainer, Dict[str, Any]],
@@ -55,6 +56,7 @@ def wrapped_function(request: HttpRequest, *args: Any, **kwargs: Any):
5556
baseRequest,
5657
anti_csrf_check,
5758
session_required,
59+
check_database,
5860
override_global_claim_validators,
5961
user_context,
6062
)

supertokens_python/recipe/session/framework/fastapi/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
def verify_session(
2424
anti_csrf_check: Union[bool, None] = None,
2525
session_required: bool = True,
26+
check_database: bool = False,
2627
override_global_claim_validators: Optional[
2728
Callable[
2829
[List[SessionClaimValidator], SessionContainer, Dict[str, Any]],
@@ -42,6 +43,7 @@ async def func(request: Request) -> Union[SessionContainer, None]:
4243
baseRequest,
4344
anti_csrf_check,
4445
session_required,
46+
check_database,
4547
override_global_claim_validators,
4648
user_context,
4749
)

supertokens_python/recipe/session/framework/flask/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
def verify_session(
2727
anti_csrf_check: Union[bool, None] = None,
2828
session_required: bool = True,
29+
check_database: bool = False,
2930
override_global_claim_validators: Optional[
3031
Callable[
3132
[List[SessionClaimValidator], SessionContainer, Dict[str, Any]],
@@ -49,6 +50,7 @@ def wrapped_function(*args: Any, **kwargs: Any):
4950
baseRequest,
5051
anti_csrf_check,
5152
session_required,
53+
check_database,
5254
override_global_claim_validators,
5355
user_context,
5456
)

supertokens_python/recipe/session/interfaces.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ async def verify_session(
350350
api_options: APIOptions,
351351
anti_csrf_check: Union[bool, None],
352352
session_required: bool,
353+
check_database: bool,
353354
override_global_claim_validators: Optional[
354355
Callable[
355356
[List[SessionClaimValidator], SessionContainer, Dict[str, Any]],

supertokens_python/recipe/session/recipe.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ async def verify_session(
344344
request: BaseRequest,
345345
anti_csrf_check: Union[bool, None],
346346
session_required: bool,
347+
check_database: bool,
347348
override_global_claim_validators: Optional[
348349
Callable[
349350
[List[SessionClaimValidator], SessionContainer, Dict[str, Any]],
@@ -364,6 +365,7 @@ async def verify_session(
364365
),
365366
anti_csrf_check,
366367
session_required,
368+
check_database,
367369
override_global_claim_validators,
368370
user_context=default_user_context(request),
369371
)

0 commit comments

Comments
 (0)