Skip to content

Commit aa37fe3

Browse files
committed
feat: remove commet
1 parent f35003c commit aa37fe3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

supertokens_python/recipe/session/with_jwt/recipe_implementation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
# under the License.
1414
from __future__ import annotations
1515

16-
from typing import TYPE_CHECKING, Any, Dict, Union
17-
18-
# TODO: Missing changes for session_class inside with_jwt? supertokens/supertokens-node#278 (files)
16+
from typing import TYPE_CHECKING, Any, Dict, Union, Optional
1917

2018
from jwt import decode
2119

@@ -187,9 +185,11 @@ async def jwt_aware_update_access_token_payload(
187185

188186
async def update_access_token_payload(
189187
session_handle: str,
190-
new_access_token_payload: Dict[str, Any],
188+
new_access_token_payload: Optional[Dict[str, Any]],
191189
user_context: Dict[str, Any],
192190
) -> bool:
191+
if new_access_token_payload is None:
192+
new_access_token_payload = {}
193193

194194
session_information = await original_implementation.get_session_information(
195195
session_handle, user_context

0 commit comments

Comments
 (0)