Skip to content

Commit 91307d5

Browse files
Merge branch '0.11' into fix/session-claims
2 parents 069946f + 6d1d9ac commit 91307d5

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

CHANGELOG.md

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

77
## [unreleased]
88

9-
### Added
10-
- Support for FDI 1.15
11-
12-
### Breaking changes
13-
- Removes support for FDI <= 1.14
14-
159
## [0.11.0] - 2022-09-14
1610

1711
### Changes
@@ -20,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2014

2115
### Added
2216

17+
- Support for FDI 1.15
2318
- Added support for session claims with related interfaces and classes.
2419
- Added `on_invalid_claim` optional error handler to send InvalidClaim error responses.
2520
- Added `INVALID_CLAIMS` (`InvalidClaimError`) to `SessionErrors`.
@@ -34,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3429
- Adds default userContext for verifySession calls that contains the request object.
3530

3631
### Breaking Changes
32+
- Removes support for FDI <= 1.14
3733
- Changed `sign_in_up` third party recipe function to accept just the email as `str` (removed `email_verified: bool`).
3834
- The frontend SDK should be updated to a version supporting session claims!
3935
- supertokens-auth-react: >= 0.25.0

html/supertokens_python/recipe/session/recipe.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ <h1 class="title">Module <code>supertokens_python.recipe.session.recipe</code></
4747
from supertokens_python.framework.response import BaseResponse
4848
from typing_extensions import Literal
4949

50+
from supertokens_python.utils import default_user_context
51+
5052
from .api import handle_refresh_api, handle_signout_api
5153
from .cookie_and_header import get_cors_allowed_headers
5254
from .exceptions import (
@@ -367,14 +369,16 @@ <h1 class="title">Module <code>supertokens_python.recipe.session.recipe</code></
367369
],
368370
user_context: Dict[str, Any],
369371
):
372+
_ = user_context
373+
370374
return await self.api_implementation.verify_session(
371375
APIOptions(
372376
request, None, self.recipe_id, self.config, self.recipe_implementation
373377
),
374378
anti_csrf_check,
375379
session_required,
376380
override_global_claim_validators,
377-
user_context,
381+
user_context=default_user_context(request),
378382
)</code></pre>
379383
</details>
380384
</section>
@@ -675,14 +679,16 @@ <h2 class="section-title" id="header-classes">Classes</h2>
675679
],
676680
user_context: Dict[str, Any],
677681
):
682+
_ = user_context
683+
678684
return await self.api_implementation.verify_session(
679685
APIOptions(
680686
request, None, self.recipe_id, self.config, self.recipe_implementation
681687
),
682688
anti_csrf_check,
683689
session_required,
684690
override_global_claim_validators,
685-
user_context,
691+
user_context=default_user_context(request),
686692
)</code></pre>
687693
</details>
688694
<h3>Ancestors</h3>
@@ -1014,14 +1020,16 @@ <h3>Methods</h3>
10141020
],
10151021
user_context: Dict[str, Any],
10161022
):
1023+
_ = user_context
1024+
10171025
return await self.api_implementation.verify_session(
10181026
APIOptions(
10191027
request, None, self.recipe_id, self.config, self.recipe_implementation
10201028
),
10211029
anti_csrf_check,
10221030
session_required,
10231031
override_global_claim_validators,
1024-
user_context,
1032+
user_context=default_user_context(request),
10251033
)</code></pre>
10261034
</details>
10271035
</dd>

0 commit comments

Comments
 (0)