Skip to content

Commit 065a616

Browse files
committed
Remove session with-jwt features
1 parent 3de6264 commit 065a616

File tree

7 files changed

+1
-470
lines changed

7 files changed

+1
-470
lines changed

supertokens_python/recipe/session/recipe.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@
4040
from supertokens_python.normalised_url_path import NormalisedURLPath
4141
from supertokens_python.querier import Querier
4242
from supertokens_python.recipe.openid.recipe import OpenIdRecipe
43-
from supertokens_python.recipe.session.with_jwt import (
44-
get_recipe_implementation_with_jwt,
45-
)
4643
from supertokens_python.recipe_module import APIHandled, RecipeModule
4744

4845
from .api.implementation import APIImplementation
@@ -143,17 +140,12 @@ def __init__(
143140
recipe_id,
144141
app_info,
145142
None,
146-
self.config.jwt.issuer,
143+
None, # FIXME
147144
openid_feature_override,
148145
)
149146
recipe_implementation = RecipeImplementation(
150147
Querier.get_instance(recipe_id), self.config, self.app_info
151148
)
152-
recipe_implementation = get_recipe_implementation_with_jwt(
153-
recipe_implementation,
154-
self.config,
155-
self.openid_recipe.recipe_implementation,
156-
)
157149
else:
158150
recipe_implementation = RecipeImplementation(
159151
Querier.get_instance(recipe_id), self.config, self.app_info

supertokens_python/recipe/session/utils.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@
3636
from .constants import AUTH_MODE_HEADER_KEY, SESSION_REFRESH
3737
from .cookie_and_header import clear_session_from_all_token_transfer_methods
3838
from .exceptions import ClaimValidationError
39-
from .with_jwt.constants import (
40-
ACCESS_TOKEN_PAYLOAD_JWT_PROPERTY_NAME_KEY,
41-
JWT_RESERVED_KEY_USE_ERROR_MESSAGE,
42-
)
4339

4440
if TYPE_CHECKING:
4541
from supertokens_python.framework import BaseRequest
@@ -326,18 +322,7 @@ def __init__(
326322
property_name_in_access_token_payload: Union[str, None] = None,
327323
issuer: Union[str, None] = None,
328324
):
329-
if property_name_in_access_token_payload is None:
330-
property_name_in_access_token_payload = "jwt"
331-
if (
332-
property_name_in_access_token_payload
333-
== ACCESS_TOKEN_PAYLOAD_JWT_PROPERTY_NAME_KEY
334-
):
335-
raise Exception(JWT_RESERVED_KEY_USE_ERROR_MESSAGE)
336325
self.enable = enable
337-
self.property_name_in_access_token_payload = (
338-
property_name_in_access_token_payload
339-
)
340-
self.issuer = issuer
341326

342327

343328
TokenType = Literal["access", "refresh"]

supertokens_python/recipe/session/with_jwt/__init__.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

supertokens_python/recipe/session/with_jwt/constants.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

supertokens_python/recipe/session/with_jwt/recipe_implementation.py

Lines changed: 0 additions & 234 deletions
This file was deleted.

0 commit comments

Comments
 (0)